Epson Arm S1C31 Series Technical Manual page 35

Cmos 32-bit single chip microcontroller
Table of Contents

Advertisement

2 POWER SUPPLY, RESET, AND CLOCKS
(2) CLGOSC1.OSC1BUP bit = 1 (startup boosting operation enabled)
Oscillator circuit enable
(CLGOSC.OSC1EN)
Oscillation inverter
Oscillation waveform
Figure 2.3.4.2 Operation Example when the Oscillation Startup Control Circuit is Used
Oscillation start procedure for the IOSC oscillator circuit
Follow the procedure shown below to start oscillation of the IOSC oscillator circuit.
1. Write 1 to the CLGINTF.IOSCSTAIF bit.
2. Write 1 to the CLGINTE.IOSCSTAIE bit.
3. Write 0x0096 to the SYSPROT.PROT[15:0] bits. (Remove system protection)
4. Configure the CLGIOSC.IOSCFQ[1:0] bits.
5. Set the CLGTRIM1.IOSCLSAJ[5:0] bits (f
MHz) as necessary.
6. Write a value other than 0x0096 to the SYSPROT.PROT[15:0] bits. (Set system protection)
7. Write 1 to the CLGOSC.IOSCEN bit.
8. IOSCCLK can be used if the CLGINTF.IOSCSTAIF bit = 1 after an interrupt occurs.
The setting values of the CLGTRIM1.IOSCLSAJ[5:0] and CLGTRIM1.IOSCHSAJ[5:0] bits should be
determined after performing evaluation using the populated circuit board.
Note: Make sure the CLGOSC.IOSCEN bit is set to 0 (while the IOSC oscillation is halted) when setting
the CLGTRIM1.IOSCLSAJ[5:0] or CLGTRIM1.IOSCHSAJ[5:0] bits.
Oscillation start procedure for the OSC1 oscillator circuit
Follow the procedure shown below to start oscillation of the OSC1 oscillator circuit.
1. Write 1 to the CLGINTF.OSC1STAIF bit.
2. Write 1 to the CLGINTE.OSC1STAIE bit.
3. Write 0x0096 to the SYSPROT.PROT[15:0] bits. (Remove system protection)
4. Configure the following CLGOSC1 register bits:
- CLGOSC1.OSC1SELCR bit
- CLGOSC1.OSC1WT[1:0] bits
In addition to the above, configure the following bits when using the crystal oscillator:
- CLGOSC1.INV1N[1:0] bits
- CLGOSC1.CGI1[2:0] bits
- CLGOSC1.INV1B[1:0] bits
- CLGOSC1.OSC1BUP bit
5. When using the internal oscillator, set the CLGTRIM2.OSC1SAJ[5:0] bits as necessary.
6. Write a value other than 0x0096 to the SYSPROT.PROT[15:0] bits. (Set system protection)
7. Write 1 to the CLGOSC.OSC1EN bit.
8. OSC1CLK can be used if the CLGINTF.OSC1STAIF bit = 1 after an interrupt occurs.
The setting values of the CLGOSC1.INV1N[1:0], CLGOSC1.CGI1[2:0], CLGOSC1.OSC1WT[1:0],
CLGOSC1.INV1B[1:0], and CLGTRIM2.OSC1SAJ[5:0] bits should be determined after performing evaluation
using the populated circuit board.
Note: Make sure the CLGOSC.OSC1EN bit is set to 0 (while the OSC1 oscillation is halted) when set-
ting the CLGTRIM2.OSC1SAJ[5:0] bits.
2-10
INV1B[1:0] setting gain
Startup boosting
operation
(Clear interrupt flag)
(Enable interrupt)
(Select frequency)
= 2/1 MHz) or CLGTRIM1.IOSCHSAJ[5:0] bits (f
IOSC
(Finely adjust oscillation frequency)
(Start oscillation)
(Clear interrupt flag)
(Enable interrupt)
(Select oscillator type)
(Set oscillation stabilization waiting time)
(Set oscillation inverter gain)
(Set internal gate capacitor)
(Set oscillation inverter gain for startup boosting period)
(Enable/disable oscillation startup control circuit)
(Finely adjust oscillation frequency)
(Start oscillation)
Seiko Epson Corporation
INV1N[1:0] setting gain
Normal operation
S1C31D41 TECHNICAL MANUAL
= 8
IOSC
(Rev. 1.1)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Arm s1c31d41

Table of Contents