Author |
Message |
Topic: Problem with ADC |
haronraziq
Replies: 18
Views: 21242
|
Forum: General CCS C Discussion Posted: Mon Oct 17, 2011 5:20 pm Subject: Problem with ADC |
I actually caught that mistake shortly after my last post and changing it did make it accurate at higher voltages but still has the same result at the low voltages.
asmboy, I'm not exactly sure tha ... |
Topic: Problem with ADC |
haronraziq
Replies: 18
Views: 21242
|
Forum: General CCS C Discussion Posted: Mon Oct 17, 2011 3:26 pm Subject: Problem with ADC |
That's what I thought. Here take a look at my code, I edited my code accordingly (the define is in another file but i did do it), but I still get the same output. It shows zero for an input of .01 vol ... |
Topic: Problem with ADC |
haronraziq
Replies: 18
Views: 21242
|
Forum: General CCS C Discussion Posted: Mon Oct 17, 2011 3:03 pm Subject: Problem with ADC |
I cannot find any code in the header file that corresponds to changing the adc resolution. How can I change to the 10 bit mode? |
Topic: Problem with ADC |
haronraziq
Replies: 18
Views: 21242
|
Forum: General CCS C Discussion Posted: Mon Oct 17, 2011 10:50 am Subject: Problem with ADC |
I am just testing by using a dc voltage source input. |
Topic: Problem with ADC |
haronraziq
Replies: 18
Views: 21242
|
Forum: General CCS C Discussion Posted: Sun Oct 16, 2011 11:57 pm Subject: Problem with ADC |
Sorry for the confusion but I got mixed up. I understand the +5 volt limitation, I meant that it cannot read voltages greater than zero but less than .01. Is the resolution of the ADC too small for th ... |
Topic: Problem with ADC |
haronraziq
Replies: 18
Views: 21242
|
Forum: General CCS C Discussion Posted: Sun Oct 16, 2011 11:25 pm Subject: Problem with ADC |
I tried changing it to the corrected value that but still no change. The output still will not show anything greater than 5 V or anything less than .1
Here is the new code.
void displayVoltage ... |
Topic: Problem with ADC |
haronraziq
Replies: 18
Views: 21242
|
Forum: General CCS C Discussion Posted: Sun Oct 16, 2011 10:25 pm Subject: Problem with ADC |
Also, for some reason it does not display any voltage greater than 5 volts or less than .1 volts. Please if anyone knows what the problem is, I would really appreciate the help. |
Topic: Problem with ADC |
haronraziq
Replies: 18
Views: 21242
|
Forum: General CCS C Discussion Posted: Sun Oct 16, 2011 9:40 pm Subject: Problem with ADC |
I am using the PIC16f877 and a 20 MHz oscillator. |
Topic: Problem with ADC |
haronraziq
Replies: 18
Views: 21242
|
Forum: General CCS C Discussion Posted: Sun Oct 16, 2011 9:35 pm Subject: Problem with ADC |
I have been trying to get the ADC to work correctly based on a CCS C example, but for some reason the output of the ADC is incorrect. For example, an input of 5 volts displays only 3.76 volts.
Belo ... |
Topic: PIC Programming Question |
haronraziq
Replies: 2
Views: 4201
|
Forum: General CCS C Discussion Posted: Fri Aug 26, 2011 12:04 am Subject: PIC Programming Question |
Using pickit2, pickit 3, or canakit programmer. Cana kit is my preferred programmer. |
Topic: GLCD Working Except Problem On Proteus |
haronraziq
Replies: 4
Views: 6615
|
Forum: General CCS C Discussion Posted: Thu Aug 25, 2011 5:40 pm Subject: GLCD Working Except Problem On Proteus |
Yeah I added the pullup on A4 but I am actually trying to move those ports to something else because I want to use the analog ports for another part of my circuit. |
Topic: GLCD Working Except Problem On Proteus |
haronraziq
Replies: 4
Views: 6615
|
Forum: General CCS C Discussion Posted: Thu Aug 25, 2011 5:31 pm Subject: GLCD Working Except Problem On Proteus |
Interesting development, if I switch the LCD port to PORTB it works like a charm. Why is this?
The problem is, then I will not be able to freely program the microcontroller. Does anyone know if Pic ... |
Topic: PIC Programming Question |
haronraziq
Replies: 2
Views: 4201
|
Forum: General CCS C Discussion Posted: Thu Aug 25, 2011 5:18 pm Subject: PIC Programming Question |
What is the difference between low voltage programming and high voltage programming?
How can I do high voltage programming? |
Topic: GLCD Working Except Problem On Proteus |
haronraziq
Replies: 4
Views: 6615
|
Forum: General CCS C Discussion Posted: Thu Aug 25, 2011 4:45 pm Subject: GLCD Working Except Problem On Proteus |
I have some code that I am using (mainly glcd library stuff) but whenever I run this code on proteus, it gives me logic contention error. The pins seems to be random and change whenever I open and clo ... |
|