Part Programming
3-12
AT89STK-03 Hardware User Guide
7609B–SCR–11/06
3.1
Bootloader DPW
Ensure you are familiar with the DPW bootloader datasheet before programming the
part.
Configure the MCU demonstration board following Table 2-2 on page 9.
3.1.1
ISP mode
(In System
Programming )
When no E2PROM is connected to the MCU, the bootloader works automatically in ISP
mode. It waits for instructions coming from an external program like FLIP through serial
or USB interfaces. FLIP is a software interface which enables to communicate with the
bootloader in order to program the part by transferring the code in the internal CRAM
(volatile program memory) and execute the code.
Table 3-1.
Programming the MCU with FLIP
Interface
Perform the following actions
Comments
USB
DEMO BOARD CONFIGURATION
- Set the POWER switch in OFF position
- Remove any E2P present on the DIP socket
- Connect a USB cable between demo board and PC. If an RS232C cable is present, the USB
interface is selected by default
- Configure the power jumper accordingly to power source wich supplies the demo board
- Set the POWER switch in ON position
-->
Result
: PWR ON and ALE leds are switched on
-->
Trouble shooting
: check if 8 Mhz quartz is correctly fitted
PROGRAMMING PART
- Run FLIP
- Select part at8xc5122 for FLIP 1.8.8 or part at8xc5122_dpw for FLIP 2.x.x
- Establish an USB communication
--->
Results
:
- Bootloader Vers = 1.1.2
- DeviceBoot Ids = 02 00
- Start Application button becomes red
- Select Erase, Blank check, Program and Verify options if part is running for the first time, otherwise
just select Program and Verify
- Load the code file (Intel hex format) into FLIP buffer
- Click on Run button
- Click on Start Application button
- Any E2P connected to
C5122 prevents from
working in ISP mode with
FLIP
- DPW bootloader is
supported by FLIP since
version V1.8.8
- Area from 7FFD to 07FFF
is reserved for bootloader
configuration