ADC/LCD Isues
Posted: Mon Mar 02, 2015 10:35 pm
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: Waveforms of V5 and V6 look different and the is a much bigger delay for ADC conversion with V6: 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.
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: Waveforms of V5 and V6 look different and the is a much bigger delay for ADC conversion with V6: 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.