Rev. 1.71 56 April 11, 2017 Rev. 1.71 57 April 11, 2017
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
Input/Output Ports
HoltekmicrocontrollersofferconsiderableexibilityontheirI/Oports.Withtheinputoroutput
designationofeverypinfullyunderuserprogramcontrol,pull-highselectionsforallportsand
wake-upselectionsoncertainpins,theuserisprovidedwithanI/Ostructuretomeettheneedsofa
widerangeofapplicationpossibilities.
Thedevicesprovidebidirectionalinput/outputlineslabeledwithportnamesPA~PC.TheseI/O
portsaremappedtotheRAMDataMemorywithspecicaddressesasshownintheSpecialPurpose
DataMemorytable.AlloftheseI/Oportscanbeusedforinputandoutputoperations.Forinput
operation,theseportsarenon-latching,whichmeanstheinputsmustbereadyattheT2risingedge
ofinstruction“MOVA,[m]”,wheremdenotestheportaddress.Foroutputoperation,allthedatais
latchedandremainsunchangeduntiltheoutputlatchisrewritten.
I/O Control Register List
• HT66F002/HT66F0025
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
PASR PAS7 PAS6 PAS5 PAS4 PAS3 PAS2 PAS1 PAS0
IFS0 — — STCK0PS STP0IPS — — INTPS1 INTPS0
• HT66F003
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 — — D5 D4 D3 D2 D1 D0
PBC — — D5 D4 D3 D2 D1 D0
PBPU — — D5 D4 D3 D2 D1 D0
PASR PAS7 PAS6 PAS5 PAS4 PAS3 PAS2 PAS1 PAS0
PBSR — — PBS5 PBS4 PBS3 PBS2 PBS1 PBS0
IFS0 PTCK1PS1 PTCK1PS0 STCK0PS STP0IPS PTP1IPS — INTPS1 INTPS0