English
Language : 

HT66F20-1 Datasheet, PDF (74/211 Pages) Holtek Semiconductor Inc – Flash MCU with EEPROM
HT66F20-1/HT66F30-1/HT68F20-1/HT68F30-1
Flash MCU with EEPROM
PCC Register
• HT66F20-1/HT68F20-1
Bit
7
6
5
4
Name
—
—
—
—
R/W
—
—
—
—
POR
—
—
—
—
• HT66F30-1/HT68F30-1
Bit
Name
R/W
POR
7
PCC7
R/W
1
6
PCC6
R/W
1
5
PCC5
R/W
1
4
PCC4
R/W
1
Bit 7~6
“—”: Unimplemented, read as “0”
PACn/PBCn/PCCn: I/O type selection
0: output
1: input
3
PCC3
R/W
1
3
PCC3
R/W
1
2
PCC2
R/W
1
2
PCC2
R/W
1
1
PCC1
R/W
1
1
PCC1
R/W
1
0
PCC0
R/W
1
0
PCC0
R/W
1
Pin-remapping 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 is a
PRM0 register to establish certain pin functions. This pin-remapping function is only available for
the HT66F30-1 and HT68F30-1 devices.
Pin-remapping Registers
The limited number of supplied pins in a package can impose restrictions on the amount of functions
a certain device can contain. However by allowing the same pins to share several different functions
and providing a means of function selection, a wide range of different functions can be incorporated
into even relatively small package sizes. The devices include a PRM0 register which can select the
functions of certain pins. The HT66F30-1 and HT68F30-1 devices include a PRM0 register which
can select the functions of certain pins.
PRM0 Register – HT66F30-1/HT68F30-1
Bit
7
6
5
4
3
2
1
0
Name
—
—
—
—
—
PCPRM SIMPS0 PCKPS
R/W
—
—
—
—
—
R/W
R/W
R/W
POR
—
—
—
—
—
0
0
0
Bit 7~3
Bit 2
Bit 1
Bit 0
Unimplemented, read as “0”
PCPRM: PC1~PC0 pin-shared function Pin Remapping Control
0: No change
1: TP1B_0 on PC0 change to PA6, TP1B_1 on PC1 change to PA7 if SIMPS0=1
SIMPS0: SIM Pin Remapping Control
0: SDO on PA5; SDI/SDA on PA6; SCK/SCL on PA7; SCS on PB5
1: SDO on PC1; SDI/SDA on PC0; SCK/SCL on PC7; SCS on PC6
PCKPS: PCK and PINT Pin Remapping Control
0: PCK on PC2; PINT on PC3
1: PCK on PC5; PINT on PC4
Rev. 1.40
74
November 23, 2016