Page 1 of 1
can with avr
Posted: Fri Mar 05, 2010 7:13 pm
by ikke
hello
Can anyone tell me witch connections I have to make on the EB018 board? I am using the EB 019 avr board.
And with port do I have to use?
Thanks
Re: can with avr
Posted: Sat Mar 06, 2010 11:55 am
by Sean
Hello,
The CAN e-block needs to be connected to the hardware SPI connections of the target device.
Assuming you are using an ATmega32 or 324P (or other pin compatible device) this is on Port B.
The CAN board will need to be configured to use the PATCH system by moving the three way jumper to position C, and the two way jumper to position 2.
The following jumper links will need to be made on the patch system sockets (best using single core wire):
SCK to 7
SDI to 6
SDO to 5
The /CS and /INT connections are selectable in the Flowcode CAN component properties. These can be any unused pins on Port B
I would recommend selecting pin 4 for the /CS function as this forces it to be an output. There can be problems with the alternative /SS function of this pin if it is left as an input when the SPI peripheral is enabled.