CHAPTER 11 CLOCK OUTPUT/BUZZER OUTPUT CONTROLLER
Page 272 of 920
11.4
Operations of Clock Output/Buzzer Output Controller
One pin can be used to output a clock or buzzer sound.
The PCLBUZ0 pin outputs a clock/buzzer selected by the clock output select register 0 (CKS0).
The PCLBUZ1 pin outputs a clock/buzzer selected by the clock output select register 1 (CKS1).
11.4.1
Operation as output pin
The PCLBUZn pin is output as the following procedures.
<1> Set 0 in the bit of the port mode register (PMxx) and port register (Pxx) which correspond to the port which
has a pin used as the PCLBUZ0 pin.
<2> Select the output frequency with bits 0 to 3 (CCSn0 to CCSn2, CSELn) of the clock output select register
(CKSn) of the PCLBUZn pin (output in disabled status).
<3> Set bit 7 (PCLOEn) of the CKSn register to 1 to enable clock/buzzer output.
Remark 1.
The controller used for outputting the clock starts or stops outputting the clock one clock after
enabling or disabling clock output (PCLOEn bit) is switched. At this time, pulses with a narrow width
are not output. Figure 11 - 3 shows enabling or stopping output using the PCLOEn bit and the timing
of outputting the clock.
Remark 2.
n = 0, 1
Figure 11 - 3 Timing of Outputting Clock from PCLBUZn Pin
11.5
Cautions of clock output/buzzer output controller
When the main system clock is selected for the PCLBUZn output (CSELn = 0), if STOP mode is entered within 1.5
clock cycles output from the PCLBUZn pin after the output is disabled (PCLOEn = 0), the PCLBUZn output width
becomes shorter.
PCLOEn
Clock output
Narrow pulses are not recognized
1 clock elapsed
Summary of Contents for RL78/G1H
Page 941: ...R01UH0575EJ0120 RL78 G1H...