Setup Example - Panasonic MN101L Series User Manual

Lsi
Table of Contents

Advertisement

Chapter 15
Buzzer
15.3.2

Setup Example

Setup Example
The following example shows how to output the buzzer of 2.44 kHz from BUZB pin under the 10 MHz of f
Step
Setup Procedure
1
Set the buzzer frequency
2
Set the buzzer output pin
3
Enable buzzer output
4
Disable buzzer output
XV - 6
Operation
Register
BUZCTR Set the BUZCTR.BUZS to "010".
BUZCNT
Select the P02 as the buzzer output pin by
P0OUT
- Setting the BUZCNT.BUZEN to 1.
P0DIR
- Setting the BUZCNT.BUZSEL to 1.
Select the output direction, and the output data of "1" at P02.
- Set the P0OUT.P0OUT2 to "0".
- Set the P0DIR.P0DIR2 to "1".
BUZCTR Set the BUZCTR.BUZOE to "1".
BUZCTR Set the BUZCTR.BUZOE to "0".
"Low" level signal is output from buzzer output pin.
Description
.
HCLK

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents