Author |
Message |
Topic: Help with PIC16F818 |
Namams
Replies: 32
Views: 59344
|
Forum: General CCS C Discussion Posted: Mon Feb 18, 2019 7:12 am Subject: Help with PIC16F818 |
Would that work if the pin is set to an output and not an input? |
Topic: Help with PIC16F818 |
Namams
Replies: 32
Views: 59344
|
Forum: General CCS C Discussion Posted: Mon Feb 18, 2019 7:08 am Subject: Help with PIC16F818 |
Is there a way I can check the state of an output pin? for example say I wanted to execute an if function and the condition was that the output of pin b1 was set to low how would I code that? |
Topic: Help with PIC16F818 |
Namams
Replies: 32
Views: 59344
|
Forum: General CCS C Discussion Posted: Wed Feb 06, 2019 6:32 am Subject: Help with PIC16F818 |
Hi, I made a few adjustments to the code and managed to get it to work using my PIC I've also added more switches and LEDs and the code seems to be working fine.
I now need to add another LED that ... |
Topic: Help with PIC16F818 |
Namams
Replies: 32
Views: 59344
|
Forum: General CCS C Discussion Posted: Tue Feb 05, 2019 4:45 pm Subject: Help with PIC16F818 |
I understand that timer 0 is used to time the 2 second. Can someone just clarify why exactly timer 1 is needed in this code and also the signifcance of the "go" integer. Thank you. |
Topic: Help with PIC16F818 |
Namams
Replies: 32
Views: 59344
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2019 8:51 am Subject: Help with PIC16F818 |
I used a pic 16f819 and tried a simple code to check if the pic and LED were working which they were. I also checked the voltage on the pin and the LED orientation so I'm not sure what the problem cou ... |
Topic: Help with PIC16F818 |
Namams
Replies: 32
Views: 59344
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2019 4:48 am Subject: Help with PIC16F818 |
Yep the switches are connected to pull up resistors |
Topic: Help with PIC16F818 |
Namams
Replies: 32
Views: 59344
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2019 4:36 am Subject: Help with PIC16F818 |
Hi I've just tried the code but it doesn't see to be doing anything, the LED stays off regardless of if the switches are pressed or not.
Also can you please explain the setup_timer lines of the co ... |
Topic: Help with PIC16F818 |
Namams
Replies: 32
Views: 59344
|
Forum: General CCS C Discussion Posted: Sat Feb 02, 2019 8:30 am Subject: Help with PIC16F818 |
Thank you that's really helpful I think I understand most of it I just wanted to ask if the code would keep the LED on after both buttons are pressed( or if it switches off after a while) . Also if I ... |
Topic: Help with PIC16F818 |
Namams
Replies: 32
Views: 59344
|
Forum: General CCS C Discussion Posted: Fri Feb 01, 2019 3:56 pm Subject: Help with PIC16F818 |
I'm a newbie to this site, so please excuse me if I'm posting in the wrong forum section, or if my question is too elementary. I've just recently started using MPLab with a CCS complier to program a P ... |
|