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
HoltekmicrocontrollersofferconsiderableexibilityontheirI/Oports.Withtheinputoroutput
designationofeverypinfullyunderuserprogramcontrol,pull-highselectionsforallportsand
wake-upselectionsoncertainpins,theuserisprovidedwithanI/Ostructuretomeettheneedsofa
widerangeofapplicationpossibilities.
Thedeviceprovidesbidirectionalinput/outputlineslabeledwithportnamesPA,PBandPC.These
I/OportsaremappedtotheRAMDataMemorywithspecicaddressesasshownintheSpecial
PurposeDataMemorytable.AlloftheseI/Oportscanbeusedforinputandoutputoperations.For
inputoperation,theseportsarenon-latching,whichmeanstheinputsmustbereadyattheT2rising
edgeofinstruction“MOVA,[m]”,wheremdenotestheportaddress.Foroutputoperation,allthe
dataislatchedandremainsunchangeduntiltheoutputlatchisrewritten.
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
Manyproductapplicationsrequirepull-highresistorsfortheirswitchinputsusuallyrequiringthe
useofanexternalresistor.Toeliminatetheneedfortheseexternalresistors,allI/Opins,when
conguredasaninputhavethecapabilityofbeingconnectedtoaninternalpull-highresistor.These
pull-highresistorsareselectedusingregistersPAPU~PCPU,andareimplementedusingweak
PMOStransistors.
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
Bit7~0 I/OPortAbit7~bit0Pull-HighControl
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
Bit7~5 Unimplemented,readas“0”
Bit4~0 I/OPortBbit4~bit0Pull-HighControl
0:Disable
1:Enable