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

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
Standard Type TM - STM
Rev. 1.00
Standard TM Operation
BS85B12-3
BS85C20-3
CTM
The Standard Type TM contains five operating modes, which are Compare Match Output,
Timer/Event Counter, Capture Input, Single Pulse Output and PWM Output modes. The Standard TM
can also be controlled with an external input pin and can drive one or two external output pins.
At its core is a 10-bit count-up counter which is driven by a user selectable internal or external clock
source. There are also two internal comparators with the names, Comparator A and Comparator P.
These comparators will compare the value in the counter with CCRP and CCRA registers. The CCRP
is three bits wide whose value is compared with the highest three bits in the counter while the CCRA is
the ten bits and therefore compares with all counter bits.
The only way of changing the value of the 10-bit counter using the application program, is to clear the
counter by changing the TnON bit from low to high. The counter will also be cleared automatically by
a counter overflow or a compare match with one of its associated comparators. When these conditions
occur, a TM interrupt signal will also usually be generated. The Standard Type TM can operate in a
number of different operational modes, can be driven by different clock sources including an input pin
and can also control an output pin. All operating setup conditions are selected using relevant internal
registers.
Touch Key Flash MCU with LCD/LED Driver
10-bit STM
Name
Standard Type TM Block Diagram
TM No.
72
2
BS85B12-3/BS85C20-3
TM Input Pin
TCK2
TM Output Pin
TP2_0, TP2_1
February 1, 2011

Related parts for BS85B12-3