BS85B12-3 HOLTEK [Holtek Semiconductor Inc], BS85B12-3 Datasheet - Page 77

no-image

BS85B12-3

Manufacturer Part Number
BS85B12-3
Description
Touch Key Flash Type 8-Bit MCU with LCD/LED Driver
Manufacturer
HOLTEK [Holtek Semiconductor Inc]
Datasheet
BS85B12-3/BS85C20-3
Touch Key Flash MCU with LCD/LED Driver
Note:
Rev. 1.00
TM O/P Pin
TM O/P Pin
Period
Period
CCRP
CCRP
Flag TnAF
CCRA Int.
Flag TnPF
Duty
Duty
CCRP Int.
TnPAU
TnPOL
CCRA
CCRP
TnON
1. Here TnDPX = 1 -- Counter cleared by CCRA
2. A counter clear sets the PWM Period
3. The internal PWM function continues even when TnIO [1:0] = 00 or 01
4. The TnCCLR bit has no influence on PWM operation
Counter Value
(TnOC=1)
(TnOC=0)
CTM, PWM Mode, Edge-aligned Mode, T0DPX=0
CTM, PWM Mode, Edge-aligned Mode, T0DPX=1
PWM Duty Cycle
set by CCRP
If f
The CTM PWM output frequency = (f
If the Duty value defined by the CCRA register is equal to or greater than the Period value, then the
PWM output duty is 100%.
The output period is determined by the CCRA register value together with the TM clock while the
PWM duty cycle is defined by the CCRP register value.
001b
001b
128
128
SYS
= 16MHz, TM clock source is f
010b
010b
256
256
Counter cleared
by CCRA
011b
011b
384
384
PWM Mode -- TnDPX = 1
SYS
SYS
100b
100b
512
512
/4, CCRP = 100b and CCRA =128,
71
/4) / 512 = f
PWM Period
set by CCRA
CCRA
CCRA
Pause Resume
101b
101b
640
640
SYS
/2048 = 7.8125 kHz, duty = 128/512 = 25%.
Output controlled by
other pin-shared function
TnDPX = 1; TnM [1:0] = 10
110b
110b
768
768
Counter Stop if
TnON bit low
PWM resumes
operation
Counter Reset when
TnON returns high
111b
111b
896
896
Output Inverts
when TnPOL = 1
February 1, 2011
000b
1024
000b
1024
Time

Related parts for BS85B12-3