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
ECIO and CANBUS
Moderator: Benj
- goldwingers
- Posts: 118
- Joined: Wed Sep 06, 2006 1:22 pm
- Location: London
- Been thanked: 1 time
- Contact:
- Dan81
- Valued Contributor
- Posts: 268
- Joined: Sun Jan 15, 2006 4:07 pm
- Location: Albi France
- Been thanked: 60 times
- Contact:
Re: ECIO and CANBUS
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
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
- goldwingers
- Posts: 118
- Joined: Wed Sep 06, 2006 1:22 pm
- Location: London
- Been thanked: 1 time
- Contact:
Re: ECIO and CANBUS
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
Ian
- Dan81
- Valued Contributor
- Posts: 268
- Joined: Sun Jan 15, 2006 4:07 pm
- Location: Albi France
- Been thanked: 60 times
- Contact:
Re: ECIO and CANBUS
Hello Ian
I think it can work.
Can you post your flowchart and the schematic of your hardware
Daniel
I think it can work.
Can you post your flowchart and the schematic of your hardware
Daniel
- 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
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
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
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