English
Language : 

SM59D03G2 Datasheet, PDF (41/67 Pages) SyncMOS Technologies,Inc – 8-Bits Micro-controller
SM59D03G2
8-Bits Micro-controller
8KB+ ISP Flash & 1KB RAM embedded
11 Programmable Counter Array (PCA)
The PCA provides more timing capabilities with less CPU intervention than the standard
timer/counters. The PCA consists of a dedicated counter which serves as the time base for an array
of five compare/capture modules. Its clock input can be programmed to count any one of the
following signals:
- Fosc
- Fosc/4
- Fosc/12
- External clock input (CCCI pin, i.e., Port1[2])
where Fosc is the system Frequency defined in Section 1. Each compare/capture module can be
programmed in any one of the following modes:
- Positive edge capture mode
- Negative edge capture mode
- Both positive and negative edge capture mode
- Timer mode
- High Speed Output mode
- 8-bit PWM mode
- 16-bit PWM mode
When the compare/capture modules are programmed in the capture mode, timer mode, or high
speed output mode, an interrupt can be generated when the module executes its function. All five
modules share one interrupt vector.
11.1 PCA clock select
The clock input can be selected from the following four modes:
11.1.1 CCCLK = 00, selected system clock.
The PCA counter increments once per system clock. Take a 16MHz oscillator as the example, the
counter increments every 62.5ns in 6T mode, or 125ns in 12T mode.
11.1.2 CCCLK = 01, selected system clock/4
The PCA counter increments once every 4 system clocks. Take a 16MHz oscillator as the example,
the counter increments every 250ns in 6T mode, or 500ns in 12T mode.
11.1.3 CCCLK = 10, selected system clock/12.
The PCA counter increments once every 12 system clocks. Take a 16MHz oscillator as the
example, the counter increments every 750ns in 6T mode, or 1.5us in 12T mode.
11.1.4 CCCLK = 11, selected external clock input.
The PCA counter increments when a 1-to-0 transition is detected on the CCCI pin (= P1[2]).
Condition: Whatever 12T or 6T setting, CCCI pin ≤ Fcry . Example, 16MHz oscillator, CCCI must
8
not more than 2MHz.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M030
41
Ver.C SM59D03G2 07/2009