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.
ADC/LCD Isues
Moderator: Benj
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
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
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