Author |
Message |
Topic: Need help selecting PIC with two hardware PWM channels. |
zombiePIC
Replies: 2
Views: 5659
|
Forum: General CCS C Discussion Posted: Sat Jul 05, 2014 10:38 am Subject: Need help selecting PIC with two hardware PWM channels. |
Thank you PCM for the link. I also found two PICs and I will get them in for testing. |
Topic: Need help selecting PIC with two hardware PWM channels. |
zombiePIC
Replies: 2
Views: 5659
|
Forum: General CCS C Discussion Posted: Fri Jul 04, 2014 5:06 pm Subject: Need help selecting PIC with two hardware PWM channels. |
Hi Guys,
I am currently using a pic16f87 which has only one PWM, however I need 2 independent PWMs that can be set at different levels to change the brightness of LEDs.
The good thing about the ... |
Topic: ICD-U64 debug won't work.... driver problem??? |
zombiePIC
Replies: 4
Views: 7110
|
Forum: General CCS C Discussion Posted: Sat Feb 22, 2014 12:15 pm Subject: ICD-U64 debug won't work.... driver problem??? |
thanks for the help...
looks like a tiny piece of copper got stuck in between one of the components and fried the legs off of it...
thanks |
Topic: ICD-U64 debug won't work.... driver problem??? |
zombiePIC
Replies: 4
Views: 7110
|
Forum: General CCS C Discussion Posted: Fri Feb 21, 2014 4:13 pm Subject: ICD-U64 debug won't work.... driver problem??? |
Hi guys.
I am wondering if anybody had the same problem as me....
[URL=http://imgur.com/TZDBrUt][IMG]http://i.imgur.com/TZDBrUt.jpg?1[/IMG]
I think i may have messed up the driver because i pre ... |
Topic: Switch statement using push button increment to switch cases |
zombiePIC
Replies: 26
Views: 43392
|
Forum: General CCS C Discussion Posted: Wed Feb 19, 2014 2:41 pm Subject: Switch statement using push button increment to switch cases |
Thanks for explaing Mike!! |
Topic: Switch statement using push button increment to switch cases |
zombiePIC
Replies: 26
Views: 43392
|
Forum: General CCS C Discussion Posted: Tue Feb 18, 2014 4:57 pm Subject: Switch statement using push button increment to switch cases |
Hi guys guys thanks for all the help....
I got out the soldering iron to add an option to debug on pin B3....
Every thing is working well now debounce problem sorted thanks to the code supplied her ... |
Topic: Switch statement using push button increment to switch cases |
zombiePIC
Replies: 26
Views: 43392
|
Forum: General CCS C Discussion Posted: Mon Feb 17, 2014 3:59 pm Subject: Switch statement using push button increment to switch cases |
Hi ezflyr,
Here is all the knowledge I have for you....(correct me where i am wrong)
I want to control a 1Khz PWM signal for LED light dimming..
To achieve the 1Khz i am using
setup_oscillator ... |
Topic: Switch statement using push button increment to switch cases |
zombiePIC
Replies: 26
Views: 43392
|
Forum: General CCS C Discussion Posted: Mon Feb 17, 2014 2:45 pm Subject: Switch statement using push button increment to switch cases |
Ttelmah
New code......no joy
#include <16F87.h>
#fuses INTRC,NOWDT
#use delay(clock=1000000)
int count=0;
// These are the "Bvar" variables.
int8 A0 = 0; // For th ... |
Topic: Switch statement using push button increment to switch cases |
zombiePIC
Replies: 26
Views: 43392
|
Forum: General CCS C Discussion Posted: Mon Feb 17, 2014 1:32 pm Subject: Switch statement using push button increment to switch cases |
Which is why a search here will give numerous examples of debounce code.
A good example is the one in this thread, and the link to 'button.c':
<http://www.ccsinfo.com/forum/viewtopic.php?t=47 ... |
Topic: Switch statement using push button increment to switch cases |
zombiePIC
Replies: 26
Views: 43392
|
Forum: General CCS C Discussion Posted: Mon Feb 17, 2014 12:19 pm Subject: Switch statement using push button increment to switch cases |
All waiting for button press to go true then false does is go through there many times when the switch bounces (which most of them do). Switch bounces have driven many people screaming into the night ... |
Topic: Switch statement using push button increment to switch cases |
zombiePIC
Replies: 26
Views: 43392
|
Forum: General CCS C Discussion Posted: Mon Feb 17, 2014 11:53 am Subject: Switch statement using push button increment to switch cases |
The switch case is not now your real problem.
You've fouled up another section as well.
So, you never actually get to the break as a problem!
How do you imagine that this latest posted version ev ... |
Topic: Switch statement using push button increment to switch cases |
zombiePIC
Replies: 26
Views: 43392
|
Forum: General CCS C Discussion Posted: Mon Feb 17, 2014 11:50 am Subject: Switch statement using push button increment to switch cases |
No luck modified the code to change break;
#include <16F87.h>
#fuses INTRC,NOWDT
#use delay(clock=1000000)
#define Button_Press PIN_A0
#define LOW 0
#define HIGH 1
int count=0;
... |
Topic: Switch statement using push button increment to switch cases |
zombiePIC
Replies: 26
Views: 43392
|
Forum: General CCS C Discussion Posted: Mon Feb 17, 2014 11:30 am Subject: Switch statement using push button increment to switch cases |
I am having no success here, i played around with the break; no joy.....I dont seem to understand what could be wrong now.. |
Topic: Switch statement using push button increment to switch cases |
zombiePIC
Replies: 26
Views: 43392
|
Forum: General CCS C Discussion Posted: Sun Feb 16, 2014 5:49 pm Subject: Switch statement using push button increment to switch cases |
Hi
I modified my code to include the comment made in this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=51914&highlight=debounce+increment
#include <16F87.h>
#fuses INTRC,NOWDT ... |
Topic: Switch statement using push button increment to switch cases |
zombiePIC
Replies: 26
Views: 43392
|
Forum: General CCS C Discussion Posted: Sun Feb 16, 2014 5:26 pm Subject: Switch statement using push button increment to switch cases |
keyword is 'debounce'.
search the forum using it, read a few posts.
Thanks
I will give that a try... but i think i will be back here.. |
|