This is an old revision of the document!
Table of Contents
3155 Build Instructions
Programming
Modbus to Nmea 2000 gateway flashing guide Connect the Modbus gateway to the Atmel AVR ISP via the 6 pin header labled PL2 on the Modbus gatew
The Pink Stripe on the Connector designates where pin one is located Connect the CAN Power source 12volt from the power supply
Open AVR Studio 5.1
Upon opening of AVR Studio 5.1 you will be greeted with these two screens After the program has loaded click “Tools” then “AVR Programming”
You will then see this screen
Select the tool you wish to use for programming your device, in this case we need to use the “AVRISP mkII” so make sure this is selected from the drop down menu.
Select the device you wish to use, in this case we are using the “Atmel AT90CAN64” so make sure this is selected from the drop down menu.
The interface we will to use is “ISP” (in system programming)
Then Click the Apply button.
After you have clicked Apply this window should now appear. Set the ISP Clock frequency to 125khz if not already set.
Test Procedure
You Will Need:
- USB to RS-485 Converter
- Programmed 3155
- Small Flat-Head Screwdriver
- NMEA Power
- QModMaster Installed on your PC
If you do not have QModMaster downloaded, it is in S:/Downloads/QModMaster → Copy the .zip file into a seperate folder on your desktop and unzip inside the folder, then look for the 'Application File'.
Testing
Step 1
The USB to RS-485 should have the following Connections:
Connect the USB to RS-485 Converter to the 3155 screw in terminal blocks as shown, tighten with flat head screwdriver (not too hard).
Step 2
Plug in USB to RS-485 Converter into your PC.
Go into “device Manager” and confirm what COM port the device is on (The device will be called: Silicon Labs CP201x USB to UART Bridge)
Step 3
Power up the 3155 using the NMEA connector and 12V power supply
Step 4
Open Up QModMaster
In 'Options' → Modbus RTU Select the following settings:
Select the Serial Port that was shown in Device Manager!!!
Step 5
Select the Following Settings in QModMaster:
Modbus Mode: RTU Slave Address: 16 Scan Rate: 1000 Function Code: Read Input Registers (0x04) Start Address: 3 (Dec) Number of Registers: 1 Data Format: Hex














