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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Under development<br />

Preliminary document<br />

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

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 9 CLOCK OUTPUT/BUZZER OUTPUT CONTROLLER<br />

9.4 Operations of Clock Output/Buzzer Output Controller<br />

One pin can be used to output a clock or buzzer sound.<br />

The PCL pin outputs a clock/buzzer selected by the clock output select register 0 (CKS0).<br />

9.4.1 Operation as output pin<br />

The PCL pin is output as the following procedure.<br />

Select the PCL output pin by the PCLSEL bit in the SGSEL register.<br />

Select the output frequency with bits 0 to 3 (CCS00 to CCS02, CSEL0) of the clock output select register 0<br />

(CKS0) of the PCL pin (output in disabled status).<br />

Set bit 7 (PCLOE0) of the CKS0 register to 1 to enable clock/buzzer output.<br />

Remarks The controller used for outputting the clock starts or stops outputting the clock one clock after enabling or<br />

disabling clock output (PCLOE0 bit) is switched. At this time, pulses with a narrow width are not output.<br />

Figure 9-6 shows enabling or stopping output using the PCLOE0 bit and the timing of outputting the clock.<br />

Figure 9-6. Remote Control Output Application Example<br />

9.5 Cautions of clock output/buzzer output controller<br />

When the main system clock is selected for the PCL output, if STOP or HALT mode is entered within 1.5 main system<br />

clock cycles after the output is disabled (PCLOE0 = 0), the PCL output width becomes shorter.<br />

R01UH0317EJ0004 Rev. 0.04 496<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!