Generating tones using pic16f877

Thread Starter

jt21

Joined Oct 10, 2009
7
Hi all,

May I know how do I generate different tones on a buzzer using PIC16F877?
Is it necessary to use the PWN registers or CCP registers? I'm totally clueless here as this is the first time I'm doing it. Also the language to be written in is C.

Thanks for viewing.
 

mik3

Joined Feb 4, 2008
4,843
You can use the PWM. By changing the duty cycle you will control the loudness and by changing the frequency you will change the tone sound.
 
Top