Page 1 of 1

ECIO and CANBUS

Posted: Sat Nov 20, 2010 3:00 pm
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

Re: ECIO and CANBUS

Posted: Sat Nov 20, 2010 7:49 pm
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

Re: ECIO and CANBUS

Posted: Sun Nov 21, 2010 5:12 pm
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

Re: ECIO and CANBUS

Posted: Sun Nov 21, 2010 5:29 pm
by Dan81
Hello Ian

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

Daniel

Re: ECIO and CANBUS

Posted: Tue Nov 23, 2010 10:16 am
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