HT46R064B/065B/066B
System Control Registers - CTRL0, CTRL1
These registers are used to provide control over various internal functions. Some of these include the PFD control,
PWM control, certain system clock options, the LXT Oscillator low power control, external Interrupt edge trigger type,
Watchdog Timer enable function, Time Base function division ratio, and the LXT oscillator enable control.
·
CTRL0 Register
¨
¨
¨
HT46R064B
Bit
Name
R/W
7
6
5
PWMSEL
R/W
4
3
PWMC0
R/W
0
2
PFDC
R/W
0
1
LXTLP
R/W
0
0
CLKMOD
R/W
¾
¾
¾
¾
¾
¾
¾
¾
¾
POR
0
0
HT46R065B
Bit
Name
R/W
7
6
PFDCS
R/W
0
5
PWMSEL
R/W
4
3
PWMC0
R/W
0
2
PFDC
R/W
0
1
LXTLP
R/W
0
0
CLKMOD
R/W
¾
¾
¾
¾
¾
¾
POR
0
0
HT46R066B
Bit
Name
R/W
7
PCFG
R/W
0
6
PFDCS
R/W
0
5
PWMSEL
R/W
4
PWMC1
R/W
0
3
PWMC0
R/W
0
2
PFDC
R/W
0
1
LXTLP
R/W
0
0
CLKMOD
R/W
POR
0
0
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PCFG: I/O configuration
0: INT/TC0/PFD pin-shared with PA3/PA2/PA1
1: INT/TC0/PFD pin-shared with PB5/PB4/PB3
PFDCS: PFD clock source
0: timer0
1: timer1
PWMSEL: PWM type selection
0: 6+2
1: 7+1
PWMC1: I/O or PWM1
0: I/O
1: PWM1
PWMC0: I/O or PWM0
0: I/O
1: PWM0
PFDC: I/O or PFD
0: I/O
1: PFD
LXTLP: LXT oscillator low power control function
0: LXT Oscillator quick start-up mode
1: LXT Oscillator Low Power Mode
CLKMOD: system clock mode selection.
0: High speed - HIRC used as system clock
1: Low speed - LXT used as system clock, HIRC oscillator stopped.
For HT46R064B/065B/066B, these selections are only valid if the oscillator configuration options
have selected the HIRC+LXT.
Note:
If PWM0/1/2 output is selected by PWMC0/1/2 bit, fTP comes always from fSYS
.
(fTP is the clock source for timer0/2 , time base and PWM)
Rev. 1.00
25
April 8, 2011