6-2
Demonstration Kit User Guide
5183AZIGB12/07/06
6.2.1
Programming the
Display Board
The following steps show how to re-program the ATmega128 microcontroller located on
the Display Board.
Remove RCB from Display board.
1.  Connect the 6-pin cable from the AVRISP mkII to the Display ISP connector
(upper right) on the Display Board. Verify that the Display Board is powered on.
2.  Start AVR Studio. From the Tools menu, select Program AVR, and select Con-
nect. Choose AVRISP mkII from the list of platforms and the port where it is
connected. Press the Connect button. The AVRISP mkII programming window
should now be visible. Note space between AVR and Studio.
3.  In the Program tab, select the target Device as ATmega128.
4.  Ensure that the following fuse settings are selected using AVR Studio in the
Fuses tab:
JTAG Interface Enabled; [JTAGEN=0]
Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]
Preserve EEPROM memory through chip erase cycle. [EESAVE=0]
Boot programming section size=4096 words Boot start address=$F000;
[BOOTSZ=00]; default value
Brown-out detection level at VCC=2.7V; [BODLEVEL=1]
Int. RC Osc. 8 MHz; Start-up time: 6 CK + 4ms; [CKSEL=0100 SUT=01].
The final fuse value written is 0xFF, 0x91, 0xD4.
5.  Go back to the Program tab, in the Flash section, browse to the location of the
input HEX file and select the filename: rz200_display_board_v1_0.hex. Press
Program and verify that the process terminates successfully.
6.  Alternatively, fuse settings can be altered using JTAG ICE mkII. In this case,
the Serial program downloading (SPI) enabled; [SPIEN=0] fuse must be
checked.
6.2.2
Programming the
RCB
The following steps show how to re-program the ATmega1281 microcontroller located
on the RCBs.
1.  Connect RCB to the Display board. Connect the 6-pin cable from the AVRISP
mkII to the RCB ISP connector (upper left) on the Display Board. Verify that the
RCB is powered on (move the switch away from the antenna).
2.  Start AVR Studio. From the Tools menu, select Program AVR, and select Con-
nect. Choose AVRISP mkII from the list of platforms and the port where it is
connected. Press the Connect button. The AVRISP mkII programming window
should now be visible.
3.  In the Program tab, select the target Device as ATmega1281.
4.  Ensure that the following fuse settings are selected in the Fuses tab:
Brown-out detection disabled; [BODLEVEL=111]
JTAG Interface Enabled; [JTAGEN=0]
Preserve EEPROM memory through chip erase cycle. [EESAVE=0]
Boot   program   section   size=4096   words   Boot   start   address=$F000;
[BOOTSZ=00]; default value
Int. RC Osc. 8 MHz; Start-up time: 6 CK + 65ms; [CKSEL=0100 SUT=01]
The final fuse value written is 0xFF, 0x91, 0xE2.