2006-03-20 04:40 AM
Problem to read Flash Protection Register using Read Protection Sattus
2006-03-20 04:40 AM
Dear all,
We are able to achive functionality for, ''Read/Reset'', ''Program Word'', ''Block Erase'' and ''Chip Erase'' command for ST10F269. But we are unlucky to achive functionality for ''Read Protection Status''.We are implementing this command as follow. Read_Prot_Sts PROC MOV R7,#00F0h ; Command Cycle 1 Of Read/Reset EXTS R11,#01 ;Use EXTended Addressing for next MOV Instruction MOV [R12],R7 MOV R5,#02a54h ; //Command Address MOV R6,#015a8h ; //Command Address SCXT dpp0,#08h MOV R7,#00A8h ; Command Cycle 1 MOV [R5],R7 MOV R7,#0054h ; Command Cycle 2 MOV [R6],R7 MOV R7,#0090h ; Command Cycle 3 MOV [R5],R7 POP dpp0 MOV R13,[R12] MOV R7,#00F0h ; Command Cycle 1 Of Read/Reset EXTS R11,#01 ;Use EXTended Addressing for next MOV Instruction MOV [R12],R7 ;address id Don't care for Read/Reset Command RET Read_Prot_Sts ENDP Is there any problem in above code? plz help us. Thanks..... Yogesh Gudekar.