Author |
Message |
Topic: variable timer2 / PWM frequency? |
mike1234
Replies: 4
Views: 4437
|
Forum: General CCS C Discussion Posted: Thu Jan 24, 2008 3:48 pm Subject: variable timer2 / PWM frequency? |
I also now realize that the variable I named "prescale" is really modulating the PR2 parameter. I'm renaming it "PR2" so its not misleading. Sorry. |
Topic: variable timer2 / PWM frequency? |
mike1234
Replies: 4
Views: 4437
|
Forum: General CCS C Discussion Posted: Thu Jan 24, 2008 2:21 pm Subject: variable timer2 / PWM frequency? |
To clarify, "prescale" is a variable that I want to change each time the loop executes, changing the frequency of timer2.
At this point, I am guessing it has to be a constant since it's ... |
Topic: variable timer2 / PWM frequency? |
mike1234
Replies: 4
Views: 4437
|
Forum: General CCS C Discussion Posted: Thu Jan 24, 2008 2:07 pm Subject: variable timer2 / PWM frequency? |
So are you saying my current setup should work but with irregular pulses each time I switch frequencies? Or do I need to change anything? |
Topic: variable timer2 / PWM frequency? |
mike1234
Replies: 4
Views: 4437
|
Forum: General CCS C Discussion Posted: Thu Jan 24, 2008 11:11 am Subject: variable timer2 / PWM frequency? |
I have a PIC 18F4520. I am looking to output a PWM signal whose frequency varies (which will be read by a data acquisition card and used in DasyLab).
Is this possible? Can you set the timer2 freq ... |
Topic: 2 PWM frequencies at the same time |
mike1234
Replies: 7
Views: 11610
|
Forum: General CCS C Discussion Posted: Fri Dec 07, 2007 12:19 pm Subject: Uh oh |
So am I out of luck? I need to vibrate two different things at their respective resonant frequencies, so I can't really get by with one freq. |
Topic: 2 PWM frequencies at the same time |
mike1234
Replies: 7
Views: 11610
|
Forum: General CCS C Discussion Posted: Thu Dec 06, 2007 5:10 pm Subject: 2 PWM frequencies at the same time |
Hi everyone,
I need to output a different 2 different PWM frequencies at the same time. I am using a PIC 18F4520, which does have 2 CCP channels. I just don't know how to configure it exactly. I ... |
|