Buzzer Output - Renesas M16C Series User Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30245 Group

3.3 Buzzer Output

Overview
Specifications
www.DataSheet4U.com
Operation
Timer A0
overflow timing
Count start flag
Pulse output
function select bit
P7
output
0
Figure 3.3.1. Operation timing of buzzer output
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
The timer mode is used to make the buzzer ring. Figure 3.3.1 shows the operation timing, and
Figure 3.3.2 shows the set-up procedure.
Use the following peripheral function:
• The pulse-outputting function in timer mode of timer A.
(1) Sound a 2-kHz buzz beep by use of timer A0.
(2) Effect pull-up in the relevant port by use of a pull-up resistor. When the buzzer is off, set the
port high-impedance, and stabilize the potential resulting from pulling up.
(3) Connect a 16-MHz oscillator to X
(1) The microcomputer begins performing a count on timer A0. Timer A0 has disabled interrupts.
(2) The microcomputer begins pulse output by setting the pulse output function select bit to
"Pulse output effected". P7
(3) The microcomputer stops outputting pulses by setting the pulse output function select bit to
"Pulse output not effected". P7
high-impedance.
(1) Start count
"1"
"0"
"1"
"0"
"1"
High-impedance
"0"
page 303 of 354
.
IN
changes into TA0
pin and outputs 2-kHz pulses.
0
OUT
goes to an input pin, and the output from the pin becomes
0
(2) Buzzer output ON
3. Timer A Applications
(3) Buzzer output OFF
High-impedance

Advertisement

Table of Contents
loading

Table of Contents