Programming a Microcontroller

View previous topic View next topic Go down

Programming a Microcontroller

Post by Admin on Mon Sep 11, 2017 10:04 am

HOW TO PROGRAM A DEVICE

To program a device, do the following:



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

  2. Plug the DC jack of the adaptor to the Programmer module then plug the adaptor to the AC outlet to turn on the power.

  3. Insert the AT89C2051 or AT89C4051 device to program in the ZIF socket of the Programmer module.

  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. If a connection failure occurs, either you do not have a COM port available or another application is using the COM port you selected.
  6. Choose AT89C2051 from the dropdown box (press F11) to program AT89C2051 MCU. Make sure that the selected IC in the software matches that of the IC you have inserted in the Programmer module.

  7. Open a hex file (*.hex). The hex code is shown on the current active buffer tab. 

  8. To edit the programmer buffer, click the desired address and change the value that you want by typing any hex values from 00 to FF.

  9. To save the codes in the program buffer of the current tab to a hex file, on the File menu, click Save File (press CTRL+S).
  10. To program, on the Tools menu, click Program Device (press F5).

avatar
Admin
Admin

Posts : 12
Join date : 2017-09-08
Age : 19

View user profile http://dannabanana.forumotion.asia

Back to top Go down

Re: Programming a Microcontroller

Post by Admin on Mon Sep 11, 2017 10:40 am

What problem/s have you encountered in burning a program in 2051 IC?
avatar
Admin
Admin

Posts : 12
Join date : 2017-09-08
Age : 19

View user profile http://dannabanana.forumotion.asia

Back to top Go down

Re: Programming a Microcontroller

Post by iramae on Fri Sep 15, 2017 7:33 am

Ma'am, in making a program, is it possible to use c programming then compiled into hex file using a software?
I tried a codes in C programming, but when i tried the hex file in Alexan atmel in Windows XP, this message shows...

Thank you Smile

iramae
Newbie

Posts : 2
Join date : 2017-09-15

View user profile

Back to top Go down

Re: Programming a Microcontroller

Post by Lizaaaaaaa on Fri Sep 15, 2017 8:55 am

Maam how can we easily check if there's something wrong sa program namen specifically sa codes?

Lizaaaaaaa
Newbie

Posts : 1
Join date : 2017-09-15

View user profile

Back to top Go down

Re: Programming a Microcontroller

Post by margaritabrutas on Fri Sep 15, 2017 10:41 am

is AT89C2051 have sensitive pin.. ?

margaritabrutas
Newbie

Posts : 2
Join date : 2017-09-15

View user profile

Back to top Go down

Re: Programming a Microcontroller

Post by margaritabrutas on Fri Sep 15, 2017 10:43 am

why some AT89C2051 cant read the ID check but it is still running .. is the ID check is important ?

margaritabrutas
Newbie

Posts : 2
Join date : 2017-09-15

View user profile

Back to top Go down

Re: Programming a Microcontroller

Post by Admin on Sat Sep 16, 2017 7:23 pm

iramae wrote:Ma'am, in making a program, is it possible to use c programming then compiled into hex file using a software?

Yes it is possible. There are different compiler for different microcontrollers. Converting c code to a hex is the job of the compiler.

I tried a codes in C programming, but when i tried the hex file in Alexan atmel in Windows XP, this message shows...
 What message? will you please add that here
avatar
Admin
Admin

Posts : 12
Join date : 2017-09-08
Age : 19

View user profile http://dannabanana.forumotion.asia

Back to top Go down

Re: Programming a Microcontroller

Post by Admin on Sat Sep 16, 2017 7:52 pm

Lizaaaaaaa wrote:Maam how can we easily check if there's something wrong sa program namen specifically sa codes?

First make sure that your circuit were properly placed. Then try to test your program together with your circuit. If it works, you're good. Well if it doesn't work accordingly, try to reprogram and check the codes you input. Check if you have inserted the right op codes.  Smile
avatar
Admin
Admin

Posts : 12
Join date : 2017-09-08
Age : 19

View user profile http://dannabanana.forumotion.asia

Back to top Go down

Re: Programming a Microcontroller

Post by Admin on Sat Sep 16, 2017 8:07 pm

margaritabrutas wrote:is AT89C2051 have sensitive pin.. ?

It is not that sensitive but I suggest not to touch the pins cause it may be damage it.  Very Happy
avatar
Admin
Admin

Posts : 12
Join date : 2017-09-08
Age : 19

View user profile http://dannabanana.forumotion.asia

Back to top Go down

Re: Programming a Microcontroller

Post by iramae on Mon Sep 18, 2017 7:27 am

Ma'am, what is the difference between ULN2003 and ULN2803? thank you Smile

iramae
Newbie

Posts : 2
Join date : 2017-09-15

View user profile

Back to top Go down

Re: Programming a Microcontroller

Post by judedominguiano on Mon Sep 18, 2017 9:27 am

In some of our past exercises, we made programs on paper then try it on the actual processor, can we still do that process? or we have to directly put our codes in ALEXAN ATMEL PROGRAMMER? and lastly Wherelse can a programmer make a hex file rather than ALEXAN ATMEL PROGRAMMER?

judedominguiano
Newbie

Posts : 1
Join date : 2017-09-18

View user profile

Back to top Go down

Re: Programming a Microcontroller

Post by rjdelacruz on Wed Sep 20, 2017 7:48 am

iramae wrote:Ma'am, what is the difference between ULN2003 and ULN2803? thank you Smile
ULN 2803 is used for NPN array transistors. If you are going to use ULN for SSD, I suggest you use ULN 2003. Since it's function is for SSD, It has seven pins that can be connected to the SSD. Technicians usually used this IC for lamps, LED displays, Stepper motors, Logic buffers and Line drivers.

rjdelacruz
Newbie

Posts : 2
Join date : 2017-09-20

View user profile

Back to top Go down

Re: Programming a Microcontroller

Post by rjdelacruz on Wed Sep 20, 2017 9:36 am

Ma'am pag gumamit po ba ng ULN2003, okay lang po ba na hindi na gumamit ng decoder?

rjdelacruz
Newbie

Posts : 2
Join date : 2017-09-20

View user profile

Back to top Go down

Re: Programming a Microcontroller

Post by pam.ronquillo on Wed Sep 20, 2017 9:54 am

Ma'am. why do we need to change the unused bytes between
00 and FF?

pam.ronquillo
Newbie

Posts : 1
Join date : 2017-09-20

View user profile

Back to top Go down

Re: Programming a Microcontroller

Post by marinellara on Wed Sep 27, 2017 7:18 am

is there an easy way to program the microcontroller?

marinellara
Member

Posts : 3
Join date : 2017-09-18

View user profile

Back to top Go down

Re: Programming a Microcontroller

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum