Hi,
I'm using an ECIO28 in a small project. Based on the datasheet of the ECIO I connected an potentiometer to pin 9 (RA5 - AN4).
When I tried to program it with flowcode 6 (or V4), there is no 'an4' in the connections box. Any idea?
Regards
Dirk
ECIO28 ADC4
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:
Re: ECIO28 ADC4
Hi Dirk,
here is an unofficial temporary solution.
I have modified:
ECIO-28.fcdx
That's in:
C:\Program Files (x86)\Flowcode 6\FCD\PIC (If 64 bit windows)
or
C:\Program Files\Flowcode 6\FCD\PIC(If 32 bit windows.)
If you make a copy of the original files and replace with the attached file, hopefully it will work for you.
I have not tested solution on hardware.
I have also moved topic to Bug reports so hopefully an official fix will make it into the next update.
Edit: removed file as doubts it could be a bug.
Martin
here is an unofficial temporary solution.
I have modified:
ECIO-28.fcdx
That's in:
C:\Program Files (x86)\Flowcode 6\FCD\PIC (If 64 bit windows)
or
C:\Program Files\Flowcode 6\FCD\PIC(If 32 bit windows.)
If you make a copy of the original files and replace with the attached file, hopefully it will work for you.
I have not tested solution on hardware.
I have also moved topic to Bug reports so hopefully an official fix will make it into the next update.
Edit: removed file as doubts it could be a bug.
Martin
Martin
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: ECIO28 ADC4
Dirk,
Did you notice that pin is connected to a LED and to the USB bus as well according to the block diagram on page 3 of the data sheet?
Martin: my guess, this is a deliberate omission because of the multiple use of this pin...
Best regards,
Jac
Did you notice that pin is connected to a LED and to the USB bus as well according to the block diagram on page 3 of the data sheet?
Martin: my guess, this is a deliberate omission because of the multiple use of this pin...
Best regards,
Jac
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- 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: ECIO28 ADC4
Hi Jac,
Thanks for your reply on this as you have a point.
I looked at the chip diagram on the Data sheet first and noticed [AN4]: and then I counted the the stated 10 ADC channels: I proceeded to add AN4.
So from what your saying I can assume the data sheet is misleading therefore I will remove my Temp fix just so it would not to cause any issues.
I believe It would be better if AN4 was not available the data sheet should have a statement to that effect i.e Remove [AN4] and reduce the 10 channels to 9
The chip diagram with ECIO in Flowcode 5 does show AN4, but the AN4 selection is also missing which backs up what your saying.
Martin
Thanks for your reply on this as you have a point.
I looked at the chip diagram on the Data sheet first and noticed [AN4]: and then I counted the the stated 10 ADC channels: I proceeded to add AN4.
So from what your saying I can assume the data sheet is misleading therefore I will remove my Temp fix just so it would not to cause any issues.
I believe It would be better if AN4 was not available the data sheet should have a statement to that effect i.e Remove [AN4] and reduce the 10 channels to 9
The chip diagram with ECIO in Flowcode 5 does show AN4, but the AN4 selection is also missing which backs up what your saying.
Martin
Martin
Re: ECIO28 ADC4
Hello Martin and Jac,
thanks for that quick reply. I will make a new PCB and connect my potentiometer to another ADC-pin.
Let's hope they change the datasheet.
Thanks again
Dirk
thanks for that quick reply. I will make a new PCB and connect my potentiometer to another ADC-pin.
Let's hope they change the datasheet.
Thanks again
Dirk
-
- 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: ECIO28 ADC4
Hi Dirk,
I would of thought the data sheet requires updating anyway as it currently shows ECIO's along with Flowcode V4 which is not supported anymore
I have noticed that block diagram shows EC40 with USB LED connected to RE2 (AN7).
However AN7 is an option on the flowchart.
I have found my ECIO28 and ECIO40 so tried AN4 and AN7 respectively and my finding agree with Jac.
The ADC does read, but since its connected in parallel with USB indicator it there will be issues even if change jumper from USB to EXT so its best no to used AN4 (ECIO28) or AN7 (ECIO40)
So the selection of AN7 should not be available when ECIO40 is selected.
You're welcome.dirk S wrote: Let's hope they change the datasheet.
Thanks again
Dirk
I would of thought the data sheet requires updating anyway as it currently shows ECIO's along with Flowcode V4 which is not supported anymore
I have noticed that block diagram shows EC40 with USB LED connected to RE2 (AN7).
However AN7 is an option on the flowchart.
I have found my ECIO28 and ECIO40 so tried AN4 and AN7 respectively and my finding agree with Jac.
The ADC does read, but since its connected in parallel with USB indicator it there will be issues even if change jumper from USB to EXT so its best no to used AN4 (ECIO28) or AN7 (ECIO40)
So the selection of AN7 should not be available when ECIO40 is selected.
Martin
- 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: ECIO28 ADC4
Hello,
Cheers everyone, I will see if I can get the datasheet and definition files corrected.
Cheers everyone, I will see if I can get the datasheet and definition files corrected.
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