Yeah, too bad for me, I did not not read the part about the defines
Type: Posts; User: rngd; Keyword(s):
Yeah, too bad for me, I did not not read the part about the defines
OK, I found the problem, turns out the defines must be in block letters. Weird that I did not get any compile errors though.
Im using PBP 2.47. I tried to change adcon1 and add adcon0 but it still doesnt work. Is the problem in my code or is my port A burnt (I accidentally input ~10V for a short while into the Vref+ pin...
For the first code, I have a voltage regulator giving 2.5V to AN3.
I have tried using internal 5V Vref+ for the code below
and i input the same 2.5V into channel 0, but I cannot get portd.0...
Hi jumper, these are my settings for ADC
define OSC 20
define adc_bits 10 'define number of bits in result
define adc_clock 3 'clock source3=RC
define adc_sampleus 50 'set sampling...
Hi guys,
Im having trouble using the analog port. Regarding the analog port A, is it supposed to output high (approx 4.8V) when its not connected to anything ? I have set trisa=%111111.
Ive...
OK, so I guess its probably not dead then. Thanks.
Hi,
How do you guys test to see if a PIC is burnt ? Im using a PIC16F877A with the WinPic800 programmer. The programmer can detect, read and write onto the PIC as usual.
The reason I ask this...
Thanks Alain, but I dont think I need 'same time' measurements.
OK, so I have read the links. If my code is like this
meaning I repeatedly check the analog input until 'diff' is less than...
Do you have any examples which use ADCIN and put the input directly into the variable (see below) ? T
Thanks ! Just to clarify, so my code below can work without problems ?
define...
Hi,
Im using a PIC 16F877A. I want to read multiple analog inputs at the same time and then compare their values. I have read somewhere that after the first ADCIN, I have to delay a few...
Oh OK. Thank you very much.
Hi,
Im using ADC with a PIC16F877A.
1. Why do I see people using TRISA = %111111111 when port A is only 6 bits ?
2. When using analog input and ADCIN, is channel 0 to 7 referring to AN0 to...