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

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
BS85B12-3/BS85C20-3
Touch Key Flash MCU with LCD/LED Driver
Note:
Rev. 1.00
TM O/P Pin
Flag TnAF
Flag TnPF
CCRA Int.
CCRP Int.
Timer/Counter Mode
TnPAU
TnPOL
0x3FF
CCRA
CCRP
TnON
Counter Value
2. The TM output pin is controlled only by the TnAF flag
3. The output pin is reset to its initial state by a TnON bit rising edge
4. The TnPF flag is not generated when TnCCLR=1
1. With TnCCLR=1, a Comparator A match will clear the counter
Output pin set to
initial Level Low
if TnOC=0
To select this mode, bits TnM1 and TnM0 in the TMnC1 register should be set to 11 respectively. The
Timer/Counter Mode operates in an identical way to the Compare Match Output Mode generating the
same interrupt flags. The exception is that in the Timer/Counter Mode the TM output pin is not used.
Therefore the above description and Timing Diagrams for the Compare Match Output Mode can be
used to understand its function. As the TM output pin is not used in this mode, the pin can be used as a
normal I/O pin or other pin-shared function.
TnPF not
generated
Here TnIO [1:0] = 11
Toggle Output select
CCRA > 0 Counter cleared by CCRA value
Output Toggle with
TnAF flag
Compare Match Output Mode -- TnCCLR = 1
Note TnIO [1:0] = 10
Active High Output select
69
Pause
Output not affected by
TnAF flag. Remains High
until reset by TnON bit
Resume
TnCCLR = 1; TnM [1:0] = 00
Stop
Output controlled by
other pin-shared function
CCRA=0
Counter Restart
Output Pin
Reset to Initial value
CCRA = 0
Counter overflow
Output Inverts
when TnPOL is high
February 1, 2011
No TnAF flag
generated on
CCRA overflow
Output does
not change
Time

Related parts for BS85B12-3