Author |
Message |
Topic: AD issue for 16F877A |
anson
Replies: 11
Views: 9840
|
Forum: General CCS C Discussion Posted: Wed Apr 29, 2009 7:02 pm Subject: AD issue for 16F877A |
to above:
1. ok, now let me intro my issue again from starting. Basically what I want to do is using PIC to do the ADC for my current detector. Since now I am testing the ADC function, so I just conn ... |
Topic: AD issue for 16F877A |
anson
Replies: 11
Views: 9840
|
Forum: General CCS C Discussion Posted: Wed Apr 29, 2009 6:21 am Subject: AD issue for 16F877A |
yes, i just display the int number for simple. but what i dont understand is why the input voltage must be more than 1V? when RA0=0.9V,LCD displays nothing, but when RA0=1.1V,LCD displays 'voltage=1' ... |
Topic: AD issue for 16F877A |
anson
Replies: 11
Views: 9840
|
Forum: General CCS C Discussion Posted: Wed Apr 29, 2009 5:58 am Subject: AD issue for 16F877A |
here is my code
void adinitial_voltage(void)
{
// unsigned int AD_data[5]={0,0,0,0,0};
unsigned int i=0,j=0,temp=0;
for(j=0;j<=4;++j)
{
A ... |
Topic: AD issue for 16F877A |
anson
Replies: 11
Views: 9840
|
Forum: General CCS C Discussion Posted: Wed Apr 29, 2009 5:55 am Subject: AD issue for 16F877A |
yap. i use Vdd which is 5V as my reference voltage and since for PIC 16F877A the ADC results is a 10 bits number so for my case is 5/0x3FF. and i connect RA0 directly to the input voltage. i think i s ... |
Topic: AD issue for 16F877A |
anson
Replies: 11
Views: 9840
|
Forum: General CCS C Discussion Posted: Wed Apr 29, 2009 5:43 am Subject: AD issue for 16F877A |
sorry man. what i mean is when the input voltage of R0 is less than 1V the PIC totally not working, but while i increase the voltage more than 1V , then it can work. i dont know how to solve it. |
Topic: AD issue for 16F877A |
anson
Replies: 11
Views: 9840
|
Forum: General CCS C Discussion Posted: Wed Apr 29, 2009 5:28 am Subject: AD issue for 16F877A |
hi guys, does anyone have any idea why my PIC only can work when the R0 input voltage is bigger than 1 V? |
|