Download Microcontrollers 8-Bit Single-Chip Microcontroller

Transcript
XC864
Flash Memory
4.7.5
Flash Bank Read Status
Each call of the Flash bank read status subroutine allows the checking of ready-to-read
status of the Flash bank. Before calling this subroutine, the user must ensure that the
ACC SFR is set accordingly (see Table 4-7).
Table 4-7
Flash Bank Read Status Subroutine
Subroutine
DFF0H: FLASH_READ_STATUS
Input
ACC: Select desired Flash bank for ready-to-read status.
03H = 4-Kbyte Flash
Others = Invalid1)
Output
PSW.CY:
0 = Flash bank is not in ready-to-read mode
1 = Flash bank is in ready-to-read mode
Stack size required
5
Resource
used/destroyed
ACC
1)
For invalid ACC input, PSW.CY will be 0.
User’s Manual
Flash Memory, V 1.0
4-17
V1.0, 2008-06