Rev. 1.40
144
De�e��e� 1�� �01�
Rev. 1.40
14�
De�e��e� 1�� �01�
BS67F340/BS67F350/BS67F360/BS67F370
Enhanced Touch A/D Flash MCU with LCD Driver
BS67F340/BS67F350/BS67F360/BS67F370
Enhanced Touch A/D Flash MCU with LCD Driver
Counte� Value
0xFFFF
CCRP
CCRA
STON
STPAU
STPOL
CCRP Int.
flag STMPF
CCRA Int.
flag STMAF
STM O/P Pin
Ti�e
CCRA=0
CCRA = 0
Counte� ove�flow
CCRA > 0 Counte� �lea�ed �y CCRA value
Pause
Resu�e
Stop
Counte� Resta�t
STCCLR = 1; STM [1:0] = 00
Output pin set to
initial Level Low
if STOC=0
Output Toggle with
STMAF flag
Note STIO [1:0] = 10
Active High Output select
Here STIO [1:0] = 11
Toggle Output sele�t
Output not affe�ted �y
STMAF flag. Remains High
until reset by STON bit
Output Pin
Reset to Initial value
Output �ont�olled �y
othe� pin-sha�ed fun�tion
Output Inve�ts
when STPOL is high
STMPF not
gene�ated
No STMAF flag
gene�ated on
CCRA ove�flow
Output does
not �hange
Compare Match Output Mode – STCCLR=1
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