Author |
Message |
Topic: Incrementing Frequency by 50 Hz after X pulses |
bassn1
Replies: 8
Views: 8557
|
Forum: General CCS C Discussion Posted: Wed Aug 03, 2011 4:13 pm Subject: oops |
oops,
see above code
Ok I just want to decrement PR2 , but it tells me it must evaluate to a constant?
I looked in the .h file and I dont even see PR2>? |
Topic: Incrementing Frequency by 50 Hz after X pulses |
bassn1
Replies: 8
Views: 8557
|
Forum: General CCS C Discussion Posted: Wed Aug 03, 2011 4:11 pm Subject: asm |
#define NUM_PULSES 10000
//======================================
void main()
{
int16 count;
// Setup CCP1 for PWM at 244 Hz and 50% duty cycle.
setup_ccp1(CCP_PWM);
... |
Topic: Incrementing Frequency by 50 Hz after X pulses |
bassn1
Replies: 8
Views: 8557
|
Forum: General CCS C Discussion Posted: Wed Aug 03, 2011 4:02 pm Subject: Incrementing Frequency by 50 Hz after X pulses |
The duty cycle wont be constant in that range?
If i set it to 50, should it not stay at 50?
Note: im only changing period, not prescale.
Post and pre are constant |
Topic: Incrementing Frequency by 50 Hz after X pulses |
bassn1
Replies: 8
Views: 8557
|
Forum: General CCS C Discussion Posted: Wed Aug 03, 2011 2:59 pm Subject: Thanks |
Thanks for the reply PCM, I am not trying to get something for nothing I was just too embarrassed of my code!!!! I found a another potential solution.
Since I'm only working from 250-1000Hz,
If ... |
Topic: GSM Modem AT+CMGS Error |
bassn1
Replies: 4
Views: 14801
|
Forum: General CCS C Discussion Posted: Wed Aug 03, 2011 10:32 am Subject: GSM Modem AT+CMGS Error |
What type of gsm module are you using? |
Topic: Incrementing Frequency by 50 Hz after X pulses |
bassn1
Replies: 8
Views: 8557
|
Forum: General CCS C Discussion Posted: Wed Aug 03, 2011 10:28 am Subject: Incrementing Frequency by 50 Hz after X pulses |
CCS version 4.029
Hello, I was trying to implement the following code such that
I get a rough frequency ramp from 250-1000Hz at 50% DC.
Precision doesn't matter I'm just needing this to get do a ... |
|