This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with HCR register in msc1211y5

Dear all,
when i write 0xfe into HCR0 register using startup.a51 my program works fine..
whereas when i wanted to write into program memory i have to enable PML bit. ie i wrote 0xbe into HCR register.My program gets reset again and again ..
I thought this might be problem with watchdog timer and disabled it in the same register (writing 0xb6 ).
Now there is no Response from the program

what is the issue???
can any expert help me in this ??

Parents
  • NO ..It does not occur when i write into Flash..( I agree ...) but.I am really amazed with HCR register How it is mapped to 807EH address ??

    my startup it is like ....

    org 807EH
    HCR1: db 0E3H ;
    HCR0: db 0BEH ;

    My program gets reset again and again. Is there anything for this to do with Watchdog reset ?? or should i configure any other bits ?? ( my intention is to write into program memory by configuring these bits )

Reply
  • NO ..It does not occur when i write into Flash..( I agree ...) but.I am really amazed with HCR register How it is mapped to 807EH address ??

    my startup it is like ....

    org 807EH
    HCR1: db 0E3H ;
    HCR0: db 0BEH ;

    My program gets reset again and again. Is there anything for this to do with Watchdog reset ?? or should i configure any other bits ?? ( my intention is to write into program memory by configuring these bits )

Children