EE 316 Computer Engineering Junior Lab Serial Ports, LCD Displays & PROMs.

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

Microprocessors Typical microprocessor controlled devices: Camera, mobile phone, stereo, mp3 player, electronic toys… High-level microprocessor controlled.
EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
I/O Interfaces.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Bits and Bytes + Controlling 8 LED with 3 Pins Binary Counting and Shift Registers.
Serial I/O - Programmable Communication Interface
Hierarchy of I/O Control Devices
EE 316 Computer Engineering Junior Lab Word Mastermind.
EE 316 Computer Engineering Junior Lab PS/2 Keyboard.
Spring EE 316 Computer Engineering Junior Lab LCD modules.
Spring EE 316 Computer Engineering Junior Lab Serial Ports.
Spring EE 316 Computer Engineering Junior Lab LCD modules, PROMs, Serial Ports.
COMP3221: Microprocessors and Embedded Systems
18 Nov 2003Ryan Kittredge Digital Communications Ryan Kittredge Technical Topic Report 19 November 2003.
EE 316 Computer Engineering Junior Lab Digital Hangman.
Input/Output and Communication
Interface circuits I/O interface consists of the circuitry required to connect an I/O device to a computer bus. Side of the interface which connects to.
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.
Unit-5 CO-MPI autonomous
Counters and Registers
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
INPUT-OUTPUT ORGANIZATION
Embedded Systems Design
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
Overview What kind of LCD Interfacing the LCD Displaying Text and Numbers Common Issues.
Serial Communication ETEC 6416.
Transmission Modes Serial Transmission  One bit is transmitted on a circuit at a time  Usually there is one transmit circuit and one receive circuit.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
Serial Communication Lab 12 Module M21.1. Asynchronous Serial I/O ASCII code 54H = (“T”) sent with odd parity.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
Serial Port I/O Serial port sends and receives data one bit at a time. Serial communication devices are divided into: Data Communications Equipment (DCE),
UART and UART Driver B. Ramamurthy.
1 SERIAL PORT INTERFACE FOR MICROCONTROLLER EMBEDDED INTO INTEGRATED POWER METER Mr. Borisav Jovanović, Prof.dr Predrag Petković, Prof.dr. Milunka Damnjanović,
Lecture Set 9 MCS-51 Serial Port.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire conductors)
EE 316 Computer Engineering Junior Lab Project 1: Traffic Light Controller.
CS-280 Dr. Mark L. Hornick 1 Programming for the LCD Display.
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Universal Asynchronous Receiver/Transmitter (UART)
Concepts of Engineering and Technology Copyright © Texas Education Agency, All rights reserved.
The Computer System.
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 45 – Modems.
Department of Electronic & Electrical Engineering LCD character display (parallel interface). How to interface a LCD character display to a PIC.
Chapter Microcontroller
REGISTER TRANSFER LANGUAGE (RTL) INTRODUCTION TO REGISTER Registers1.
Serial Communication RS-232. In order to make two devices communicate, whether they are desktop computers, microcontrollers, or any other form of integrated.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
8251 USART.
LED AND KEYBOARD INTERFACING PREPARED BY :- PREPARED BY :- RAVAL AKASH ( ) RAVAL AKASH ( ) PATEL HARDIK ( ) PATEL HARDIK.
BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP.
Modem. Introduction: A modem [Modulator -Demodulator] is a device. Data communication means transmitting digital information form one computer to other.
CEng3361 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2011 Recitation 06.
Serial mode of data transfer
REGISTER TRANSFER LANGUAGE (RTL)
Input/Output and Communication
Serial I/O and Data Communication.
SERIAL PORT PROGRAMMING
Hardware Source: ttp:// under
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
UART and UART Driver B. Ramamurthy.
E3165 DIGITAL ELECTRONIC SYSTEM
UART and UART Driver B. Ramamurthy.
Serial Communication Interface
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Presentation transcript:

EE 316 Computer Engineering Junior Lab Serial Ports, LCD Displays & PROMs

Topics PC Serial Ports Liquid Crystal Display Modules

PC's Serial Ports ● PC's Serial port (RS-232c interface) is also known as the communication (COM)port. ● The serial port transmits a byte of data by sending 8 bits separately. It adds a start bit, a stop bit and if desired, a parity bit. ● COM ports are bi-directional. Serial ports use a special controller chip known as the Universal Asynchronous Receiver/Transmitter (UART), to function correctly. ● Used to connect to Modems, some printers and digital cameras. Ref:

PC's Serial Port, contd. ● Serial cables can be longer than parallel cables. ● The RS-232c data uses -3 to -12 V to represent a 1 (called Mark) and +3 to +12 to represent a Logical '0' (called Space). ● Serial data must be converted to TTL/CMOS level for digital circuits.

PC's Serial Port, contd. ● One can use the RS-232 drivers and recievers to transform the RS-232 level to TTL/CMOS level.

UARTs Universal Asynchronous Receiver/Transmitter ➔ To use the serial data in digital applications, we need to convert the TTL/CMOS serial data into parallel data using UARTs. ➔ Popular UARTs: 16550, & 8250 series ➔ We will use a CMOS based UART: HD Read the data sheet carefully before using. ➔ UARTs use a clock with is 16 times the baud rate of the serial port.

UART Timing & Control Issues

Interfacing a digital system with a PC (another digital system) PC and its UART and level converter MAXIM 233UART

DB9_Ribbon_Cable_Header

Liquid Crystal Display (LCD) modules Majority of the pixel-based alphanumeric LCD module uses the Hitachi HD44780 LCD controller chip. Makers are: Densitron, Epson, Hewlett Packard, Optrex, or Sharp. Most have 16, 20, 24, 32, or 40 characters by 1, 2, or 4 lines. The LCD module we will use has a single line of 20 characters. Each character is made of 5x7 dot matrix For more info: /

LCD Display To use these LCD module, you have follow the timing requirement very precisely. Pay attention to these times Important times

LCD Initialization Before you use the LCD, you need to initialize the LCD with a very precise sequence of instructions. Follow the intialization very accurately  Need to generate a sequence of 8-bit instructions with a minimum timing delay between two instructions  each instruction requires multiple steps raise the enable signal ‘E’, apply data or instruction, lower ‘E’, hold data or instruction  You may store these values in a PROM and apply to the LCD with correct times between two instructions.

LCD Initialization Contd. In this example at the end of the initialization the LCD is asked to return cursor to the home postion and clear previous display. The LCD is then readied for display data (DD) input. The ASCII code for capital “D” is then sent to the LCD module Initialization begins here Initialization ends here LCD is ready for Display data input ASCII 0x44 = D

ASCII code

PROM Read only memory  32K x 8 bits or 64K x 8 bits, etc.  Erasable with UV exposure (15-20 mins)  For 32K, 10 address Pins  8 data Pins  Pin named Vpp used for progrmming  Chip enable  Read enable

Power-On Reset In most sequential circuits (i.e., circuits that have FF, latch, or counters, memories), the initial state may not be known after the power is turned on. Use a RC circuit for the Reset or Clear the FFs. Choose the RC values for correct timing.

References