Rev. 1.20
80
�an�a�� 2�� 201�
Rev. 1.20
81
�an�a�� 2�� 201�
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
CCRA
CCRP
0x�FF
Co�nte�
ove�flow
CCRA Int.
Flag CTMA0F
CCRP Int.
Flag CTMP0F
CCRP > 0
Co�nte� clea�ed b� CCRP val�e
CTM0O/P Pin
CT0ON
Pa�se
Co�nte�
Reset
O�tp�t Pin set
to Initial Level
Low if CT0OC= 0
O�tp�t Toggle
with CTMA0F flag
He�e CT0IO[1:0] = 11
Toggle O�tp�t Select
Now CT0IO[1:0] = 10
Active High O�tp�t Select
O�tp�t not affected b�
CTMA0F flag. Remains High
�ntil �eset b� CT0ON bit
Compare Match Output Mode - CT0CCLR= 0
CT0CCLR= 0; CT0M[1:0] = 00
CT0PAU
Res�me
Stop
Time
CCRP > 0
CCRP = 0
CT0POL
O�tp�t Pin
Reset to initial val�e
O�tp�t inve�ts
when CT0POL is high
O�tp�t cont�olled
b� othe� pin-sha�ed f�nction
Co�nte� Val�e
Compare Match Output Mode - CT0CCLR=0
Note: 1. With C
T
0CCLR = 0,
a
Comparator P match will clear the counter
2. The C
TM
0 output pin controlled only by the CTMA0F flag
3. The output pin reset to initial state by a C
T
0ON bit rising edge