Prescaler; Configuration Of Prescaler; Source Clock - Epson CMOS 32-Bit Single Chip Microcomputer S1C33L03 Technical Manual

Cmos 32-bit single chip microcomputer
Table of Contents

Advertisement

III-2 PRESCALER

Configuration of Prescaler

The prescaler divides the source clock (OSC3/PLL output clock or OSC1 clock) to generate the clocks for the
internal peripheral circuits. The prescaler division ratio can be selected for each peripheral circuit in a program. A
clock control circuit to control the clock supply to each peripheral circuit is also included.
The following are the peripheral circuits that use the output clock:
• 16-bit programmable timers 5 to 0 (and watchdog timer)
• 8-bit programmable timers 5 to 0 (and serial interface)
• A/D converter
Figure 2.1 shows the configuration of the prescaler.
For details on control of each peripheral circuit, refer to each corresponding section in this manual.
PSCON
OSC3 or
PLL output clock
Selector
OSC1 clock

Source Clock

The source clock for the prescaler can be selected using PSCDT0 (D0) / Prescaler clock select register (0x40181).
When PSCDT0 = "0", the OSC3 clock (when the PLL is not used) or the PLL output clock (when the PLL is used)
is selected.
When PSCDT0 = "1", the OSC1 clock (typ. 32 kHz) is selected.
At initial reset, the OSC3/PLL output clock is selected.
Note: For the prescaler clock, the clock source same as the CPU operating clock must be selected.
For details on how to control the oscillation circuit and CPU operating clock, refer to "CLG (Clock Generator)".
At initial reset, the OSC3 clock is selected.
The source clock is supplied to the prescaler by writing "1" to PSCON (D5) / Power control register (0x40180). At
initial reset, PSCON is set to "1", so the prescaler is in an operating state. If all of said peripheral circuits can be
turned off and the peripheral circuits (e.g., 16-bit programmable timers (watchdog timer), 8-bit programmable
timers (DRAM refresh), A/D converter, serial interface, and ports) that use the prescaler input clock (the source
clock for prescaler) can be turned off, stop the prescaler by writing "0" to PSCON. This helps to reduce current
consumption.
S1C33L03 FUNCTION PART
1/1
1/2
1/4
1/8
Division ratio
select register

Prescaler

Control register
output control
Figure 2.1 Configuration of Prescaler and Clock Control Circuit
III PERIPHERAL BLOCK: PRESCALER
1/16
1/32
1/64
1/128 1/256 1/512 1/1024 1/2048 1/4096
Selector
EPSON
16-bit programmable timer 5–0
8-bit programmable timer 5–0
A/D converter
B-III-2-1
A-1
B-III
PSC

Advertisement

Table of Contents
loading

Table of Contents