Rev. 2.50 82 June 22, 2017 Rev. 2.50 83 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
Input/Output Ports
HoltekmicrocontrollersofferconsiderableexibilityontheirI/Oports.Withtheinputoroutput
designationofeverypinfullyunderuserprogramcontrol,pull-highselectionsforallportsand
wake-upselectionsoncertainpins,theuserisprovidedwithanI/Ostructuretomeettheneedsofa
widerangeofapplicationpossibilities.
Thedeviceprovidesbidirectionalinput/outputlineslabeledwithportnamesPA~PG.TheseI/O
portsaremappedtotheRAMDataMemorywithspecicaddressesasshownintheSpecialPurpose
DataMemorytable.AlloftheseI/Oportscanbeusedforinputandoutputoperations.Forinput
operation,theseportsarenon-latching,whichmeanstheinputsmustbereadyattheT2risingedge
ofinstruction"MOVA,[m]",wheremdenotestheportaddress.Foroutputoperation,allthedatais
latchedandremainsunchangeduntiltheoutputlatchisrewritten.
I/O Port Register List
• HT66F20
Register
Name
Bit
7 6 5 4 3 2 1 0
PAWU
D7 D6 D5 D4 D3 D2 D1 D0
PAPU
D7 D6 D5 D4 D3 D2 D1 D0
PA
D7 D6 D5 D4 D3 D2 D1 D0
PAC
D7 D6 D5 D4 D3 D2 D1 D0
PBPU — — D5 D4 D3 D2
D1 D0
PB — — D5 D4 D3 D2
D1 D0
PBC — — D5 D4 D3 D2
D1 D0
PCPU — — — — D3 D2
D1 D0
PC — — — — D3 D2
D1 D0
PCC — — — — D3 D2
D1 D0
• HT66F30
Register
Name
Bit
7 6 5 4 3 2 1 0
PAWU
D7 D6 D5 D4 D3 D2 D1 D0
PAPU
D7 D6 D5 D4 D3 D2 D1 D0
PA
D7 D6 D5 D4 D3 D2 D1 D0
PAC
D7 D6 D5 D4 D3 D2 D1 D0
PBPU — — D5 D4 D3 D2
D1 D0
PB — — D5 D4 D3 D2
D1 D0
PBC — — D5 D4 D3 D2
D1 D0
PCPU
D7 D6 D5 D4 D3 D2 D1 D0
PC
D7 D6 D5 D4 D3 D2 D1 D0
PCC
D7 D6 D5 D4 D3 D2 D1 D0