Microprocessor

Monday, August 1, 2016

Programming the MCU

  1. Connect the programmer module to the serial port of your computer.


  2. Insert the AT89C2051 or AT89C4051 device to program in the ZIF socket of the Programmer module. Pins 10 and 11 of MCU (located at lower bottom) must be connected to the bottommost pins of the ZIF socket (pin 12 & 13)
  3. Plug the DC jack of the adaptor to the Programmer module then plug the adaptor to the AC outlet to turn on the power.
  4. Run the ALEXAN ATMEL PROGRAMMER software
  5. At startup of the software, it will automatically search for and connect to the serial port the Programmer module is connected to. Alternately, you may select the serial port to connect to by selecting the Serial Port Setup (press F9). After selecting the appropriate COM port, press OK. The programmer will then search for your Programmer module.

  6. Choose AT89C2051 from the dropdown box (press F11) to program AT89C2051 MCU or AT89C4051 (press F12) to program AT89C4051MCU. Make sure that the selected IC in the software matches that of the IC you have inserted in the Programmer module. Information about the device you choose is shown on the right side.
  7. Open a hex file (*.hex). Click open file. Make sure that your compiler generates a hex file from your source code since the programmer will only allow a valid hex file format with a *.hex extension to be opened. The hex code is shown on the current active buffer tab. A maximum of 3 files may be opened.
  8. To program, on the Tools menu, click Program Device (press F5).

Share:
Powered by Blogger.

Recent