Author |
Message |
Topic: Help in determining Timer1 preload |
danen
Replies: 3
Views: 6259
|
Forum: General CCS C Discussion Posted: Sat Feb 18, 2012 10:18 pm Subject: Help in determining Timer1 preload |
Do you realize you asked for specific Timer help but you didn't tell us
your desired interrupt frequency, or your PIC's oscillator frequency ?
That's why you didn't get any replies so far.
Sorr ... |
Topic: Help in determining Timer1 preload |
danen
Replies: 3
Views: 6259
|
Forum: General CCS C Discussion Posted: Sun Feb 12, 2012 10:48 pm Subject: Help in determining Timer1 preload |
I know that questions about timers have been asked on here time and time again but I have a unique situation that I don't know how to tackle with the preload.
I have INT_RTCC interrupt set up and ... |
Topic: How to slow down interrupt rate |
danen
Replies: 9
Views: 9962
|
Forum: General CCS C Discussion Posted: Sun Jan 22, 2012 11:23 am Subject: Finally got it |
I'd just like to say that I finally got it working, took a lot of time but I am happy with the end results. I'd just like to thank everyone for helping me and pointing me in the right direction. |
Topic: How to slow down interrupt rate |
danen
Replies: 9
Views: 9962
|
Forum: General CCS C Discussion Posted: Sun Jan 08, 2012 7:54 am Subject: How to slow down interrupt rate |
Pulse is a static variable and as such it will always be initialized to zero at startup, hence it is no bug. A preferred
Thank you for your input and your are right I do waste a lot of time trying ... |
Topic: How to slow down interrupt rate |
danen
Replies: 9
Views: 9962
|
Forum: General CCS C Discussion Posted: Sat Jan 07, 2012 9:18 pm Subject: How to slow down interrupt rate |
you never initialize pulse !!
it will have some random value - often 0xff - if your don't explicitly set a value for it
and the way you handle it in the ISR makes no sense either
as you must know ... |
Topic: How to slow down interrupt rate |
danen
Replies: 9
Views: 9962
|
Forum: General CCS C Discussion Posted: Sun Jan 01, 2012 5:41 pm Subject: How to slow down interrupt rate |
This is my new code, however I still have the same problem with the flicker on the subsequent leds after the first one.
I'm guessing I have to find a preload value to offset the interrupt now to ... |
Topic: How to slow down interrupt rate |
danen
Replies: 9
Views: 9962
|
Forum: General CCS C Discussion Posted: Sat Dec 31, 2011 9:29 am Subject: Your a god Ttelmah |
Thank you for that information, I would of never gotten to that point myself
Another quick question, what method do you use to figure out the time it takes for the instruction cycles, I'm guessing ... |
Topic: How to slow down interrupt rate |
danen
Replies: 9
Views: 9962
|
Forum: General CCS C Discussion Posted: Sat Dec 31, 2011 12:50 am Subject: How to slow down interrupt rate |
I'm trying to pwm on and then off in succession some leds and for days I've been trying to get rid of the flicker at the beginning of the pwm. In researching the forums I understand that my interrupt ... |
Topic: Stuck in a loop |
danen
Replies: 2
Views: 4001
|
Forum: General CCS C Discussion Posted: Fri Dec 30, 2011 10:49 am Subject: Stuck in a loop |
Thank you for your help I've been racking my brain for three days now. |
Topic: Stuck in a loop |
danen
Replies: 2
Views: 4001
|
Forum: General CCS C Discussion Posted: Fri Dec 30, 2011 7:47 am Subject: Stuck in a loop |
Hi
I'm trying to pwm on some leds and then pwm them off. However, the problem I'm having is that the loop runs once and then won't run again.
I toggled an led to see where I was in the loop and ... |
Topic: Output_High doesn't work properly |
danen
Replies: 13
Views: 13436
|
Forum: General CCS C Discussion Posted: Wed Jan 27, 2010 6:18 pm Subject: Got it working |
I finally gave up and ripped out the transistors and replaced them, and switched to Port A.... it now works like a charm and is up and running. Thanks for all the help and input |
Topic: Output_High doesn't work properly |
danen
Replies: 13
Views: 13436
|
Forum: General CCS C Discussion Posted: Wed Jan 20, 2010 5:54 pm Subject: Output_High doesn't work properly |
If those 1000 Ohm resistors are really there and are really 1000 Ohms, then the transistors, fans, or LEDs should make no difference to the PIC.
Something really weird is happening! It may seem ... |
Topic: Output_High doesn't work properly |
danen
Replies: 13
Views: 13436
|
Forum: General CCS C Discussion Posted: Wed Jan 20, 2010 7:08 am Subject: dyeatman I think you're right |
Thanks for all your help everybody. The transistor is rated at 200 ma, I've got a fan hooked up to it that draws 240ma. That may be the culprit. So I took out the board and am going to use a relay ... |
Topic: Output_High doesn't work properly |
danen
Replies: 13
Views: 13436
|
Forum: General CCS C Discussion Posted: Tue Jan 19, 2010 10:15 pm Subject: Output_High doesn't work properly |
+5V
|
|
|>| Led with 220 ohm resistor
... |
Topic: Output_High doesn't work properly |
danen
Replies: 13
Views: 13436
|
Forum: General CCS C Discussion Posted: Tue Jan 19, 2010 6:16 pm Subject: Output_High doesn't work properly |
What trap protection have you got on the transistors?...
Remember that a fan, when switched off, _will_ develop voltage, both from the inductive spike as the driven coil goes off, and from it acti ... |
|