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

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 3
Bit 2~0
Bit 7~6
Bit 5~4
Name
POR
R/W
Bit
T1AM1
R/W
TM1C1 Register -- 10-bit ETM
T1ON: TM1 Counter On/Off Control
This bit controls the overall on/off function of the TM. Setting the bit high enables the counter to
run, clearing the bit disables the TM. Clearing this bit to zero will stop the counter from counting
and turn off the TM which will reduce its power consumption. When the bit changes state from
low to high the internal counter value will be reset to zero, however when the bit changes from
high to low, the internal counter will retain its residual value until the bit returns high again.
If the TM is in the Compare Match Output Mode then the TM output pin will be reset to its initial
condition, as specified by the T1OC bit, when the T1ON bit changes from low to high.
T1RP2~T1RP0: TM1 3-bit register, compared with the TM1 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 T1CCLR bit is set to zero. Setting the T1CCLR 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.
T1AM1~T1AM0: Select TM1 CCRA 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 T1AM1 and T1AM0 bits. In the
Timer/Counter Mode, the TM output pin control must be disabled.
T1AIO1~T1AIO0: Select TP1A output function
Compare Match Output Mode
Capture Input Mode
7
0
Mode/ Single Pulse Output Mode
0: Off
1: On
000: 1024 TM1 clocks
001: 128 TM1 clocks
010: 256 TM1 clocks
011: 384 TM1 clocks
100: 512 TM1 clocks
101: 640 TM1 clocks
110: 768 TM1 clocks
111: 896 TM1 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 TP1A
01: Input capture at falling edge of TP1A
10: Input capture at falling/rising edge of TP1A
11: Input capture disabled
Touch Key Flash MCU with LCD/LED Driver
T1AM0
R/W
6
0
T1AIO1
R/W
5
0
T1AIO0
R/W
86
4
0
T1AOC
R/W
3
0
BS85B12-3/BS85C20-3
T1APOL
R/W
2
0
T1CDN
R
1
0
February 1, 2011
T1CCLR
R/W
0
0

Related parts for BS85B12-3