Hello i have been trying to lean how to do ADC on PIC i have which is 18F2550, after watching many tutorials & reading the data sheet i came up with this C source code. i have been on & off pic programming for a while. i was able to blink a Led & create an interrupt on the pic i have,
I'm a bit confuse about the Tad setting & the Vref setting i don't understand how it really works.
I played around with the Tad & Fosc setting just to see the how much an effect it has on the output, i don't have a scope so i'm flying blind.
I had a DS212 pocket scope but it just stop working.
I have a 500k potentiometer on AN0 & a led on PORT7, any explanation on Tad & Vref, & help with the code will be greatly appreciated thank you in advance. my code is attach below.
I'm a bit confuse about the Tad setting & the Vref setting i don't understand how it really works.
I played around with the Tad & Fosc setting just to see the how much an effect it has on the output, i don't have a scope so i'm flying blind.
I had a DS212 pocket scope but it just stop working.
I have a 500k potentiometer on AN0 & a led on PORT7, any explanation on Tad & Vref, & help with the code will be greatly appreciated thank you in advance. my code is attach below.
Attachments
-
825 bytes Views: 6