English
Language : 

SM59D03G2 Datasheet, PDF (45/67 Pages) SyncMOS Technologies,Inc – 8-Bits Micro-controller
PCA 16 bit
counter
SM59D03G2
8-Bits Micro-controller
8KB+ ISP Flash & 1KB RAM embedded
CCnD[15:0]
16 bit comparator
CCnI
F
Interrupt
CCnI
E
TOGn register
CCnMOD = 101
Update
CCn
pin
11.2.6 8-bit PWM:
Fig 11-6: PCA high speed output
Any or all of the five PCA modules can be programmed to be a Pulse Width Modulator (PWM).
The PWM output can be used to convert digital data to an analog signal by simple external circuitry.
The frequency of the PWM depends on the clock source for the PCA counter. The pulse width
depends on the CCnDL[7:0] register and CCnDH[15:8] is not used. When all the bits in CCnDL[7:0]
are zero, the CCn pin will be kept low always. The PWM frequency is selected by SFR CCCLK as :
When CCCLK = 00, PWM output frequency = Fosc/256.
When CCCLK = 01, PWM output frequency = (Fosc/4)/256.
When CCCLK = 10, PWM output frequency = (Fosc/12)/256.
When CCCLK = 11, PWM output frequency = (CCCI pin frequency )/256.
If users want to use the PWM mode, the software must set the CCR register and always keep it
high. If software clears the CCR register, the PWM will be disabled and keep the CCn pin to low.
11.2.7 16-bit PWM:
It is almost the same as 8-bit PWM. Any or all of the five PCA modules can be programmed to be a
16-bit PWM. The frequency of the PWM depends on the clock source for the PCA counter. The
pulse width depends on the CCnD[15:0] register. When all the bits in CCnD[15:0] are zero, the CCn
pin will be kept low always. The PWM frequency is selected by SFR CCCLK as :
When CCCLK = 00, PWM output frequency = Fosc/65536.
When CCCLK = 01, PWM output frequency = (Fosc/4)/65536.
When CCCLK = 10, PWM output frequency = (Fosc/12)/65536.
When CCCLK = 11, PWM output frequency = (CCCI pin frequency )/65536.
Still, if users want to use this PWM mode, the software must set the CCR register and always keep
it high. If software clears the CCR register, the PWM will be disabled and keep the CCn pin to low.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M030
45
Ver.C SM59D03G2 07/2009