Counte� Value
CCRA > 0 Counte� �lea�ed �y CCRA value
0xFFFF
CCRA
CCRP
STON
STPAU
STPOL
CCRA Int.
flag STMAF
CCRP Int.
flag STMPF
STMPF not
gene�ated
STM O/P Pin
Output pin set to
initial Level Low
if STOC=0
Here STIO [1:0] = 11
Toggle Output sele�t
Note: 1. With STCCLR=1 a Comparator A match will clear the counter
2. The STM output pin is controlled only by the STMAF flag
3. The output pin is reset to its initial state by a STON bit rising edge
4. A STMPF flag is not generated when STCCLR=1
Rev. 1.40
BS67F340/BS67F350/BS67F360/BS67F370
Enhanced Touch A/D Flash MCU with LCD Driver
STCCLR = 1; STM [1:0] = 00
Resu�e
Pause
Output not affe�ted �y
STMAF flag. Remains High
Output Toggle with
until reset by STON bit
STMAF flag
Note STIO [1:0] = 10
Active High Output select
Compare Match Output Mode – STCCLR=1
144
CCRA = 0
Counte� ove�flow
CCRA=0
Stop
Counte� Resta�t
Ti�e
No STMAF flag
gene�ated on
CCRA ove�flow
Output does
not �hange
Output Inve�ts
when STPOL is high
Output Pin
Reset to Initial value
Output �ont�olled �y
othe� pin-sha�ed fun�tion
De�e��e� 1�� �01�
Need help?
Do you have a question about the BS67F340 and is the answer not in the manual?