2009年3月15日 星期日

Use LCD4bit with 'Atmega8 with bootloader' and LCD

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.


---Arduino------LCD---- LCD pin----Atmega8 pin
----------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






4. Connect the 5V supply to the breadboard and wait for a few second for Atmega8 to reset.

IT WORKS ! ! !

沒有留言:

張貼留言