Author |
Message |
Topic: Reading DIP switches and Outputting ADC Result |
jonnylazer
Replies: 3
Views: 4385
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2008 5:42 am Subject: Reading DIP switches and Outputting ADC Result |
HI
I have simplified things because I think the problem is a basic one..
here is some code I have written... what it attempts to do is check what value is on PIN_A0, if its a 1 then output 0xF ... |
Topic: Reading DIP switches and Outputting ADC Result |
jonnylazer
Replies: 3
Views: 4385
|
Forum: General CCS C Discussion Posted: Thu Feb 21, 2008 3:47 am Subject: Reading DIP switches and Outputting ADC Result |
Hi people,
just wondered if any one could help.....my program reads 4 ADC channels on my PIC (16f916) and stores the results in varables X1,X2,Y1 and Y2..
What I want to do is re ... |
Topic: PIC ADC |
jonnylazer
Replies: 11
Views: 9007
|
Forum: General CCS C Discussion Posted: Fri Feb 15, 2008 3:20 am Subject: PIC ADC |
One final question PCM....why add the 'DELAY_ms(500)' to the routine....is it RS232 ?? |
Topic: PIC ADC |
jonnylazer
Replies: 11
Views: 9007
|
Forum: General CCS C Discussion Posted: Fri Feb 15, 2008 3:16 am Subject: PIC ADC |
Thanks PCM....should have posted my PM here. Anyway, thanks again. |
Topic: PIC ADC |
jonnylazer
Replies: 11
Views: 9007
|
Forum: General CCS C Discussion Posted: Sun Feb 10, 2008 8:23 pm Subject: PIC ADC |
Thanks for the input, unfortunately I dont have trimpot at hand. I will have to 'borrow' one from Uni in the morning. So, judging by the fact that it worked for you I assume any problem I have is a ha ... |
Topic: PIC ADC |
jonnylazer
Replies: 11
Views: 9007
|
Forum: General CCS C Discussion Posted: Sun Feb 10, 2008 5:10 pm Subject: PIC ADC |
here is the part of my program that is relevant to my prob...
#INCLUDE <16f916.h>
#DEVICE ADC=8
#DEFINE DEVICEOSC 4000000
#fuses HS,NOWDT,PUT,NOPROTECT,BROWNOUT,
#use delay(clock ... |
Topic: PIC ADC |
jonnylazer
Replies: 11
Views: 9007
|
Forum: General CCS C Discussion Posted: Sun Feb 10, 2008 3:33 pm Subject: PIC ADC |
Hi all,
I hope someone is able to help me. Im using the ADC on a PIC16f916 as part of my final year project. At the moment im just trying to sample one channel and send the 8 bit result to 8 ... |
|