Keil Logo

MCBX51: Use FLIP Flash Downloader With a Microchip Device on a MCBx51


Information in this knowledgebase article applies to:

  • MCBx51 Boards

QUESTION

I have an Microchip (formerly Atmel) 89C51RE2 device installed in my MCBx51 board. How do I download and debug this device?

ANSWER

For downloading Microchip devices, download and install the FLIP/BatchISP download utility available from Microchip This download includes the interactive programming utility, FLIP, and the command-line programming utility BatchISP.

After installing the FLIP/BatchISP download file, follow the steps below to download your device:

Setup the MCBx51 Board

  1. On the MCBx51 board, set DIP switches 2, 3 and 10 to OFF. All other switches should be ON
  2. Install the EA jumper per Application Note 156 on pins 2-3.
  3. Connect a serial cable from your PC to the INT connector on the MCBx51 board.
  4. Temporarily jumper the PSEN pin to ground.
  5. Apply power to the board.
  6. Disconnect the jumper between the PSEN pin and ground.

Setup FLIP

  1. Start the FLIP program.
  2. Select your device from the Device menu.
  3. From the Settings menu, select Communications, then RS232.
  4. Set the COM port, and then baud rate to 9600.
  5. Click Connect at this point, and FLIP should connect and display the device type and other information.
  6. Download your application to the device.

You may also download using the BatchISP program from within µVision. In your project, select Project - Options for Target, Utilities, then click the Use External Tool for Flash Programming radio button. In the Command textbox, enter:

BatchISP

and in the Arguments textbox, enter:

-device $D -hardware RS232 -port COM1 -baudrate 9600 -operation MEMORY FLASH LOADBUFFER %H PROGRAM

You may even change the programming interface from serial to USB, COM, or other supported interfaces. To do this, just change the Arguments string. The following string will use the USB interface (you need to install the USB driver for correct operation):

Arguments: -device $D -hardware USB -operation MEMORY FLASH LOADBUFFER %H PROGRAM

Flash Program the 8051 Device

  1. Click OK
  2. In µVision ,select Flash- Load
  3. Download the application to the device.

Debugging

For debugging on the Microchip 89C51RE2 device using Monitor-51, you must have reserved the interrupt vector for either the on-chip or off-chip UART in your application program. For more information regarding this, see the Editing BLINKY section on the BLINKY Example web page.

To start a debug session:

  1. Move the EA jumper on the MCBx51 board to pins 1-2.
  2. Press the Reset button on the board.
  3. Start the debugger.

MORE INFORMATION

SEE ALSO


Last Reviewed: Thursday, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.