English
Language : 

BS66F340 Datasheet, PDF (135/256 Pages) Holtek Semiconductor Inc – Enhanced Touch A/D Flash MCU with LED Driver
BS66F340/BS66F350/BS66F360/BS66F370
Enhanced Touch A/D Flash MCU with LED Driver
Counte� Value
0xFFFF
CCRA
CCRP
STCCLR = 1; STM [1:0] = 00
CCRA > 0 Counte� �lea�ed �y CCRA value
CCRA = 0
Counte� ove�flow
Resu�e
CCRA=0
Pause
Stop Counte� Resta�t
STON
Ti�e
STPAU
STPOL
CCRA Int.
flag STMAF
No STMAF flag
gene�ated on
CCRA ove�flow
CCRP Int.
flag STMPF
STM O/P Pin
STMPF not
gene�ated
Output pin set to
initial Level Low
if STOC=0
Output Toggle with
STMAF flag
He�e STIO [1:0] = 11
Toggle Output sele�t
Output does
not �hange
Output not affe�ted �y
STMAF flag. Re�ains High
until �eset �y STON �it
Output Pin
Output Inve�ts
when STPOL is high
Note STIO [1:0] = 10
A�tive High Output sele�t
Reset to Initial value
Output �ont�olled �y
othe� pin-sha�ed fun�tion
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
Rev. 1.40
135
December 15, 2016