![]() ![]() The frequency of oscillator crystal should be set to After that, led output is toggled. An external crystal is attached to the pin 18 and 19 of microcontroller. Here in this example, I have written a simple program showing blinking of an LED using microcontroller. All the four ports P0, P1, P2 and P3 of microcontroller have 8 pins which make them 8-bit ports. To place the correct header file just right click on the text file screen and insert header file in it. This will help us to access registers related peripherals. We have to first add the header file to our program. We can burn it in microcontroller through Fly pro software and burner circuit. Right click the target and select manage components. That is not a big issue, since user manual guide is available with the software package. Now we will discuss here that how to write first program in Keil software for microcontroller and converting it in hex file. Programming can be done in C language or assembly language. Atmel microcontroller needs Keil software for its programming. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |