Rev. 1.71
58
April 11, 2017
Rev. 1.71
59
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
PBC Register – HT66F003
Bit
7
6
5
4
3
2
1
0
Name
—
—
D5
D4
D3
D2
D1
D0
R/W
—
—
R/W
R/W
R/W
R/W
R/W
R/W
POR
—
—
1
1
1
1
1
1
B
it 7 ~ 6
Unimplemented, read as 0
B
it 5 ~ 0
I/O Port B bit 5 ~ bit 0 Input/Output Control
0: Output
1: Input
PBC Register – HT66F004
Bit
7
6
5
4
3
2
1
0
Name
—
D6
D5
D4
D3
D2
D1
D0
R/W
—
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
—
1
1
1
1
1
1
1
Bit 7
Unimplemented, read as 0
Bit 6~0
I/O Port B bit 6 ~ bit 0 Input/Output Control
0: Output
1: Input
PCC Register – HT66F004
Bit
7
6
5
4
3
2
1
0
Name
—
—
—
—
—
D2
D1
D0
R/W
—
—
—
—
—
R/W
R/W
R/W
POR
—
—
—
—
—
1
1
1
Bit 7~3
Unimplemented, read as 0
Bit 2~0
I/O Port C bit 2 ~ bit 0 Input/Output Control
0: Output
1: Input
Pin-shared Functions
The flexibility of the microcontroller range is greatly enhanced by the use of pins that have more
than one function. Limited numbers of pins can force serious design constraints on designers but
by supplying pins with multi-functions, many of these difficulties can be overcome. The way in
which the pin function of each pin is selected is different for each function and a priority order is
established where more than one pin function is selected simultaneously. Additionally there
are
a PASR and a PBSR register to establish certain pin functions. Generally speaking, the analog
function has higher priority than the digital function. However, if more than two analog functions
are enabled and the analog signal input comes from the same external pin, the analog input will be
internally connected to all of these active analog functional modules.