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

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 7~6
Bit 5~4
Name
POR
R/W
Bit
T1BM1
R/W
TM1C2 Register -- 10-bit ETM
T1BM1~T1BM0: Select TM1 CCRB 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 T1BM1 and T1BM0 bits. In the
Timer/Counter Mode, the TM output pin control must be disabled.
T1BIO1~T1BIO0: Select TP1B_0, TP1B_1, TP1B_2 output function
Compare Match Output Mode
Capture Input Mode
Timer/counter Mode
These two bits are used to determine how the TM output pin changes state when a certain
condition is reached. The function that these bits select depends upon in which mode the
TM is running.
In the Compare Match Output Mode, the T1BIO1 and T1BIO0 bits determine how the TM
output pin changes state when a compare match occurs from the Comparator A. The TM output
pin can be setup to switch high, switch low or to toggle its present state when a compare match
occurs from the Comparator A. When the bits are both zero, then no change will take place on
the output. The initial value of the TM output pin should be setup using the T1BOC bit in the
TM1C2 register. Note that the output level requested by the T1BIO1 and T1BIO0 bits must be
different from the initial value setup using the T1BOC bit otherwise no change will occur on the
TM output pin when a compare match occurs. After the TM output pin changes state it can be
reset to its initial level by changing the level of the T1ON bit from low to high.
In the PWM Mode, the T1BIO1 and T1BIO0 bits determine how the TM output pin changes
state when a certain compare match condition occurs. The PWM output function is modified by
changing these two bits. It is necessary to change the values of the T1BIO1 and T1BIO0 bits only
after the TM has been switched off. Unpredictable PWM outputs will occur if the T1BIO1 and
T1BIO0 bits are changed when the TM is running
7
0
Mode/Single Pulse Output Mode
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 TP1B_0, TP1B_1, TP1B_2
01: Input capture at falling edge of TP1B_0, TP1B_1, TP1B_2
10: Input capture at falling/rising edge of TP1B_0, TP1B_1, TP1B_2
11: Input capture disabled
Unused
Touch Key Flash MCU with LCD/LED Driver
T1BM0
R/W
6
0
T1BIO1
R/W
5
0
T1BIO0
R/W
88
4
0
T1BOC
R/W
3
0
BS85B12-3/BS85C20-3
T1BPOL
R/W
2
0
T1PWM1
R
1
0
February 1, 2011
T1PWM0
R/W
0
0

Related parts for BS85B12-3