III PERIPHERAL BLOCK:
Control and Operation of
With the
1.Setting the output pin (only when necessary)
2.Setting the input clock
3.Setting the preset data (initial counter value)
4.Setting the interrupt/IDMA/HSDMA
Setting of an output pin is necessary only when the output clock of the
For details on how to set interrupts and DMA, refer to
Note: The
Setting the input clock
The
selected for each timer. |
|
|
Division ratio select bit | Clock control bit | Register |
P8TON0 (D3) | ||
P8TON1 (D7) | ||
P8TON2 (D3) | ||
P8TON3 (D7) | ||
P8TON4 (D3) | ||
P8TON5 (D7) |
Note that the division ratios differ for each timer (see Table 3.2).
Furthermore, the prescaler input clock can be directly supplied to the
Timer 0 clock selection: P8TPCK0 (D0) /
Timer 1 clock selection: P8TPCK1 (D1) /
Timer 2 clock selection: P8TPCK2 (D2) /
Timer 3 clock selection: P8TPCK3 (D3) /
Timer 4 clock selection: P8TPCK4 (D0) /
Timer 5 clock selection: P8TPCK5 (D1) /
When using the divided clock selected by P8TSx, set P8TPCKx to "0".
Table 3.2 Input Clock Selection
Timer | P8TSx = 7 | P8TSx = 6 | P8TSx = 5 | P8TSx = 4 | P8TSx = 3 | P8TSx = 2 | P8TSx = 1 | P8TSx = 0 | P8TPCK = 1 |
Timer 0 | fPSCIN/256 | fPSCIN/128 | fPSCIN/64 | fPSCIN/32 | fPSCIN/16 | fPSCIN/8 | fPSCIN/4 | fPSCIN/2 | fPSCIN/1 |
Timer 1 | fPSCIN/4096 | fPSCIN/2048 | fPSCIN/1024 | fPSCIN/512 | fPSCIN/256 | fPSCIN/128 | fPSCIN/64 | fPSCIN/32 | fPSCIN/1 |
Timer 2 | fPSCIN/4096 | fPSCIN/2048 | fPSCIN/64 | fPSCIN/32 | fPSCIN/16 | fPSCIN/8 | fPSCIN/4 | fPSCIN/2 | fPSCIN/1 |
Timer 3 | fPSCIN/256 | fPSCIN/128 | fPSCIN/64 | fPSCIN/32 | fPSCIN/16 | fPSCIN/8 | fPSCIN/4 | fPSCIN/2 | fPSCIN/1 |
Timer 4 | fPSCIN/4096 | fPSCIN/2048 | fPSCIN/64 | fPSCIN/32 | fPSCIN/16 | fPSCIN/8 | fPSCIN/4 | fPSCIN/2 | fPSCIN/1 |
Timer 5 | fPSCIN/256 | fPSCIN/128 | fPSCIN/64 | fPSCIN/32 | fPSCIN/16 | fPSCIN/8 | fPSCIN/4 | fPSCIN/2 | fPSCIN/1 |
fPSCIN: Prescaler input clock frequency
The selected clock is output from the prescaler to the
Notes: • The
•Do not use a clock that is faster than the CPU operating clock as the
•When setting an input clock, make sure the
EPSON | S1C33L03 FUNCTION PART |