Page 1 of 1

ADC/LCD Isues

Posted: Mon Mar 02, 2015 10:35 pm
by medelec35
Target device = 16F1828 fitted in EB006 V9
Using 8MHz internal osc.
Pot conected to B2 port
LCD connected to portC

V5 is working perfectly.
Turn pot so ADC of 474 then changed to 24.
Both 474 and 24 is solid no issues.

with V6 compiling V5 flowchart to same Eb006 then LCD ADC is randomly changing, but its only the last two digits that has the issue:
ADC issue.jpg
ADC issue.jpg (87.29 KiB) Viewed 3031 times
Waveforms of V5 and V6 look different and the is a much bigger delay for ADC conversion with V6:
LCD waveforms.png
(178.27 KiB) Downloaded 1504 times
Note: Waveform on B6 is timer0 interrupt (244.141Hz )toggling o/p every 2ms
B7 goes high just before ADC ReadAsInt, component, then back low immediately after.

Edit: Did not attach flowchart, will add it a bit later today.

Re: ADC/LCD Isues

Posted: Tue Mar 03, 2015 11:05 am
by Benj
Hi Martin,

Thanks for letting us know. I will look into this issue for you when you post the files and see if I can find out what's going wrong.

Re: ADC/LCD Isues

Posted: Tue Mar 03, 2015 1:08 pm
by medelec35
Hi Ben,
attached are files,
I was at work when I realised flowcharts not got attached.

I'm guessing could the longer interrupt for ADC is preventing correct value being displayed?

Running some new tests, will post results if found more issues.


Martin