ECIO and CANBUS

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
goldwingers
Posts: 118
Joined: Wed Sep 06, 2006 1:22 pm
Location: London
Been thanked: 1 time
Contact:

ECIO and CANBUS

Post by goldwingers »

i am venturing into CANBUS on a pair of ECIO40,s without much success. I can get the examples running in the simulator using VNet but when applied to the 2 ECIO,s - nothng

Has anyone been here and if so any chances of a program to prove these new boards

Thanks

Ian

User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Re: ECIO and CANBUS

Post by Dan81 »

Hello Ian

Which hardware do you use with ECIO ?
The CAN component uses SPI. On the 18Fx455, SPI is on the pins : rB0, rB1 and rC7
The CAN board (EB018) can be connected on only 1 port.

Daniel

User avatar
goldwingers
Posts: 118
Joined: Wed Sep 06, 2006 1:22 pm
Location: London
Been thanked: 1 time
Contact:

Re: ECIO and CANBUS

Post by goldwingers »

looks like a few pounds wasted then... I did ask MM if they would work on an ECIO... Maybe MM can reply because there is nothing on their website to say it wouldnt.

Ian

User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Re: ECIO and CANBUS

Post by Dan81 »

Hello Ian

I think it can work.
Can you post your flowchart and the schematic of your hardware

Daniel

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: ECIO and CANBUS

Post by Benj »

Hello

The ECIO will work with the CAN E-block but you have to do some fiddling to allow the chip to connect to the E-block correctly.

Basically put the E-block into the Patch jumper setting and connect it to PortB. Wire across the connections for the E-block as you normally would. For the pin on PortC simply run a wire from the SDO pin on the E-block to one of the unused chip sockets that has a portC pin7. Alternativly you can add a screw terminal E-block to PortC and use this to connect the other end of the wire.

So here are the default connections you will have to create using single core wire.

Jumpers - J5 and J7
SDO - PortC Bit7
SDI - 0
SCK - 1
INT - Pin number defined in CAN component properties
CS - Pin number defined in CAN component properties

Post Reply