Hi,
The ADC is missing codes (from 50 its jumping to 64). What can be causing this please? by the way, the ref voltages of the ADC are set from 0.5V to 4.5V.
And another question. I want to display the respective temperature to an LCD display. Is it difficult to do that in assembly? do i have to refer to every binary value as a character? OR is it better to chance to C language for this part of the program?
Hi,
The ADC is missing codes (from 50 its jumping to 64). What can be causing this please? by the way, the ref voltages of the ADC are set from 0.5V to 4.5V.
And another question. I want to display the respective temperature to an LCD display. Is it difficult to do that in assembly? do i have to refer to every binary value as a character? OR is it better to chance to C language for this part of the program?
hi,
Are you saying as you increase the adc input voltage that the PORTD value is jumping from 50d to 64d,, as you decrease the input does it jump from 64d to 50d.??
Ref the LCD what type is it, how many lines etc.
You do have to convert the hex value of the ADC to ASCII in order to display in decimal.
EDIT:
Using Oshonsoft I have stepped thru all the combinations from 0 to 127 and I see no jumping of the codes up or down, the problem is elsewhere, have you changed the code, if so please post it.
Using Oshonsoft I have stepped thru all the combinations from 0 to 127 and I see no jumping of the codes up or down, the problem is elsewhere, have you changed the code, if so please post it.
But were the ADC (of the pic) set to 0.5V to 4.5V ? because i notice that when the -Vref was set to 0v it worked fine, but for my project i want to set -Vref to 0.5V. By the way, the coding was not changed.
I think this is a common problem as i found it on google. The problem is that i cannot clearly understand what can cause this: https://www.google.com.mt/search?hl...urce=og&sa=N&tab=wi&ei=vs8WT_SIHtGN4gSb_pSZBA
Hi, i replaced the pic and its still the same, but when i set the ref voltage was set from 0V to 5V it works fine. Can the left justified (to set it to 7 bit) affect it?
Hi, i replaced the pic and its still the same, but when i set the ref voltage was set from 0V to 5V it works fine. Can the left justified (to set it to 7 bit) affect it?
hi,
I you could try to right justify the ADC and then right shift ADRSH and ADRESL say 3 times, then AND ADRESL with 01111111, that may avoid the jump problem