HT82K95E/HT82K95A
Rev. 1.20
22
October 24, 2005
There is a system clock control register implemented to select the clock used in the MCU. This register consists of the
USBclockcontrolbit(USBCKEN),secondsuspendmodecontrolbit(SUSP2)andsystemclockselection(SYSCLK).
Bit No.
Label
R/W
Function
2~0, 7
Undefined, should be cleared to 0
3
USBCKEN R/W
USB clock control bit. When this bit is set to 1 , it indicates that the USB clock is en-
abled. Otherwise, the USB clock is turned-off. (Default= 0 )
4
SUSP2
R/W
This bit is used for decreasing power consumption in suspend mode.
In normal mode clean this bit=0 (Default= 0 )
In HALT mode set this bit=1 for decreasing power consumption.
5
PS2_flag
R/W
This flag is used to show the MCUis under PS2 mode. (Bit=1)
ThisbitisR/WbyFWandwillbeclearedto 0 afterpower-onreset.(Default= 0 )
6
SYSCLK
R/W
This bit is used to specify the system oscillator frequency used by the MCU. If a
6MHz crystal oscillator or resonator is used, this bit should be set to 1 . If a 12MHz
crystal oscillator or resonator is used, this bit should be cleared to 0 (default).
SCC (1CH) Register
Table High Byte Pointer for Current Table Read TBHP (Address 0X1F)
Register
Bits
Labels
Read/Write
Option
Functions
TBHP (0X1F)
3~0
PGC3~PGC0
R
Store current table read bit11~bit8 data
Options
The following table shows all kinds of option in the microcontroller. All of the options must be defined to ensure proper
system functioning.
No.
Option
1
Chip lock bit (by bit)
2
PA0~PA7 pull-high resistor enabled or disabled (by bit)
3
PB0~PB7 pull-high resistor enabled or disabled (by nibble)
4
PC0~PC7 pull-high resistor enabled or disabled (by nibble)
5
PD0~PD7 pull-high resistor enabled or disabled (by nibble)
6
LVR enable or disable
7
WDT enable or disable
8
WDT clock source: f
SYS
/4 or WDTOSC
9
CLRWDT instruction(s): 1 or 2
10
PA0~PA7 output structures: CMOS/NMOS open-drain/PMOS open-drain (by bit)
11
PA0~PA7 wake-up enabled or disabled (by bit)
12
PB0~PB7 wake-up enabled or disabled (by nibble)
13
PC0~PC7 wake-up enabled or disabled (by nibble)
14
PD0~PD7 wake-up enabled or disabled (by nibble)
15
TBHP enable or disable (default disable)