04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 5 CLOCK GENERATOR<br />

Table 5-2. Condition Before Stopping Clock Oscillation and Flag Setting<br />

Clock<br />

X1 clock<br />

External main system<br />

clock<br />

Condition Before Stopping Clock<br />

(Invalidating External Clock Input)<br />

CPU and peripheral hardware clocks operate with a clock<br />

other than the high-speed system clock.<br />

(CLS = 0 and MCS = 0, or CLS = 1)<br />

XT1 clock CPU and peripheral hardware clocks operate with a clock<br />

other than the subsystem clock.<br />

(CLS = 0)<br />

High-speed on-chip<br />

oscillator clock<br />

CPU and peripheral hardware clocks operate with a clock<br />

other than the high-speed on-chip oscillator clock.<br />

(CLS = 0 and MCS = 1, or CLS = 1)<br />

Setting of CSC<br />

Register Flags<br />

MSTOP = 1<br />

XTSTOP = 1<br />

HIOSTOP = 1<br />

(4) Oscillation stabilization time counter status register (OSTC)<br />

This is the register that indicates the count status of the X1 clock oscillation stabilization time counter.<br />

The X1 clock oscillation stabilization time can be checked in the following case,<br />

If the X1 clock starts oscillation while the high-speed on-chip oscillator clock or subsystem clock is being used as<br />

the CPU clock.<br />

If the STOP mode is entered and then released while the high-speed on-chip oscillator clock is being used as the<br />

CPU clock with the X1 clock oscillating.<br />

The OSTC register can be read by a 1-bit or 8-bit memory manipulation instruction.<br />

When reset signal is generated, the STOP instruction and MSTOP (bit 7 of clock operation status control register<br />

(CSC)) = 1 clear the OSTC register to 00H.<br />

Remark The oscillation stabilization time counter starts counting in the following cases.<br />

When oscillation of the X1 clock starts (EXCLK, OSCSEL = 0, 1 MSTOP = 0)<br />

When the STOP mode is released<br />

R01UH0317EJ0004 Rev. 0.04 277<br />

Feb. 22, 2013

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!