The unlock sequence is outlined in the datasheet. Other peripherals (like RTCC) have similiar mechanism to prevent accidental write to them. You should implement that in assembly (as there are fairly strict timing requirements for those sequences that your compiler may not be able to meet), and repeat the sequence until a write is successful.
millwood0 发表于 2013-6-26 20:20
This is an example of why reading the datasheet is invaluable.
You cannot be a good embedded progra ...
I read it, but I don't understand because thar text description for sequence is not very clear. and I cannot read assembly language,it is a big drawback for me.
In the PIC datasheet, all the examples are written in assembly language.
You cannot be a good embedded programmer if you cannot read and more importantly understand the datasheet.
I read it, but I don't understand because thar text description for sequence is not very clear. and I cannot read assembly language,it is a big drawback for me.
In the PIC datasheet, all the examples are written in assembly language.
一周热门 更多>