Sign In

Police Siren Making In Mikro Cpro

SAURABH sharma sbgkp.ss@gmail.com India

Hardware: Pic 16f72 ,20mhz Software: C ,mikro C Pro

hello sir
I am new in programming I want to make police siren sound in micro c Pro for pic16f72 microcontroller. I want my frequency very 500 to1200 hz increase and decrease & repeat continuously. My friend say used TMR 0 interrupt in your project but we have no idea how to used TMR0 interrupt in this project.
please help me.
hope you reply.

Images

Program

void main()
{
unsigned interest Notes []=
{500,600,700,800,900,1000,1100,
1200,1100,1000,900,800,700,600,500,}
unsigned char i=0;
TRISC=0;
sound_init (&PORTC,2);
for (;;)
{
sound_play (Notes [i],10);
delay_ms(25);
i=++;
if (i==15)i=0;
}}

Replies

R Avinash Ofc PC
2017-07-03 06:45:21
Have you made up any plan to create this software? Or even a rough idea how you are gonna do it?

Post a reply to SAURABH sharma

Think you can help SAURABH sharma ? Then post your thoughts that might help SAURABH sharma. You will earn a lot of reputation in the technical community.

If your program is in multiple files, then ZIP the entire folder and attach below

Images and Screenshots

These helps other better understand your suggestion.