ECIO40 and internet board

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
bigparmezan
Posts: 10
Joined: Wed Dec 10, 2008 10:39 am

ECIO40 and internet board

Post by bigparmezan »

Hi,

I'd like to know how it's possible to use ECIO40 with the internet board. We're working on a project that requires web input/output, temperature taking and heat regulation. Originally we used PIC 16f877a, but it only has 8k of flash memory and using web server and tcpip component uses up almost all of it. ECIO40 has 24k of memory but apparently no support for the internet board. Actually it appears there is not a single PIC with more then 8k of memory that can be used with the internet board and is at the same time supported by Flowcode.

If there's a solution with ECIO40, please let me know what it is. If not, when is it planned to support the internet board and until then what chip can we use?

Thanks,

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: ECIO40 and internet board

Post by Benj »

Hello

Yes the ECIOs and any other PICmicro device with a MI2C peripheral will work fine with our Internet Board.

bigparmezan
Posts: 10
Joined: Wed Dec 10, 2008 10:39 am

Re: ECIO40 and internet board

Post by bigparmezan »

If it works, would you please write how to configure Flowcode so it will really work.

See the attached picture for the error we're getting.

Thanks.
Attachments
ECIO error.png
(11.05 KiB) Downloaded 3684 times

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: ECIO40 and internet board

Post by Steve »

I see the problem, and it looks like this affects all 18F PICmicro chips. We'll fix this in V4 of Flowcode.

There is a quick workaround: enter "#define TMR0 TMR0L" into the "defines" section of the "supplementary code" window.
Attachments
tmr0L.png
(16.28 KiB) Downloaded 2311 times

bigparmezan
Posts: 10
Joined: Wed Dec 10, 2008 10:39 am

Re: ECIO40 and internet board

Post by bigparmezan »

Thanks for your prompt answer. The compilation error doesn't occur anymore but we ran into new problems.

We used your sample with WebServer for testing and now we can ping the device, but the web page from the device isn't displayed in the browser. The same code works OK on PIC 16F877A. With our application the behaviour is the same.

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: ECIO40 and internet board

Post by Benj »

Hello

To get the ECIO40 working with the TCP/IP E-Block EB023 you will need to connect the E-Block to PortB and then setup the patch system as follows.

Jumper Setting C

Wire the following connections using the turned pin sockets on the E-Block.
SDA wired to Bit 0
SCK wired to Bit 1
/INT wired to Bit 2

Also in the Webserver properties you must change I2C interrupt from 0 to 2.

Hope this helps.

bigparmezan
Posts: 10
Joined: Wed Dec 10, 2008 10:39 am

Re: ECIO40 and internet board

Post by bigparmezan »

Thanks guys,

after setting the interrupt (just overlooked the setting somehow) it works fine now.

Post Reply