Rev. 1.20 40 January 23, 2015 Rev. 1.20 41 January 23, 2015
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
STATUS Register
Bit 7 6 5 4 3 2 1 0
Name — — TO PDF OV Z AC C
R/W — — R R R/W R/W R/W R/W
POR — — 0 0 x x x x
"x
" unknown
Bit6 Unimplemented,readas"0"
Bit5 TO:WatchdogTime-Outag
0:Afterpoweruporexecutingthe"CLRWDT"or"HALT"instruction
1:Awatchdogtime-outoccurred.
Bit4 PDF:Powerdownag
0:Afterpoweruporexecutingthe"CLRWDT"instruction
1:Byexecutingthe"HALT"instruction
Bit3 OV:Overowag
0:nooverow
1:anoperationresultsinacarryintothehighest-orderbitbutnotacarryoutofthe
highest-orderbitorviceversa.
B
it2 Z:Zeroag
0:Theresultofanarithmeticorlogicaloperationisnotzero
1:Theresultofanarithmeticorlogicaloperationiszero
Bit1 AC:Auxiliaryag
0:noauxiliarycarry
1:anoperationresultsinacarryoutofthelownibblesinaddition,ornoborrow
fromthehighnibbleintothelownibbleinsubtraction
Bit0 C:Carryag
0:nocarry-out
1:anoperationresultsinacarryduringanadditionoperationorifaborrowdoesnot
takeplaceduringasubtractionoperation
Cisalsoaffectedbyarotatethroughcarryinstruction.