Return to indexI wanted to try out one of the bigger versions of the AVR family since the smaller ones don't really have that much memory. Unfortunately the bigger ATmega's are only in SMD or PLCC versions and this is not so handy for experiments. So looking around the web I found an ATmega128 stamp with everything on board. For the board they also had a start kit, all very good priced. Of course I had to buy the ISP programmer too, since it fits with the AVR stamp.
3 weeks later the package arrived and the content was all very secure wrapped up. Together with the board I also ordered an KS0108/KS0107 compatible 128x64 LCD display. This display is blue with white pixels with build in background light (Led). After I wanted to hook up the LCD screen to the on board LCD connecter I discovered that it only supports 4 bit screens, while the KS0108 is a 8 bits screen.I solved the problem to use the Port C as the data port for the display and the LCD port for the control signals. Check out the diagram.
Assembly of the LCD screen to the AVR board.
Next fase is to find some software for the AVR processor that can control the display. I found a workable driver in the Procyon AVRlib from Pascal Stang. Extract the files and make a new project with AVR studio. Make sure that Avrstudio can find the include files from the new library and that the following files are added into the project.
In global.h the speed of the AVR processor needs to be change to 16 Mhz.Compile the program and use Ponyprog to upload the program to the chip. If you did everything right you should see something like this
Of course our board doesn't have any buttons connected to Port A, so there is nothing we can press, but we know our screen is functioning.
Return to index
| |||||
| |||||