CS-280 Dr. Mark L. Hornick 1 Programming for the LCD Display.

Slides:



Advertisements
Similar presentations
Serial Communications Interface (SCI) Michael LennardZachary PetersBao Nguyen.
Advertisements

Review: Interrupts & Timers
The 8051 Microcontroller Chapter 5 SERIAL PORT OPERATION.
Hierarchy of I/O Control Devices
Other I/O LCD display Flash ROM Keyboard (PS/2) UART connectors.
Spring EE 316 Computer Engineering Junior Lab LCD modules, PROMs, Serial Ports.
Sensors Microcontroller (ATmega128) Amulet LCD Wireless Transceiver Laptop (LabVIEW GUI)
Input/Output and Communication
Dr. Hoganson CSIS HC11 Demo Program This is our first lab using the 68HC11 microcontroller. We will “talk” to the microcontroller from a PC, run.
ECE 371- Unit 11 Introduction to Serial I/O. TWO MAJOR CLASSES OF SERIAL DATA INTERFACES ASYNCHRONOUS SERIAL I/O - USES “FRAMING BITS” (START BIT AND.
The 8051 Microcontroller and Embedded Systems
Critical Design Review February 23 rd, 2010 Hassan Alabudib Kamal Sabi Peng Chen Marisol Lozano Roman Yirui Huang.
Parallax 4x20 LCD (part number 27979) with Arduino Duemilanove
Shell and Flashing Images Commands and upgrades. RS-232 Driver chip – ST3232C Driver chip is ST3232C Provides electrical interface between UART port and.
Digital Outputs LCD Display
CS-280 Dr. Mark L. Hornick 1 Parts of a GP Computer (Microcomputer) Contains separate Microprocessor chip Memory/Memory controller MB control chips Peripheral.
Serial Communication Lab 12 Module M21.1. Asynchronous Serial I/O ASCII code 54H = (“T”) sent with odd parity.
CS-280 Dr. Mark L. Hornick 1 ASCII table. 2 Displaying Numbers as Text Problem: display numerical values as text Consider the numerical value 0x5A held.
Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.
CS-280 Dr. Mark L. Hornick 1 Calling subroutines in assembly And using the Stack.
I/O Ports CS-280 Dr. Mark L. Hornick 1. CS-280 Dr. Mark L. Hornick 2 Ports are channels from the CPU to external hardware and software Atmega32 has: 4.
Lecture Set 9 MCS-51 Serial Port.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
Unit 4 Design and Synthesis of Datapath Controllers
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Embedded Stroke Evaluation System Amanda Sweeney, 4ECE Supervisor: Dr. Martin Glavin.
1 Copyright (c) 2003 by Valery Sklyarov and Iouliia Skliarova: DETUA, IEETA, Aveiro University, Portugal.
Serial Communications
Serial Communication Lec note 9.
LCD Interfacing.
Text-Mode Programming Question #1 What are the three levels of access to the video display when writing characters on the screen in text mode?
Example. SBUF Register SCON Register(1) SCON Register(2)
SE-1021 Software Engineering II Week 8, Class 1 Return Exam Producing UML diagrams automatically in EA Poll Everywhere Files Tomorrow Week 6 HW due (if.
NS Training Hardware. Serial Controller - UART.
EE 316 Computer Engineering Junior Lab Serial Ports, LCD Displays & PROMs.
Universal Asynchronous Receiver/Transmitter (UART)
INTERFACING THE ADS1210 CONVERTER WITH AN ATmega8535 MICROCONTROLLER Author: Eng. Magnelli Luca.
Embedded Systems 7763B Mt Druitt College of TAFE Electrical Engineering Lesson 2 LCD Display Interfacing.
Chapter 10 Glass Bliss Using the Parallel Master Port to communicate with Alphanumeric LCD displays.
A cost efficient solution for TFT systems with low end CPU.
Programming Microcontrollers in C Lecture L7.1. C Data Types TypeSizeRange char1 byte-128 – 127 unsigned char1 byte0 – 255 Int2 bytes – unsigned.
Department of Electronic & Electrical Engineering LCD character display (parallel interface). How to interface a LCD character display to a PIC.
WWU Taylor Reijm. LPC bit MCU 512kB Flash Memory 144-pin 20MHz oscillator Used to control TFT touch screen LCD and LCD controller. 1 GPIO used.
Example 1 Program the divisor Latch for 300 baud. Assume Xin=1.8432MHz The Base Address: 0x3F8 0RX_TX / Divisor.low 1IER: Interrupt Enable Reg. / Divisor.high.
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
Chapter 3. Advanced Hardware Fundamentals The various parts you will commonly find in an embedded-system circuit 발표일시 : 발표자 : 채화영.
Modular Swimming Pace Aid ECE 445 Group Members: Igor Fedorov, Ryan Cook, Michael Chan Professor Carney (TA Ryan May)
Lecture 15. Modem Controller Register 4310 DTR 0 = Polling Operator 1 = Interrupts Enabled RTS 1 =Self Test 0 =Normal.
Using a SparkFun™ serial LCD with an Arduino
The HCS12 SCI Subsystem A HCS12 device may have one or two serial communication interface. These two SCI interfaces are referred to as SCI0 and SCI1. The.
Serial I/O Port.
INT. TO EMBEDDED SYSTEMS DEVELOPMENT
LCD Interfacing using Atmega 32
Atmega32 Architectural Overview
Source: Serial Port Source:
Input/Output and Communication
UNIVERSAL COLLEGE OF ENGINEERING & TECHNOLOGY
SERIAL PORT PROGRAMMING
Serial Communication: RS-232 (IEEE Standard)
Schedule 8:00-11:00 Workshop: Arduino Fundamentals
Source: Serial Port Source:
UART Serial Port Programming
Serial Communication Interface: Using 8251
8251A UNIVERSAL SYNCHRONOUS ASYNCHRONOUS RECEIVER TRANSMITTER
Serial Communication Interface
NS Training Hardware.
8051 Micro Controller.
Source: Serial Port Source:
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Source: Serial Port Source:
Presentation transcript:

CS-280 Dr. Mark L. Hornick 1 Programming for the LCD Display

CS-280 Dr. Mark L. Hornick 2 The LCD display unit has its own built-in microcontroller Contains its own UART serial comm 3 wires: +5v, GND, and RXD (no TXD – does not transmit!) Fixed comm parameters: 9600 baud, 8 data bits, no parity, 1 stop bit Contains a character generator creates the “bitmaps” for the characters to display controls the pixels of the physical display can display 2 lines of 16 characters

CS-280 Dr. Mark L. Hornick 3 The LCD microcontroller needs 20ms to “boot” The Atmega32 starts executing instructions much sooner than that, so you must make sure to wait at least 20ms before sending characters to the LCD Upon “boot”, the LCD displays a blinking cursor at cursor position 0.

CS-280 Dr. Mark L. Hornick 4 The LCD display can display the ASCII characters 32 (0x20) to 127 (0x7F), except 92 (\)and 126(~) When you send a byte representing the value 0x30, the ‘0’ character is displayed on the LCD. The cursor is automatically advanced to the next character display position. So what happens when you send the LCD the values 0 through 31?

CS-280 Dr. Mark L. Hornick 5 The ASCII characters 0 to 31 (0x1F) are control characters that When you send a byte representing the value 0x08, the cursor is moved left. Sending 0x09 moves it to the right. Sending 0x0A moves the cursor down. 0x0C clears the screen; this is a reset that takes 5ms to process. 0x0D moves the cursor to the beginning of the next line. 0x12 turns the backlight off; 0x16-0x19 activate different cursor displays.

CS-280 Dr. Mark L. Hornick 6

CS-280 Dr. Mark L. Hornick 7