CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PWM questions

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Frozen01



Joined: 23 Apr 2009
Posts: 32

View user's profile Send private message

PWM questions
PostPosted: Mon Jul 06, 2009 12:12 pm     Reply with quote

Hello all.

I am looking for some guidance here for now and then maybe more detailed infomation later.

I am looking to generate an AM modulated signal using PWM, if it is even possible. My maximum carrier frequency is in the 2MHz range with the minimum in the 200KHz range. The modulating signal will be around 1000Hz. Is this even possible with a PIC and CCS C??

Thanks!
ttelmah
Guest







PostPosted: Mon Jul 06, 2009 2:53 pm     Reply with quote

Probably, no.
It'd depend on unspecified factors:

1) How many modulation 'levels' you need?.
2) What step size is acceptable in the frequency?.

If (for instance), you wanted a minimum of 32 different widths at 2MHz, then your master clock, would need to be at least 64MHz. Beyond most PICs. Worse though, if you had the same 64MHz source, and wanted to generate a frequency of 1.8MHz, the 'nearest'you could do, would be 64/36 = 1.7777MHz.

Realistically, use a chip designed for the job, and control this with a PIC. There are programmable tone generators easily available, and some offer analog modulation as well.

Best Wishes
Frozen01



Joined: 23 Apr 2009
Posts: 32

View user's profile Send private message

PostPosted: Mon Jul 06, 2009 8:12 pm     Reply with quote

Thanks for the reply... Can you point me to a source where these calculations came from.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group