Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help me with coding for PIC12F675 in PIC Siren

Status
Not open for further replies.
Re: PIC Siren Generator

OK, two more lines missed. I should have posted my code instead of trying to patch yours.

Code:
      movlw   TMR0_RLD   ;init TMR0 
      movwf   TMR0      ;
      movlw   _200ms      ;set timer for 200ms 
      movwf   Timer      ;

Insert all 4 lines after the option instruction
 

PIC Siren Generator

Hi VVV,

Its now running very well.
Thank you very much.

How do I calculate the timing?
 

Re: PIC Siren Generator

Timing for what?
 

PIC Siren Generator

Timing for how long the tone going to play.
I know its control by the constant, I've try to calculate but very confused.
 

Re: PIC Siren Generator

it is best to use the external oscillator of 1mhz freq and generate a pwm wave to attain the output this would be the easiest way
 

Re: PIC Siren Generator

nikhil_damle said:
it is best to use the external oscillator of 1mhz freq and generate a pwm wave to attain the output this would be the easiest way

Hi nikhil,

Thanks for yr input.
does 10f200 have PWM?

Why use external if we have internal?
 

PIC Siren Generator

Hi VVV,
I have tried your 12f675 PIC SIREN Generator codes.They works fine.But the siren sound is not loud enough.Do you have any suggestions to enhance the sound volume.
Thanks!
 

Re: PIC Siren Generator

I can only think of using an aplifier to increase the volume.
 

Re: PIC Siren Generator

I can only think of using an aplifier to increase the volume.

I make the siren police with 12F675 internal osc at 4Mhz and NO MCLR.
The start frequency is 500Hz, it increse at 1200Hz in 0.17 second, then decrese from 1200Hz to 500Hz in the same time.
The interval of change is 70Hz every 17mS.

Its sound very fine, like the police siren :-D, i made it with CCS.

If you want i post the code.

Please excuse me for my bad english. :-(

Thanks.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top