Author |
Message |
Topic: EEPROM and adc value recording |
Got-Got
Replies: 5
Views: 8140
|
Forum: General CCS C Discussion Posted: Wed Oct 03, 2012 6:30 am Subject: EEPROM and adc value recording |
Yes for the declaration of TOUCH, it was a mistake, it's corrected.
My program work perfectly. I applied what you told me.
One more time, thanks for your help Mike !
bye ! |
Topic: EEPROM and adc value recording |
Got-Got
Replies: 5
Views: 8140
|
Forum: General CCS C Discussion Posted: Wed Oct 03, 2012 3:50 am Subject: EEPROM and adc value recording |
You're right Mike, my thermistor is wired like this.
Your solution seems to be ok, but I can't escape from the while loop. once my program enter in the loop, the ADC value isn't readed anymore so no ... |
Topic: EEPROM and adc value recording |
Got-Got
Replies: 5
Views: 8140
|
Forum: General CCS C Discussion Posted: Tue Oct 02, 2012 7:10 pm Subject: EEPROM and adc value recording |
Hello,
I have a problem with my program; it is supposed to record some ADC value in the eeprom.
The schematic is very basic, a thermistor is separated from AN2 by a push button, when I press the ... |
Topic: Push Button and Interrupt problem |
Got-Got
Replies: 11
Views: 20369
|
Forum: General CCS C Discussion Posted: Tue May 29, 2012 2:23 pm Subject: Push Button and Interrupt problem |
Ok it's pretty easy. I wrote a very complicated ( and false) program for nothing.
Thanks a lot for the advices ! |
Topic: Push Button and Interrupt problem |
Got-Got
Replies: 11
Views: 20369
|
Forum: General CCS C Discussion Posted: Sun May 27, 2012 3:35 am Subject: Push Button and Interrupt problem |
Ok... i was very far away from the solution. Mike, this is exactly what i want. I though it was the simplest solution but no...
For the switch contact bounce, i'd put a 10 ms delay in the ISR to av ... |
Topic: Push Button and Interrupt problem |
Got-Got
Replies: 11
Views: 20369
|
Forum: General CCS C Discussion Posted: Fri May 25, 2012 5:07 pm Subject: Push Button and Interrupt problem |
Now, the ISR is out of the main() but i don't know how to define "select" as global.
"(OR do something else)." Yes may be but it is the simplest method i found to use a push bu ... |
Topic: Push Button and Interrupt problem |
Got-Got
Replies: 11
Views: 20369
|
Forum: General CCS C Discussion Posted: Fri May 25, 2012 3:35 pm Subject: Push Button and Interrupt problem |
Hello,
I have a problem with my program. It is supposed to go to several "modes" mode 1,2 and 3 when i push a button. It doesn't work, i can't build it successfully. Always the same erro ... |
Topic: ADC Problem |
Got-Got
Replies: 23
Views: 20335
|
Forum: General CCS C Discussion Posted: Wed Feb 29, 2012 1:30 pm Subject: ADC Problem |
How could I print out this value, Linuxbuilders? |
Topic: ADC Problem |
Got-Got
Replies: 23
Views: 20335
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 4:39 pm Subject: ADC Problem |
I didn't know for pickit 2 programmer in mplab. Thanks.
And you are right for the fuses. In the other programs, nomclr is here... |
Topic: ADC Problem |
Got-Got
Replies: 23
Views: 20335
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 4:05 pm Subject: ADC Problem |
I create the program with MPLAB and then i load it in the pic with another software named " PICkit 2 programmer"
In "PICkit 2 programmer", there is a MCLR checkbox.
you can s ... |
Topic: ADC Problem |
Got-Got
Replies: 23
Views: 20335
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 3:40 pm Subject: ADC Problem |
Just another question. Some other programs works even when MCLR is checked (even some that use ADC) . why ? |
Topic: ADC Problem |
Got-Got
Replies: 23
Views: 20335
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 3:33 pm Subject: ADC Problem |
It works for me too. i re tested it and guess what... in the programming software, the option "/MCLR" was checked. i unchecked it and it work perfectly...
"Hold Device in Reset : W ... |
Topic: ADC Problem |
Got-Got
Replies: 23
Views: 20335
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 2:39 pm Subject: ADC Problem |
my version of CCS compiler is : Version 4.068 |
Topic: ADC Problem |
Got-Got
Replies: 23
Views: 20335
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 1:33 pm Subject: ADC Problem |
No it still doesn't work at all. |
Topic: ADC Problem |
Got-Got
Replies: 23
Views: 20335
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 4:05 am Subject: ADC Problem |
I checked the syntax, there was a mistake i think but nothing important.
SETUP_ADC_PORTS(sAN0 | VSS_VDD);
setup_adc(ADC_CLOCK_INTERNAL); //configuring ADC
s ... |
|