AVR32114 Using the AVR32 LCD Controller Documentation

Atmel AVR32 Application Notes

Introduction

This is the documentation for the data structures, functions, variables, defines, enums, and typedefs in the software for application note AVR32114. It also describes the usage of the example applictions for the LCD controller.

Compilation Info

This software was written for the GNU GCC for AVR32 and IAR Systems compiler for AVR32. Other compilers may or may not work.

Device Info

All AVR32 devices with a LCDC module can be used. This example has been tested with the following setup:

Testscreen

CPU speed: 40 MHz This example shows how to set up the LCD controller for the TFT display on the STK1000 and shows a simple test pattern on the screen.

Moving bitmap

CPU speed 40 MHz

This example shows the use of the 2D addressing mode on the LCD controller. It uses the TFT display on the STK1000 to show a part of the "virtual" framebuffer. The virtual frame buffer (640*480) is four times the size of the LCD viewing area (320*240). A bitmap picture (320*240) will read from the flash, enlarged by four and then written to the framebuffer. So you will only see a part of the picture on the screen. This viewing area can be moved around the "virtual" framebuffer with switches on the STK1000.

Before you run this application program the picture (AVR32.bmp) must be written into the flash at address 0x00400000. Use the avr32program application for this purpose. avr32program -F bin -O 0x00400000 If you intend to program the picture to another location change the define BITMAP_FILE_ADDRESS accordingly in the source. Feel free to use your own bitmap file.

The input (switches) header marked J25, used for moving around the virtual frame buffer, must be connected to the header labeled J1 (PORTB[0..7]).

To move the viewing area use following switches: Switch0: Move viewing area 10 pixels to the right Switch1: Move viewing area 10 pixels to the left Switch2: Move viewing area 10 lines up Switch3: Move viewing area 10 lines down

Testscreen

CPU speed: 150 MHz

This example shows how to set up the LCD Controller in combination with an external analog monitor. Three configurations for the resoultions VGA 648x480, SVGA 800x600 and XVGA 1024X768 are available. Check your monitor specifications if it supports one of these configurations. If not the parameters can be adjusted (blanking, polarity ...). To choose a configuration uncomment one of the defines in the example code. define CONF_640_480_60 -> VGA 640x480 define CONF_800_600_60 -> SVGA 800x600 define CONF_1024_768_60 -> XVGA 1024x768 Before you run this application program the picture (AVR32.bmp) into the flash at address 0x00400000. Use for instance the avr32program application for this purpose. avr32program -F bin -O 0x00400000 If this picture is not available a blank rectangle will be visible in the upper left corner. The pictures resolution is 320x240 (QVGA).

When recompiling a project, make sure to run make clean before recompiling

Contact Info

For more info about Atmel AVR32 visit Atmel AVR32
AVR32 Application Notes
Support mail: avr32@atmel.com
Generated on Wed May 7 16:03:16 2008 for AVR32114 Using the AVR32 LCD Controller by  doxygen 1.5.3-20071008