User`s guide

Rev. 1.10 26 November 14, 2014 Rev. 1.10 27 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
• PDFisclearedbyasystempower-uporexecutingthe“CLRWDT”instruction.PDFissetby
executingthe“HALT”instruction.
• TOisclearedbyasystempower-uporexecutingthe“CLRWDT”or“HALT”instruction.TOis
setbyaWDTtime-out.
• SCistheresultofthe“XOR”operationwhichisperformedbytheOVagandtheMSBofthe
currentinstructionoperationresult.
• CZistheoperationalresultofdifferentagsfordifferentinstructions.Refertoregisterdeni-ructions.Refertoregisterdeni-uctions.Refertoregisterdeni-
tionsformoredetails.
Inaddition,onenteringaninterruptsequenceorexecutingasubroutinecall,thestatusregisterwill
notbepushedontothestackautomatically.Ifthecontentsofthestatusregistersareimportantandif
thesubroutinecancorruptthestatusregister,precautionsmustbetakentocorrectlysaveit.
STATUS Register
Bit 7 6 5 4 3 2 1 0
Name SC CZ TO PDF OV Z AC C
R/W R/W R/W R R R/W R/W R/W R/W
POR × × 0 0 × × × ×
"×" unknown
Bit7 SC:Theresultofthe“XOR”operationwhichisperformedbytheOVagandthe
MSBoftheinstructionoperationresult.
Bit6 CZ:Theoperationalresultofdifferentagsfordifferentinstructions.
ForSUB/SUBMinstructions,theCZagisequaltotheZag.
ForSBC/SBCMinstructions,theCZagisthe“AND”operation
resultwhichisperformedbythepreviousoperationCZagandcurrentoperation
zeroagZ.Forotherinstructions,theCZagwillnotbeaffected.
Bit5 TO:WatchdogTime-Outag
0:Afterpoweruporexecutingthe"CLRWDT"or"HALT"instruction
1:Awatchdogtime-outoccurred.
Bit4 PDF:Powerdownag
0:Afterpoweruporexecutingthe"CLRWDT"instruction
1:Byexecutingthe"HALT"instruction
Bit3 OV:Overowag
0:nooverow
1:anoperationresultsinacarryintothehighest-orderbitbutnotacarryoutofthe
highest-orderbitorviceversa.
Bit2 Z:Zeroag
0:Theresultofanarithmeticorlogicaloperationisnotzero
1:Theresultofanarithmeticorlogicaloperationiszero
Bit1 AC:Auxiliaryag
0:noauxiliarycarry
1:anoperationresultsinacarryoutofthelownibblesinaddition,ornoborrow
fromthehighnibbleintothelownibbleinsubtraction
Bit0 C:Carryag
0:nocarry-out
1:anoperationresultsinacarryduringanadditionoperationorifaborrowdoesnot
takeplaceduringasubtractionoperation
Cisalsoaffectedbyarotatethroughcarryinstruction.