ATMEGA328P BURN BOATLOADER WITH ARDUINO UNO || MICROCONTROLLER || #101


ATMEGA328P BURN BOATLOADER WITH ARDUINO UNO || MICROCONTROLLER || #101



Burning the Bootloader

If you have a new ATmega328 (or ATmega168), you'll need to burn the bootloader onto it. You can do this using an Arduino board as an in-system program (ISP). If the microcontroller already has the bootloader on it (e.g. because you took it out of an Arduino board or ordered an already-bootloader ATmega), you can skip this section.
To burn the bootloader, follow these steps:
You should only need to burn the bootloader once. After you've done so, you can remove the jumper wires connected to pins 10, 11, 12, and 13 of the Arduino board.

 

Components Required:

1. Arduino UNO.
2. ATmega328 Microcontroller IC.
3. 16MHz Crystal.
4. 22pF x 2 Ceramic Capacitors.
5. 10KΩ Resistor.
6. 330Ω Resistor.
7. LED.
8. Breadboard.
9. Connecting Wires.
10. 5V Power Supply.


Arduino UNO/NANO
Atmega328p IC
13 (SCK)
13(SCK) Pin 19
12 (MISO)
12(MISO) Pin 18
11 (MOSI)
11 (MOSI) Pin 17
10 (CSN)
(RESET) Pin 1
VCC(+5V)
VCC(+5V)
GND
GND

To Burn the Bootloader to Atmega328p IC, we are using SPI (Serial Peripheral Interface) communication Protocol.   


                                                                                                                        Using an Arduino board to burn the bootloader onto an ATmega on a breadboard.                                                              
STEP 1 : First You Need To Give all the Connections to Breadboard and Arduino UNO as Shown in the Above Circuit Diagram.

STEP 2 : Open Arduino IDE  Goto Tools => Select Board : “Arduino UNO” and Select Port : “COMXX”.


And Then Select  PROGRAMMER : “ARDUINO AS ISP”

STEP 3 : Now Goto Files => Examples => 11.ArduinoISP => ArduinoISP.


Arduino ISP Code


Step  4 : Now Again Goto Tools =>  click on “Burn Bootloader”.


After Bootloader is Burn you will Get Message Like this “Done Burning Bootloader
                                                                                                                                                                If you Failed to Burn the Bootloader Please check all the Connections Once again.

Comments