Microchip® Advanced Software Framework

Liquid Crystal Controller - Example Interfacing to a C42048A Display

Purpose

This example demonstrates how to use the LCDCA driver to interface to an external LCD (C42048A).

Requirements

This example can be used with the SAM4L EK evaluation kit.

Description

The example configures the LCDCA Controller in a mode defined by the LCD glass board connections, and the technical characteristics of the LCD component used. It uses the following LCDCA controller features:

  • LCD contrast control
  • Hardware blinking
  • Autonomous segment animation
  • Automated character (sequential and scrolling)
  • ASCII digit encoder
  • LCD beginning of frame interrupt

The LCDCA is set up to use the external 32.768kHz clock to generate LCD frames at 64Hz, using a low power waveform to reduce toggle activity, and hence power consumption. In order to show the LCD Controller's capability of running in a power-saving mode, sleep mode is entered whenever possible.

Main Files

  • lcdca.c: Liquid Crystal Display Controller driver
  • lcdca.h: Liquid Crystal Display Controller driver header file
  • lcdca_example.c: Liquid Crystal Display Controller example application
  • conf_example.h: Liquid Crystal Display Controller example configuration header file

Compilation Information

This software is written for GNU GCC and IAR Embedded Workbench® for Atmel®. Other compilers may or may not work.

Usage

  1. Build the program, and download it onto the evaluation board.
  2. On the computer, open, and configure a terminal application (e.g., HyperTerminal on Microsoft® Windows®) with these settings:
    • 115200 baud
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. Start the application.
  4. In the terminal window, the following text should appear:
    -- LCDCA Controller Example --
    -- xxxxxx-xx
    -- Compiled: xxx xx xxxx xx:xx:xx --
    
    Press PB0 to stop automated sequential mode and continue.