GRAPHICS LCD INTERFACING WITH 8051

Similar documents
04/12/11 version 1.0

Arduino Dock 2. The Hardware

I²C GLCD Adapter for KS x64 Manual (1.4)

LCD-1 Peripheral Board Technical Manual

< W3150A+ / W5100 Application Note for SPI >

1.6inch SPI Module user manual

SPI (Serial & Peripheral Interface)

RDB1768 Development Board User Manual

BV4212. I2C Front Panel with rotary input. Product specification. March of 8

ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #20: Using SPI The DAC

ST Sitronix ST7565R. 65 x 132 Dot Matrix LCD Controller/Driver. Ver 1.7 1/ /06/01

ST Sitronix ST7565R. 65 x 132 Dot Matrix LCD Controller/Driver. Ver 1.3 1/ /11/25

Graphical LCD Display Datasheet EB

Winbond Electronics Corporation America APPLICATION NOTE

8051 I/O and Class 6 EE4380 Spring 03. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

Read section 8 of this document for detailed instructions on how to use this interface spec with LibUSB For OSX

Introduction. PURPOSE: - List and explain the 15 i.mx1 modules that are also used on the i.mx21 device.

EECS150 - Digital Design Lecture 17 Memory 2

E-Module: GLCD+RTC Combo Datasheet

Histogram equalization of images

History and Basic Processor Architecture

SNL16000 MTP EV chip (with 2Mx16 Flash Memory)

2.2" TFT Display. Created by lady ada. Last updated on :19:15 PM UTC

65 x 132 Dot Matrix LCD Controller/Driver INTRODUCTION

Applicable for IOW24, IOW40, IOW56

VLSI AppNote: VSx053 Simple DSP Board

Future Designs, Inc. Your Development Partner LCD DEMO KITS

Homework 5: Theory of Operation and Hardware Design Narrative Due: Friday, October 3, at NOON

ECE2049: Embedded Computing in Engineering Design C Term Spring 2018

ArduCAM-M-2MP Camera Shield

Adafruit Mini TFT " 160x80

DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER UNIT-1 PART-A (2 MARKS)

160x104 DOTS WITH SPI AND I²C

UM LPC General Purpose Shield (OM13082) Rev November Document information. Keywords

SSD1355. Advance Information. 128 RGB x 160 Dot Matrix OLED/PLED Segment/Common Driver with Controller

INTRODUCTION TO FLEXIO

Serial Peripheral Interface. What is it? Basic SPI. Capabilities. Protocol. Pros and Cons. Uses

1.44inch LCD HAT USER MANUAL

STM32F100RB processor GPIO notes rev 2

CDB5346. Evaluation Board for CS5346. Features. Description CS5346. Single-ended Analog Inputs. Single-ended Analog Outputs

Getting the O in I/O to work on a typical microcontroller

ST Sitronix ST7565P. 65 x 132 Dot Matrix LCD Controller/Driver

RAiO RA x33 Dot Matrix LCD Driver Specification. Version 1.1 March 2, RAiO Technology Inc. Copyright RAiO Technology Inc.

EFM32 Series 0: EBI and Displays

Shrivathsa Bhargav Larry Chen Abhinandan Majumdar Shiva Ramudit

SSD1329. Advance Information. 128 x 128 OLED Segment / Common Driver with Controller Equips with 16 Gray Scale Levels and 64 Hard Icon Lines

Product Technical Brief S3C2412 Rev 2.2, Apr. 2006

SPI on RTU (plus other fun features & peripherals)

AN Sleep programming for NXP bridge ICs. Document information

Microprocessor Architecture. mywbut.com 1

A First Look at Microprocessors

Module 3.C. Serial Peripheral Interface (SPI) Tim Rogers 2017

PCA General description. 2. Features and benefits. 100 x 18 Chip-On-Glass automotive LCD dot matrix driver

ArduCAM-M-5MP Camera Shield

WB_INTERFACE - Pin Description

Pin Description, Status & Control Signals of 8085 Microprocessor

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013)

ED1021 I/O Expander with UART interface & analog inputs

3.2inch SPI Module MSP3218 User Manual

Propeller Activity Board (#32910)

AN HI-3200 Avionics Data Management Engine Evaluation Board Software Guide

Design and Implementation of LED Display Screen Controller based on STM32 and FPGA Chi Zhang 1,a, Xiaoguang Wu 1,b and Chengjun Zhang 1,c

FT245 USB Modual. - Ver FT245 Module Features

DESCRIPTION FEATURES. PT6321 Fluorescent Display Tube Controller Driver

Device: EDR B. This document Version: 1c. Date: 11 November Matches module version: v3 [25 Aug 2016]

Serial Communication. Simplex Half-Duplex Duplex

Interfacing Z8 Encore! XP MCUs with an I 2 C-Based Character LCD

Sitronix. 32 Gray Scale Dot Matrix LCD Controller/Driver 1. INTRODUCTION

LCD Module User Manual

Freescale Semiconductor Inc. Microcontroller Solutions Group. FRDM-KL46Z User s Manual FRDM-KL46Z-UM Rev. 1.0

Summer 2003 Lecture 21 07/15/03

Getting the O in I/O to work on a typical microcontroller

ED1021 I/O Expander with UART interface & analog inputs

Part 1 Using Serial EEPROMs

The ST7636 is a driver & controller LSI for 65K color graphic dot-matrix liquid crystal display systems. It generates 396

Application Note, V1.0, Jul AP XC16x. Interfacing the XC16x Microcontroller to a Serial SPI EEPROM. Microcontrollers

Smart cards are made of plastic, usually polyvinyl chloride. The card may embed a hologram to prevent counterfeiting. Smart cards provide strong

Card Reader Board EB037-00

Emulating Dual SPI Using FlexIO

AT90SO72 Summary Datasheet

Features. General Description. Kit Contents. MAX32660 EV Kit Photo

SSD1328. Advance Information. 128 x 128, 16 Gray Scale Dot Matrix OLED/PLED Segment/Common Driver with Controller

SSD1327. Advance Information. 128 x 128, 16 Gray Scale Dot Matrix OLED/PLED Segment/Common Driver with Controller

RTC Interface 89C51 DS M. Krishna Kumar MAM/M7/LU17/V1/ Vcc VCC 5 SDA P1.0 6 SCL P KHz 3 BAT 3.

APPLICATION NOTE 26 DS89C430/DS89C450 Ultra High-Speed Flash Microcontroller Memory Interface Timing

AZ DISPLAYS, INC. SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY DATE: July 1, Page 1 of 13

MICROPROCESSOR B.Tech. th ECE

LCD MODULE SPECIFICATION

CSE 466 Exam 1 Winter, 2010

How to create your own peripheral modules for use with the ARC EMSK and embarc

SSD1309. Advance Information. 128 x 64 Dot Matrix OLED/PLED Segment/Common Driver with Controller

Product Technical Brief S3C2413 Rev 2.2, Apr. 2006

Programming in the MAXQ environment

SSD1329. Advance Information. 128 x 128 OLED Segment / Common Driver with Controller Equips with 16 Gray Scale Levels and 64 Hard Icon Lines

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

I2C and SPI Foundation

JE-AN ELECTRONICS CO.,LTD. Spec. No: WG240128A

SSD1305. Advance Information. 132 x 64 Dot Matrix OLED/PLED Segment/Common Driver with Controller

1.5" & 2.1" Monochrome 128x64 OLED Display Module

PIC18F452 Oven Calibrator Using the MAX6674/MAX6675 Thermocouple-to-Digital Converter. Group: SMOKE Duston Cline Adam McCorkle

Transcription:

GRAPHICS LCD INTERFACING WITH 8051 It may require some graphics image to be displayed in 8051 based products through a monochrome bitmap LCD. This is considered to be a complex task because of its bus interfacing and several command sequence handling. This article explains how a graphics LCD from TIANMA can be connected to a 8051 microcontroller and pixels can be displayed on it with simple steps. Theory Consider interfacing the TIANMA TM12864J1CCWGWA LCD 128x64 pixels module based on the Sitronix ST7567 lcd controller with NXP s P89V664 8051 micro-controller. The LCD module provides SPI interface to host(microcontroller) communication. We can use GPIO pins of micro-controller to interface with LCD module instead of SPI pins of micro-controller for convenience. We may need to bitbang the data through gpio lines to get the SPI communication over gpio. LCD Interfacing

Description The LCD module has a internal memory and a control circuitary, to map the pixel information from the internal memory to LCD display. The internal memory and control circuitary can be accessed by the micro-controller through the SPI bus. The communication to LCD module from the micro-controller are classified as two type of transaction modes as described below. Control Mode This supports sending commands to intialize and configure the LCD parameters. Data Mode This supports sending the pixel information to be displayed in the LCD Control Commands The LCD module need to be configured and initialized with a set of commands by the micro-controller. These commands has to be sent to the LCD module one by one in sequence. The sequence can be found in the data sheet of LCD module. The mandatory control commands to initialize the LCD are listed below. START_LINE to set the start line of the display INVERSE to inverse 1 s to 0 s and 0 s to 1 s pixel buffer

COM to change the pixel orientation from left to right or right to left SEG to change the pixel orientation from top to bottom or bottom to top PWR_CTRL to enable internal power controllers RR & EV to set the display brightness DISP_ON to enable display Pixel Data The pixel data should be sent through the bus by choosing the data mode. Before sending a pixel data, we may need to select the exact page and the column where to display the data sent. LCD pixels are organized, such a way that 8 rows are combined as a page, thus forming 8 pages as the LCD supports 64 rows. A 8 bit pixel data sent to LCD module would be displayed in single vertical column, as one pixel in each row of the selected page. The page mapping and byte mapping information can be understood from the below diagrams. Page Mapping

Byte to Pixel mapping The commands to select the page and column are shown below PAGE_SEL to select one out of 8 pages COL_SEL_L/H to select one out of 128 columns The steps to communicate with the LCD module are described below. Sequence to intialize a graphics LCD Reset the LCD controller Intialize the power control registers Choose the page, column and orientations Switch the display on Sequence to write command to a LCD Assert chip select Deassert the A0 line to choose command mode Write command through gpio line

Deassert the chip select Sequence to write data to a LCD Assert chip select Assert the A0 line to choose data mode Write data through the gpio line Deassert the chip select Sequence to write pixel data to LCD Assert chip select Select page with page selection command Select the columm with column selection command Write the data through the bus Deassert the chip select To have complete display manipulation a buffer has to be maintained in software, if the micro-controller can support a memory of 1 Kile Byte for LCD code, then this can be achieved. Hardware It requires five gpio pins to be connected to the LCD module from the microcontroller.

CS Chip select/enable to the LCD module CLK clock line to the LCD module DATA data line to the LCD module A0 control line to choose between command and data mode RST To reset the micro-controller We have shown a connection interface in the below diagram. LCD Hardware Circuit +---------+ +---------+ P2.3+-------+ CS P4.0+-------+ CLK 8051 LCD P4.1+-------+ Data P2.2+-------+ A0 P2.1+-------+ RST +---------+ +---------+ Source: http://www.zilogic.com/blog/gfx-lcd-8051.html