Page 1 of 1

ECIO28 ADC4

Posted: Mon Sep 08, 2014 10:31 pm
by dirk S
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

Re: ECIO28 ADC4

Posted: Mon Sep 08, 2014 10:52 pm
by medelec35
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

Re: ECIO28 ADC4

Posted: Mon Sep 08, 2014 11:55 pm
by kersing
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

Re: ECIO28 ADC4

Posted: Tue Sep 09, 2014 5:23 am
by medelec35
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]:
ECIO28.png
(52.02 KiB) Downloaded 2726 times
and then I counted the the stated 10 ADC channels:
ECIO28 Spec.png
(47.58 KiB) Downloaded 2726 times
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

Re: ECIO28 ADC4

Posted: Tue Sep 09, 2014 8:11 pm
by dirk S
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

Re: ECIO28 ADC4

Posted: Tue Sep 09, 2014 10:12 pm
by medelec35
Hi Dirk,
dirk S wrote: Let's hope they change the datasheet.

Thanks again

Dirk
You're welcome.

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.

Re: ECIO28 ADC4

Posted: Wed Sep 10, 2014 10:09 am
by Benj
Hello,

Cheers everyone, I will see if I can get the datasheet and definition files corrected.