Rev. 1.60
114
August 20, 2019
Rev. 1.60
115
August 20, 2019
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
Counter Value
0x3FF
CCRP
CCRA
CTnON
CTnPAU
CTnPOL
CTMn O/P Pin
Time
CCRA=0
CCRA = 0
Counter overflow
CCRA > 0 Counter cleared by CCRA value
Pause
Resume
Stop
Counter Restart
CTnCCLR = 1; CTnM [1:0] = 00
Output pin set to
initial Level Low
if CTnOC=0
Output Toggle with
CTMnAF flag
Note CTnIO [1:0] = 10
Active High Output select
Here CTnIO [1:0] = 11
Toggle Output select
Output not affected by
CTMnAF flag. Remains High
until reset by CTnON bit
Output Pin
Reset to Initial value
Output controlled by
other pin-shared function
Output Inverts
when CTnPOL is high
CTMnPF not
generated
No CTMnAF flag
generated on
CCRA overflow
Output does
not change
CCRA Int.
flag CTMnAF
CCRP Int.
flag CTMnPF
Compare Match Output Mode – CTnCCLR=1
Note: 1. With CTnCCLR=1, a Comparator A match will clear the counter
2. The CTMn output pin is controlled only by CTMnAF flag
3. The CTMn output pin is reset to initial state by CTnON rising edge
4. The CTMnPF flags is not generated when CTnCCLR=1
5. n=0 or 1