III PERIPHERAL BLOCK: 8-BIT PROGRAMMABLE TIMERS
B-III-3-4
EPSON
S1C33L03 FUNCTION PART
Control and Operation of 8-Bit Programmable Timer
With the 8-bit programmable timer, the following settings must first be made before it starts counting:
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 8-bit programmable timer is supplied to
external devices. For details on how to set the pin, refer to "Output Pins of 8-Bit Programmable Timers".
For details on how to set interrupts and DMA, refer to "8-Bit Programmable Timer Interrupts and DMA".
Note: The 8-bit programmable timers 0 through 3 all operate in the same way during counting, and the
structure of their control registers is also the same. The control bit names are assigned the
numerals "0" through "3" to denote the timer numbers. Since all these timers have common
functions, timer numbers here are represented it is by "x" unless necessary to specify a timer
number.
Setting the input clock
The 8-bit programmable timer is operated by the prescaler's output clock. The prescaler's division ratio can be
selected for each timer.
Division ratio select bit Clock control bit
Register
8-bit timer 0: P8TS0[2:0] (D[2:0])
P8TON0 (D3)
8-bit timer 0/1 clock control register (0x4014D)
8-bit timer 1: P8TS1[2:0] (D[6:4])
P8TON1 (D7)
8-bit timer 0/1 clock control register (0x4014D)
8-bit timer 2: P8TS2[2:0] (D[2:0])
P8TON2 (D3)
8-bit timer 2/3 clock control register (0x4014E)
8-bit timer 3: P8TS3[2:0] (D[6:4])
P8TON3 (D7)
8-bit timer 2/3 clock control register (0x4014E)
8-bit timer 4: P8TS4[2:0] (D[2:0])
P8TON4 (D3)
8-bit timer 4/5 clock control register (0x40145)
8-bit timer 5: P8TS5[2:0] (D[6:4])
P8TON5 (D7)
8-bit timer 4/5 clock control register (0x40145)
Note that the division ratios differ for each timer (see Table 3.2).
Furthermore, the prescaler input clock can be directly supplied to the 8-bit timer by writing "1" to the
P8TPCKx bit in the 8-bit timer clock select register (0x40146).
Timer 0 clock selection: P8TPCK0 (D0) / 8-bit timer clock select register (0x40146)
Timer 1 clock selection: P8TPCK1 (D1) / 8-bit timer clock select register (0x40146)
Timer 2 clock selection: P8TPCK2 (D2) / 8-bit timer clock select register (0x40146)
Timer 3 clock selection: P8TPCK3 (D3) / 8-bit timer clock select register (0x40146)
Timer 4 clock selection: P8TPCK4 (D0) / 8-bit timer clock select register (0x40140)
Timer 5 clock selection: P8TPCK5 (D1) / 8-bit timer clock select register (0x40140)
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
f
PSCIN
/256
f
PSCIN
/128
f
PSCIN
/64
f
PSCIN
/32
f
PSCIN
/16
f
PSCIN
/8
f
PSCIN
/4
f
PSCIN
/2
f
PSCIN
/1
Timer 1
f
PSCIN
/4096
f
PSCIN
/2048
f
PSCIN
/1024
f
PSCIN
/512
f
PSCIN
/256
f
PSCIN
/128
f
PSCIN
/64
f
PSCIN
/32
f
PSCIN
/1
Timer 2
f
PSCIN
/4096
f
PSCIN
/2048
f
PSCIN
/64
f
PSCIN
/32
f
PSCIN
/16
f
PSCIN
/8
f
PSCIN
/4
f
PSCIN
/2
f
PSCIN
/1
Timer 3
f
PSCIN
/256
f
PSCIN
/128
f
PSCIN
/64
f
PSCIN
/32
f
PSCIN
/16
f
PSCIN
/8
f
PSCIN
/4
f
PSCIN
/2
f
PSCIN
/1
Timer 4
f
PSCIN
/4096
f
PSCIN
/2048
f
PSCIN
/64
f
PSCIN
/32
f
PSCIN
/16
f
PSCIN
/8
f
PSCIN
/4
f
PSCIN
/2
f
PSCIN
/1
Timer 5
f
PSCIN
/256
f
PSCIN
/128
f
PSCIN
/64
f
PSCIN
/32
f
PSCIN
/16
f
PSCIN
/8
f
PSCIN
/4
f
PSCIN
/2
f
PSCIN
/1
f
PSCIN
: Prescaler input clock frequency
The selected clock is output from the prescaler to the 8-bit programmable timer by writing "1" to P8TONx.
Notes: • The 8-bit programmable timer operates only when the prescaler is operating. (Refer to
"Prescaler".)
• Do not use a clock that is faster than the CPU operating clock as the 8-bit programmable timer.
• When setting an input clock, make sure the 8-bit programmable timer is turned off.
Summary of Contents for CMOS 32-Bit Single Chip Microcomputer S1C33L03
Page 4: ......
Page 14: ......
Page 15: ...S1C33L03 PRODUCT PART ...
Page 16: ......
Page 147: ...S1C33L03 FUNCTION PART ...
Page 148: ......
Page 149: ...S1C33L03 FUNCTION PART I OUTLINE ...
Page 150: ......
Page 152: ...I OUTLINE INTRODUCTION B I 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 162: ...I OUTLINE LIST OF PINS B I 3 8 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 163: ...S1C33L03 FUNCTION PART II CORE BLOCK ...
Page 164: ......
Page 166: ...II CORE BLOCK INTRODUCTION B II 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 172: ...II CORE BLOCK CPU AND OPERATING MODE B II 2 6 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 176: ...II CORE BLOCK INITIAL RESET B II 3 4 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 224: ...II CORE BLOCK BCU Bus Control Unit B II 4 48 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 262: ...II CORE BLOCK DBG Debug Unit B II 7 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 263: ...S1C33L03 FUNCTION PART III PERIPHERAL BLOCK ...
Page 264: ......
Page 266: ...III PERIPHERAL BLOCK INTRODUCTION B III 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 322: ...III PERIPHERAL BLOCK WATCHDOG TIMER B III 5 4 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 415: ...S1C33L03 FUNCTION PART IV ANALOG BLOCK ...
Page 416: ......
Page 418: ...IV ANALOG BLOCK INTRODUCTION B IV 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 434: ...IV ANALOG BLOCK A D CONVERTER B IV 2 16 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 435: ...S1C33L03 FUNCTION PART V DMA BLOCK ...
Page 436: ......
Page 438: ...V DMA BLOCK INTRODUCTION B V 1 2 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 492: ...V DMA BLOCK IDMA Intelligent DMA B V 3 18 EPSON S1C33L03 FUNCTION PART THIS PAGE IS BLANK ...
Page 493: ...S1C33L03 FUNCTION PART VI SDRAM CONTROLLER BLOCK ...
Page 494: ......
Page 531: ...S1C33L03 FUNCTION PART VII LCD CONTROLLER BLOCK ...
Page 532: ......
Page 579: ...S1C33L03 FUNCTION PART Appendix I O MAP ...
Page 580: ......