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

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
Note:
Rev. 1.00
Flag TnPF
Flag TnBF
1. With TnCCLR=0 a Comparator P match will clear the counter
2. The TPnB output pin is controlled only by the TnBF flag
3. The output pin is reset to its initial state by a TnON bit rising edge
CCRP Int.
CCRB Int.
TPnB O/P
TnBPOL
TnPAU
0x3FF
CCRP
CCRB
TnON
Counter Value
Pin
As the name of the mode suggests, after a comparison is made, the TM output pin, will change state.
The TM output pin condition however only changes state when an TnAF or TnBF interrupt request
flag is generated after a compare match occurs from Comparator A or Comparator B. The TnPF
interrupt request flag, generated from a compare match from Comparator P, will have no effect on the
TM output pin. The way in which the TM output pin changes state is determined by the condition of
the TnAIO1 and TnAIO0 bits in the TMnC1 register for ETM CCRA, and the TnBIO1 and TnBIO0
bits in the TMnC2 register for ETM CCRB. The TM output pin can be selected using the TnAIO1,
TnAIO0 bits (for the TPnA pin) and TnBIO1, TnBIO0 bits (for the TPnB_0, TPnB_1 or TPnB_2 pins)
to go high, to go low or to toggle from its present condition when a compare match occurs from
Comparator A or a compare match occurs from Comparator B. The initial condition of the TM output
pin, which is setup after the TnON bit changes from low to high, is setup using the TnAOC or TnBOC
bit for TPnA or TPnB_0, TPnB_1, TPnB_2 output pins. Note that if the TnAIO1,TnAIO0 and
TnBIO1, TnBIO0 bits are zero then no pin change will take place.
Output pin set to
initial Level Low
if TnBOC=0
CCRP=0
ETM CCRB Compare Match Output Mode -- TnCCLR = 0
Touch Key Flash MCU with LCD/LED Driver
Counter overflow
Here TnBIO [1:0] = 11
Toggle Output select
Output Toggle with
TnBF flag
CCRP > 0
Note TnBIO [1:0] = 10
Active High Output select
CCRP > 0
Counter cleared by CCRP value
92
Output not affected by TnBF
flag. Remains High until reset
by TnON bit
Pause
Resume
BS85B12-3/BS85C20-3
TnCCLR = 0; TnBM [1:0] = 00
Stop
Output controlled by
other pin-shared function
Counter
Restart
Output Pin
Reset to Initial value
Output Inverts
when TnBPOL is high
February 1, 2011
Time

Related parts for BS85B12-3