Question about programming speaker to PIC 18F4520

Dallas

New Member
Hi all, this is my 1st post just a question.

Is there a way to program speaker to 18f4520? like using C language or something?
 
I think Dallas is asking how to generate sound using speaker. By generating different frequency squarewaves it should be possible generate different sounds.
 
I did a design using the smaller PIC12F675 and used MPLAB assembler language.
My circuit can generate 8 different tones. Used as Normal and
Critical alarm annunciation in Power Station Control room
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…