USB-CAN

Two step programming procedure:

STEP ONE
MProg.exe (actually in 'C:\Documents and Settings\eche027\Desktop\USB_CAN\ftdi\MProg 3.5 release' dir)

use USB_CAN.ept on Desktop (in 'C:\Documents and Settings\eche027\Desktop\USB_CAN\ftdi' dir)

Select "Scan", then "Program":



STEP TWO
Connecting the programmer (don't forget power from the USB as well):

Atmel parallel programmer (STK200 complient?) C:\Documents and Settings\eche027\Desktop\USB_CAN\Firmware\firm&gt;avrdude -c stk200 -p ATmega162 -U flash:w:firmware_1.07.hex -U hfuse:w:0xD9:m

Or Make Program will do the same thing.

The following nearly works - it lacks the JTAG fuse disable, which breaks functionality

1)
SJA1000 Chip Select (pin4) needs grounding. Using a resistor or direct short to groud works (HW solution). SW solution preferred - output LOW Signal from Atmel PC.

2)
V1.07 has baud rate irregularity, see http://www.mictronics.de/projects/usb-can-bus/ user comments ~jan2011 -- Main.PhilipCourt - 2011-04-20

Fuses:
http://www.engbedded.com/fusecalc/

Ebay device fuse settings: h,l,e 0xD1, 0xD0, 0xFB

Mictronics recommended 0xD0, 0xF7, 0xFB

Our fuse settings: 0xD9, 0xD0, 0xFB

C:\&gt;avrdude -c stk200 -p ATmega162 -U hfuse:w:0xd9:m -U lfuse:w:0xd0:m -U efuse:w:0xfb:m

CAN PINOUT

 * Can pin out for USB&lt;-&gt;CAN:

JF2 Lata cables connect to CAT5 cables as follows (using T568B termination http://en.wikipedia.org/wiki/TIA/EIA-568#T568A_and_T568B_termination):
 * RJ45 Pinout:
 * CANH to CAT5 pin 1 (PIN One - White/Orange)
 * CANL to CAT5 pin 2 (PIN Two - Orange))