User`s guide

Rev. 1.10 50 November 14, 2014 Rev. 1.10 51 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
Input/Output Ports
HoltekmicrocontrollersofferconsiderableexibilityontheirI/Oports.Withtheinputoroutput
designationofeverypinfullyunderuserprogramcontrol,pull-highselectionsforallportsand
wake-upselectionsoncertainpins,theuserisprovidedwithanI/Ostructuretomeettheneedsofa
widerangeofapplicationpossibilities.
Thedeviceprovidesbidirectionalinput/outputlineslabeledwithportnamesPA,PBandPC.These
I/OportsaremappedtotheRAMDataMemorywithspecicaddressesasshownintheSpecial
PurposeDataMemorytable.AlloftheseI/Oportscanbeusedforinputandoutputoperations.For
inputoperation,theseportsarenon-latching,whichmeanstheinputsmustbereadyattheT2rising
edgeofinstruction“MOVA,[m]”,wheremdenotestheportaddress.Foroutputoperation,allthe
dataislatchedandremainsunchangeduntiltheoutputlatchisrewritten.
Register
Name
Bit
7 6 5 4 3 2 1 0
PA D7 D6 D5
D4 D3 D2 D1 D0
PAC D7 D6 D5
D4 D3 D2 D1 D0
PAPU D7 D6 D5
D4 D3 D2 D1 D0
PAWU D7 D6 D5
D4 D3 D2 D1 D0
PB
D4 D3 D2 D1 D0
PBC
D4 D3 D2 D1 D0
PBPU
D4 D3 D2 D1 D0
PC D7 D6 D5
D4 D3 D2 D1 D0
PCC D7 D6 D5
D4 D3 D2 D1 D0
PCPU D7 D6 D5
D4 D3 D2 D1 D0
Pull-high Resistors
Manyproductapplicationsrequirepull-highresistorsfortheirswitchinputsusuallyrequiringthe
useofanexternalresistor.Toeliminatetheneedfortheseexternalresistors,allI/Opins,when
conguredasaninputhavethecapabilityofbeingconnectedtoaninternalpull-highresistor.These
pull-highresistorsareselectedusingregistersPAPU~PCPU,andareimplementedusingweak
PMOStransistors.
PAPU Register
Bit 7 6 5 4 3 2 1 0
Name D7 D6 D5 D4 D3 D2 D1 D0
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0 0 0 0 0 0 0 0
Bit7~0 I/OPortAbit7~bit0Pull-HighControl
0:Disable
1:Enable
PBPU Register
Bit 7 6 5 4 3 2 1 0
Name D4 D3 D2 D1 D0
R/W R/W R/W R/W R/W R/W
POR 0 0 0 0 0
Bit7~5 Unimplemented,readas“0”
Bit4~0 I/OPortBbit4~bit0Pull-HighControl
0:Disable
1:Enable