Datasheet

SOUND LIBRARY
The mikroC PRO for AVR provides a Sound Library to supply users with routines
necessary for sound signalization in their applications. Sound generation needs
additional hardware, such as piezo-speaker (example of piezo-speaker interface is
given on the schematic at the bottom of this page).
External dependencies of Sound Library
Library Routines
- Sound_Init
- Sound_Play
421
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
The following variables
must be defined in all
projects using Sound
Library:
Description: Example :
extern sfr sbit
Sound_Play_Pin;
Sound output pin.
sbit Sound_Play_Pin
at PORTC.B3;
extern sfr sbit
Sound_Play_Pin_Direct
ion;
Direction of the Sound out-
put pin.
sbit
Sound_Play_Pin_Direct
ion at DDRC.B3;