Chapter 4 Timer Functions
80
4-8 Buzzer Output
4-8-1 Buzzer Output Setup and Operation
The square wave having a frequency 1/2
9
to 1/2
12
of the system clock can be
output from the P06/BUZZER pin.
(1) Set the BUZOE flag of the oscillation stabilization wait control register (DLYCTR)
to "0" so that the buzzer output is turned off.
(2) Set the buzzer output frequency with the BUZCK1 and BUZCK0 flags of the
DLYCTR.
(3) Set the BUZOE flag of the DLYCTR register to "1" and set P06 to the buzzer output
mode.
(4) The BUZOE flag of the DLYCTR register controls whether the buzzer output is ON
or OFF.
Buzzer Output