Author |
Message |
Topic: Timers |
chrismdube
Replies: 6
Views: 7559
|
Forum: General CCS C Discussion Posted: Tue Jan 24, 2012 6:49 pm Subject: timers |
Wow! This is too much to take on first feet. Thanks again guys but isn't there a way I could use the hardware timers without getting too deep. |
Topic: Timers |
chrismdube
Replies: 6
Views: 7559
|
Forum: General CCS C Discussion Posted: Tue Jan 24, 2012 5:57 pm Subject: timers |
Thanks for your reply Mike. I can't say I understood though. If you don't mind can I have a sample code please. These ISRs make my heard spin. I have a book here but it doesn't help much.
I am tryi ... |
Topic: Timers |
chrismdube
Replies: 6
Views: 7559
|
Forum: General CCS C Discussion Posted: Tue Jan 24, 2012 2:28 pm Subject: Timers |
Hello once again. I wonder, am I able to use different timers for different tasks in a project or am I restricted to one? If yes, do I declare the other timer(s) at start of code or within the concern ... |
Topic: Full bridge code |
chrismdube
Replies: 10
Views: 13102
|
Forum: General CCS C Discussion Posted: Mon Jan 23, 2012 11:35 am Subject: code freeze |
Thank you Ttelmah, I will post my circuit once I get home. It is one output to control the battery charger and another to to turn on or off the output of the bridge, basically a UPS. I have mosgate dr ... |
Topic: Full bridge code |
chrismdube
Replies: 10
Views: 13102
|
Forum: General CCS C Discussion Posted: Mon Jan 23, 2012 10:32 am Subject: code freeze |
My apologies for the late response when I need help. The output pins are RB5 and RB6 of PIC16F690. If I disable PWM, they work ok. I thought maybe the PWM is using up power. I also read somewhere of ... |
Topic: Full bridge code |
chrismdube
Replies: 10
Views: 13102
|
Forum: General CCS C Discussion Posted: Mon Jan 23, 2012 4:48 am Subject: code freeze |
Hello everyone. I have two configured outputs on my pic. My problem is that they seem to stop function when I include the PMW code. Any ideas. |
Topic: Full bridge code |
chrismdube
Replies: 10
Views: 13102
|
Forum: General CCS C Discussion Posted: Sun Jan 22, 2012 3:58 pm Subject: Full bridge code |
Hi. I copied this off the forum. I'm using the PIC C compiler, version 4.128. The trace I got on my oscilloscope when I plugged the Pic in my board. I am trying to drive an H bridge for power supply. |
Topic: Full bridge code |
chrismdube
Replies: 10
Views: 13102
|
Forum: General CCS C Discussion Posted: Sun Jan 22, 2012 3:10 pm Subject: Full bridge code |
Can someone please tell me if I should expect full bridge operation just by running this code. Or am I supposed to add more code like forward and reverse?
I tried it and my scope shows a very low vol ... |
Topic: CCS code |
chrismdube
Replies: 12
Views: 12552
|
Forum: General CCS C Discussion Posted: Mon Jan 16, 2012 6:10 pm Subject: CCS code |
Thanks again. I'm looking now. |
Topic: CCS code |
chrismdube
Replies: 12
Views: 12552
|
Forum: General CCS C Discussion Posted: Mon Jan 16, 2012 5:58 pm Subject: CCS code |
Thanks PCM programmer. Actually I've been struggling with that to get 50Hz output for near two days now. |
Topic: CCS code |
chrismdube
Replies: 12
Views: 12552
|
Forum: General CCS C Discussion Posted: Sat Jan 14, 2012 12:23 pm Subject: CCS code |
Thanks to everyone for your contribution. Since re-installing my compiler I have had some progress. The only glitch now is that I only get the forward mode output only. I was of the mind that to gene ... |
Topic: CCS code |
chrismdube
Replies: 12
Views: 12552
|
Forum: General CCS C Discussion Posted: Fri Jan 13, 2012 9:00 pm Subject: CCS code |
Thanks loads for the advice. I apologize for the indentation but that happened on uploading. The code is as is and I have been compiling it with no errors and no warning but then it doesn't work, at l ... |
Topic: CCS code |
chrismdube
Replies: 12
Views: 12552
|
Forum: General CCS C Discussion Posted: Fri Jan 13, 2012 3:32 pm Subject: CCS code |
Thanks again. I generated the PWM code using the Wizard. PMW drives an inverter during a power failure only and gets powered by the batteries (UPS). I have a sensor that detects power failure, another ... |
Topic: CCS code |
chrismdube
Replies: 12
Views: 12552
|
Forum: General CCS C Discussion Posted: Fri Jan 13, 2012 1:17 pm Subject: CCS Code |
Probably. However, I have since tried a different chip and the same happened. My inputs are all below Vcc @4.5V. My Vcc comes off a 5V fixed regulator. I will attach the schematic later when I get ho ... |
Topic: CCS code |
chrismdube
Replies: 12
Views: 12552
|
Forum: General CCS C Discussion Posted: Thu Jan 12, 2012 6:36 pm Subject: CCS code |
Hie everyone. Please help check my program. It initially seemed to work, with the microchip switching on and off outputs B_5 accordingly. I was in the process of checking my PWM code when on re-instal ... |
|