Author |
Message |
Topic: 12f683 write to eeprom help |
Rez
Replies: 6
Views: 15065
|
Forum: General CCS C Discussion Posted: Fri Mar 01, 2019 8:47 pm Subject: 12f683 write to eeprom help |
This program shows you how to save the status in eeprom and read it
when the PIC is powered-up:
http://www.ccsinfo.com/forum/viewtopic.php?t=22109&start=17
One thing I would change in that pr ... |
Topic: 12f683 write to eeprom help |
Rez
Replies: 6
Views: 15065
|
Forum: General CCS C Discussion Posted: Fri Mar 01, 2019 5:48 pm Subject: 12f683 write to eeprom help |
I have tried a few examples from other posts but I can't figure it out. |
Topic: 12f683 write to eeprom help |
Rez
Replies: 6
Views: 15065
|
Forum: General CCS C Discussion Posted: Thu Feb 28, 2019 10:37 am Subject: 12f683 write to eeprom help |
I would like to be able to store in memory if an output is high or low. When I push a button I want it to store in memory if pin A5 output was high or low and when I shut off the device and turn it ba ... |
Topic: Pin 4 MCLR on Pics |
Rez
Replies: 7
Views: 16028
|
Forum: General CCS C Discussion Posted: Sat Feb 23, 2019 12:23 pm Subject: Pin 4 MCLR on Pics |
The pics I use have the ability to use the nomclr fuse. If it is setup that way can I eliminate the resistor or should I still use it. |
Topic: Pin 4 MCLR on Pics |
Rez
Replies: 7
Views: 16028
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2019 6:13 pm Subject: Pin 4 MCLR on Pics |
Does pin 4 need a 10k resistor going to the Vdd positive if it is not being used? |
Topic: Help with 12f683 GP2 and GP1 as output [Solved] |
Rez
Replies: 13
Views: 22320
|
Forum: General CCS C Discussion Posted: Wed Feb 20, 2019 1:13 pm Subject: Help with 12f683 GP2 and GP1 as output [Solved] |
Everything is working fine now, I didb't have to add anything to the code, It was just the flashing LED. WOW! |
Topic: Help with 12f683 GP2 and GP1 as output [Solved] |
Rez
Replies: 13
Views: 22320
|
Forum: General CCS C Discussion Posted: Wed Feb 20, 2019 1:06 pm Subject: Help with 12f683 GP2 and GP1 as output [Solved] |
LMAO, I am so dumb. I just know realized I was using a flashing LED I have know idea how it got into my regular batch of LED's. |
Topic: Help with 12f683 GP2 and GP1 as output [Solved] |
Rez
Replies: 13
Views: 22320
|
Forum: General CCS C Discussion Posted: Wed Feb 20, 2019 12:48 pm Subject: Help with 12f683 GP2 and GP1 as output [Solved] |
Yes there is a resistor. I tried using port A1 (GP1) and it does the same thing.
I am using a PICKit 2 programmer. |
Topic: Help with 12f683 GP2 and GP1 as output [Solved] |
Rez
Replies: 13
Views: 22320
|
Forum: General CCS C Discussion Posted: Tue Feb 19, 2019 10:14 pm Subject: Help with 12f683 GP2 and GP1 as output [Solved] |
Add this line to your setup code in main(). That should fix pin GP2.
setup_timer_0(T0_INTERNAL);
Timer0 in this PIC defaults to using an external clock on pin GP2.
By adding the above li ... |
Topic: Help with 12f683 GP2 and GP1 as output [Solved] |
Rez
Replies: 13
Views: 22320
|
Forum: General CCS C Discussion Posted: Tue Feb 19, 2019 9:31 pm Subject: Help with 12f683 GP2 and GP1 as output [Solved] |
#include <12F683.h>
#use delay(clock = 4000000)
#fuses NOMCLR,NOPROTECT,NOWDT,INTRC_IO //,NOIESO,NOCPD,NOFCMEN,NOBROWNOUT
void main()
{
setup_adc(ADC_CLOCK_DIV_8 ... |
Topic: Help with 12f683 GP2 and GP1 as output [Solved] |
Rez
Replies: 13
Views: 22320
|
Forum: General CCS C Discussion Posted: Tue Feb 19, 2019 9:28 pm Subject: Help with 12f683 GP2 and GP1 as output [Solved] |
You should post your complete program, but I'm guessing you have the WDT fuse enabled.
Jay
WDT is disabled |
Topic: Help with 12f683 GP2 and GP1 as output [Solved] |
Rez
Replies: 13
Views: 22320
|
Forum: General CCS C Discussion Posted: Tue Feb 19, 2019 9:23 pm Subject: Help with 12f683 GP2 and GP1 as output [Solved] |
CCS calls them PIN_A2, PIN_A1.....
I'm not too sure why Microchip call them 'GP' when from day one I/O pins have been called by the port name like 'A' or 'B'.
just a qurk ??
Jay
Sorry, I kno ... |
Topic: Help with 12f683 GP2 and GP1 as output [Solved] |
Rez
Replies: 13
Views: 22320
|
Forum: General CCS C Discussion Posted: Tue Feb 19, 2019 8:01 pm Subject: Help with 12f683 GP2 and GP1 as output [Solved] |
I cant figure out how to make GP2 and GP1 as an output. |
Topic: Help With 12f683 Two Analog Inputs |
Rez
Replies: 17
Views: 34691
|
Forum: General CCS C Discussion Posted: Tue Feb 19, 2019 7:02 pm Subject: Help With 12f683 Two Analog Inputs |
Everything is working now and I changed the ADC clock as well, Thanks everyone. |
Topic: Help With 12f683 Two Analog Inputs |
Rez
Replies: 17
Views: 34691
|
Forum: General CCS C Discussion Posted: Tue Feb 19, 2019 5:18 pm Subject: Help With 12f683 Two Analog Inputs |
this is still wrong
setup_adc(ADC_CLOCK_INTERNAL); //internal clock
...
HOW do you see the 'result'?
you need to post your complete program...
I got this code to work.
Please e ... |
|