User`s guide

Rev. 1.10 56 November 14, 2014 Rev. 1.10 57 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
IFS0 Register
Bit 7 6 5 4 3 2 1 0
Name IFS02 IFS01 IFS00
R/W R/W R/W R/W
POR 0 0 0
Bit7~3 Unimplemented,readas0
Bit2 IFS02:I
2
CSDAinputsourceselection
0:PA0
1:PB2
Bit1 IFS01:I
2
CSCLinputsourceselection
0:PA2
1:PB3
Bit0 IFS00:TP0inputsourceselection
0:TP0
1:DEMO
Programming Considerations
Withintheuserprogram,oneoftherstthingstoconsiderisportinitialisation.Afterareset,allof
theI/Odataandportcontrolregisterswillbesethigh.ThismeansthatallI/Opinswilldefaultto
aninputstate,thelevelofwhichdependsontheotherconnectedcircuitryandwhetherpull-high
selectionshavebeenchosen.Iftheportcontrolregisters,PAC~PCC,arethenprogrammedtosetup
somepinsasoutputs,theseoutputpinswillhaveaninitialhighoutputvalueunlesstheassociated
portdataregisters,PA~PC,arerstprogrammed.Selectingwhichpinsareinputsandwhichare
outputscanbeachievedbyte-widebyloadingthecorrectvaluesintotheappropriateportcontrol
registerorbyprogrammingindividualbitsintheportcontrolregisterusingthe“SET[m].i”and
“CLR[m].i”instructions.Notethatwhenusingthesebitcontrolinstructions,aread-modify-write
operationtakesplace.Themicrocontrollermustrstreadinthedataontheentireport,modifyitto
therequirednewbitvaluesandthenrewritethisdatabacktotheoutputports.
       
   
  
   
 
Read/Write Timing
PortAhastheadditionalcapabilityofprovidingwake-upfunctions.WhenthedeviceisintheSLEEP
orIDLEMode,variousmethodsareavailabletowakethedeviceup.Oneoftheseisahightolow
transitionofanyofthePortApins.SingleormultiplepinsonPortAcanbesetuptohavethisfunction.