BS85B12-3 HOLTEK [Holtek Semiconductor Inc], BS85B12-3 Datasheet - Page 80

no-image

BS85B12-3

Manufacturer Part Number
BS85B12-3
Description
Touch Key Flash Type 8-Bit MCU with LCD/LED Driver
Manufacturer
HOLTEK [Holtek Semiconductor Inc]
Datasheet
Rev. 1.00
Bit 2~0
Bit 7~6
Bit 5~4
Name
POR
R/W
Bit
TM2C1 Register
T2M1
R/W
T2RP2~T2RP0: TM2 CCRP 3-bit register, compared with the TM2 Counter bit 9~bit 7
Comparator P Match Period
These three bits are used to setup the value on the internal CCRP 3-bit register, which are then
compared with the internal counter's highest three bits. The result of this comparison can be
selected to clear the internal counter if the T2CCLR bit is set to zero. Setting the T2CCLR bit to
zero ensures that a compare match with the CCRP values will reset the internal counter. As the
CCRP bits are only compared with the highest three counter bits, the compare values exist in 128
clock cycle multiples. Clearing all three bits to zero is in effect allowing the counter to overflow at
its maximum value.
T2M1~T2M0: Select TM2 Operating Mode
These bits setup the required operating mode for the TM. To ensure reliable operation the TM
should be switched off before any changes are made to the T2M1 and T2M0 bits. In the
Timer/Counter Mode, the TM output pin control must be disabled.
T2IO1~T2IO0: Select TP2_0, TP2_1 output function
Compare Match Output Mode
PWM Mode/Single Pulse Output Mode
Capture Input Mode
Timer/counter Mode:
7
0
000: 1024 TM2 clocks
001: 128 TM2 clocks
010: 256 TM2 clocks
011: 384 TM2 clocks
100: 512 TM2 clocks
101: 640 TM2 clocks
110: 768 TM2 clocks
111: 896 TM2 clocks
00: Compare Match Output Mode
01: Capture Input Mode
10: PWM Mode or Single Pulse Output Mode
11: Timer/Counter Mode
00: No change
01: Output low
10: Output high
11: Toggle output
00: PWM output inactive state
01: PWM output active state
10: PWM output
11: Single pulse output
00: Input capture at rising edge of TP2_0, TP2_1
01: Input capture at falling edge of TP2_0, TP2_1
10: Input capture at falling/rising edge of TP2_0, TP2_1
11: Input capture disabled
Unused
Touch Key Flash MCU with LCD/LED Driver
T2M0
R/W
6
0
T2IO1
R/W
5
0
T2IO0
R/W
74
4
0
T2OC
R/W
3
0
BS85B12-3/BS85C20-3
T2POL
R/W
2
0
T2DPX
R/W
1
0
February 1, 2011
T2CCLR
R/W
0
0

Related parts for BS85B12-3