1. First write 'bootloader' into Atmega8 with 'Arduino bootloader copier'.
2. Insert 'Atmega8 with bootloader' onto Arduino NG board and download LCD sketch into the Atmega8 chip.
3. Remove the Atmega8 chip from the Arduino NG board and insert the Atmega8 chip onto breadboard with LCD, 16 MHz crystal, capacitors, reset resistor, etc, as shown.
![](file:///C:/DOCUME%7E1/BTYEUN%7E1/LOCALS%7E1/Temp/moz-screenshot.jpg)
----------2-------enable-----6--------------4
----------7-------DB4-------11-------------13
----------8-------DB5-------12-------------14
----------9-------DB6-------13-------------15
----------10-----DB7-------14-------------16
----------12-----DI (RS)----4--------------18
---------GND---RW--------5---------------8,22
-----------------------------------------------9----->16 MHz Xtal --->22pF--->GND
-----------------------------------------------10--->16 MHz Xtal --->22pF--->GND
-----------------------------------------------1-----> 6K resistor---> 5V
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieJN7YPL5PRoj_0OsvqRFtSrqzm7wvhCa9JYoGpzP60L9s1eXIa4aQytvbj-Nc5SAvHDevo2QLqSwuhepXHUjrOjwjgS_mOMAAy16eoC3qwdhwP6n59XWsOtUxYeg7uueP7p64nqk5M-sd/s320/wiring.jpg)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3V5Pzam2kZmXr0jBdvm4fmRUr7jsf3vUI7QDIXBElsLPJQ7WVKqsdoWDV4k7plvKmCoaJgT6i9EHVJY5wBpkCWtEkR-PwXWa8gsZmXrZnZJUXspwlk6ikESjQOeQ2La8lclkj7toovw0_/s320/Arduino-To-Atmega8-Pins.png)
4. Connect the 5V supply to the breadboard and wait for a few second for Atmega8 to reset.
IT WORKS ! ! !
沒有留言:
張貼留言