ADC/LCD Isues

A forums to allow bugs and problems with Flowcode v6 to be reported and resolved.

Moderator: Benj

Post Reply
medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

ADC/LCD Isues

Post 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 2664 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.
Attachments
Test pod LCD Wavefoms V5 V6 .zip
(113.19 KiB) Downloaded 199 times
Martin

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ADC/LCD Isues

Post 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.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: ADC/LCD Isues

Post 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
Attachments
16F1828tests_v6.hex
(10.77 KiB) Downloaded 200 times
16F1828tests.hex
(7.96 KiB) Downloaded 201 times
16F1828tests_v6.fcfx
(12.17 KiB) Downloaded 210 times
16F1828tests.fcf
(13.96 KiB) Downloaded 223 times
Martin

Post Reply