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
Holtek microcontrollers offer considerable flexibility 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 devices provide bidirectional input/output lines labeled with port names PA~PC. These I/O
ports are mapped to the RAM Data Memory with specific 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.
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