English
Language : 

W78IRD2 Datasheet, PDF (53/76 Pages) Winbond – 8-BIT MICROCONTROLLER
W78IRD2
Example 4: Invalid access
MOV CHPENR, #87h
MOV CHPENR, #59h
NOP
NOP
CLR MD
;3 M/C
;3 M/C
;1 M/C
;1 M/C
;2 M/C
Example 5: Invalid Access
MOV CHPENR, #87h
NOP
MOV CHPENR, #59h
SETB MD
;3 M/C
;1 M/C
;3 M/C
;2 M/C
In the first three examples, the protected bits are written before the window closes. In Example 4,
however, the write occurs after the window has closed, so there is no change in the protected bit. In
Example 5, the second write to CHPENR occurs four machine cycles after the first write, so the timed
access window in not opened at all, and the write to the protected bit fails.
- 53 -
Publication Release Date: October 2, 2006
Revision A7