Frequency generation circuit

Status
Not open for further replies.

devank.purohit

Newbie level 6
Joined
Dec 5, 2012
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,373
I am using PIC18F2550. I intend to generate three sets of frequencies. One of 100 Hz, Second of (9/11/15/18 KHz) and third of 21 KHz. Is it possible with PIC18F2550? Also, 100 Hz frequency is used for modulation, meaning for the first 5 ms, I should get a (9/11/15/18) KHz frequency and for the next 5 ms, I should get a 21 KHz frequency. Please help. Thanks!
 

i think before doing that in PIC, try to implement in Matlab first.
 


Are these square-wave or sinusoids ?
 

@ Apolama: MATLAB?

@ Keith: Is it possible to do that? As far as I understood, one can only change the duty cycle, and not the PWM period. Please clarify.

@ Kripacharya: Square waves.
 

...
@ Kripacharya: Square waves.

in that case it should be very easy to do using the various timers.
Set the 100Hz timer for 5mS.
On completion (interrupt?) toggle the 100Hz output line - as a ref if you need it.
Also on interrupt, set a 2nd timer for 23.6uS timeout (for the 21Khz). Toggle a 2nd output on this interrupt.
etc etc
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…