AN201
Rev 1.5 | 37/91
www.cmostek.com
Table 31. STATUS Bit Function Description
Bit
Name
Function
7:6
-
No function, read as
0
.
5
PAGE
Register bank selection bit.
0 = BANK0
(
00h - 7Fh
)
1 = BANK1
(
80h - FFh
)
4
/TF
Time out status bit.
1 = POR, after power up and the execution of CLRWDT or SLEEP instruction.
0 = WDT time out.
3
/PF
Power down flag bit.
1 = after POR or CLRWDT instruction execution.
0 = sleep instruction execution.
2
Z
Zero flag bit.
1 = the result of arithmetic operation or logic operation is 0.
0 = the result of arithmetic operation or logic operation is not 0.
1
HC
Half-carrying/borrowing ( ADDWF, ADDLW, SUBLW and SUBWF instruction). For borrowing, the
polarity is reversed.
1 = bit 4 carrying/borrowing occurs in the calculation result.
0 = bit 4 carrying/borrowing does not occur in the calculation result.
0
C
Carrying/borrowing ( ADDWF, ADDLW, SUBLW and SUBWF instruction).
1 = carrying/borrowing occurs in the calculation result.
0 = carrying/borrowing does not occur in the calculation result.