The modules in this lab room are 4 line by 16 character display modules. The data sheet/users manual for the module is posted on My.Seneca.
|
|
- Ralf Harper
- 5 years ago
- Views:
Transcription
1 LCD Modules A common output display device used with low cost embedded systems is a character LCD display. The displays are available as complete modules with a standard microprocessor parallel interface. These displays come in sizes of 1 4 lines and 8 40 characters per line. The characters are displayed using a 5x7 dot matrix format. The modules in this lab room are 4 line by 16 character display modules. The data sheet/users manual for the module is posted on My.Seneca. LCD Module Features 4 line by 16 characters 5x7 or 5x10 dot matrix characters 4 or 8 bit parallel interface 80 character display memory 160 character ROM generator for 5x7 dot characters 32 character ROM generator for 5x10 dot characters 8 character RAM generator for 5x7 dot characters LCD Module interface D[7..0] RS R/W E CONTRAST_ADJ BACKLITE data bus register select read/write device select active HIGH LCD Registers RS R/W Description 1 1 Read data 1 0 Write data 0 1 Read status 0 0 Write instruction Interface Timing Item Symbol Min Typ Max Unit E Cycle Time tc ns E Rise/Fall Time t R, t F E Pulse Width (High, Low) t W R/W and RS Setup Time t su R/W and RS Hold Time t H Data Setup Time t su Data Hold Time t H G VandeBelt
2 Write Timing RS th1 tsu1 R/W tw th1 tf E tf tsu2 th2 DB0-DB7 Valid Data tc Item Symbol Min Typ Max Unit Data Setup Time t su ns Data Hold Time t H ns Read Timing RS tsu th R/W tw th tf E tf td tdh DB0-DB7 Valid Data tc Item Symbol Min Typ Max Unit Data Output Delay Time t D ns Data Hold Time t DH ns G VandeBelt
3 Character addressing The two digit hex number in the is the memory address in the LCD module which contains the character to be display at the line column location. Module Instructions Display Mode Cursor control Clear display Cursor addressing Character RAM addressing See next page for list of instructions Module Reset The module is normally reset on power on. However if the power up time is slow, the module may not reset properly and so a special sequence is required to ensure the module is reset and configured to the correct operating mode. This is important since the data bus can be configured for 4 or 8 bit wide operation. The diagram on page 5 describes the power on reset procedure for 8 bit operation. Write Operation All instructions require a specified length of time to complete as listed in the following chart. No new instructions can be issued while the module is processing an instruction. During this time the BF flag will be set. There are two methods which can be used to ensure that the previous instruction is completed before issuing another instruction: 1) test the BF bit and wait until cleared 2) wait for the required interval. G VandeBelt
4 Instruction Set Instruction Instruction Code Description Execution Time (fosc= 270kHz) RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Clear Write 20H to DDRAM, and set 1.53ms Display DDRAM address to 00H from AC. Return X Set DDRAM address to 00H from AC 1.53ms Home and return cursor to its original position if shifted. The contents of DDRAM are not changed. Entry Mode I/D S Assign cursor moving direction. 39us Set I/D= 1 : increment, I/D= 0 : decrement and display shift enable bit. S= 1 : make entire display shift of all lines during DDRAM write. S= 0 : display shift disable Display ON/OFF Control D C B Set display/cursor/blink on/off D= 1 : display on, D= 0 : display off, C= 1 : cursor on, C= 0 : cursor off, B= 1 : blink on, B= 0 : blink off. 39us Cursor or Display Shift S/C R/L X X Cursor or display shift, S/C= 1 : display shift, S/C= 0 : cursor shift, R/L= 1 : shift to right, R/L= 0 : shift to left. 39us Function Set DL N F X X Set interface data length DL= 1 : 8-bit DL= 0 : 4-bit N= 1 : 2-line display N= 0 : 1-line.display F= 0 5*7-dot F= 1 5*10-dot 39us Set CGRAM Address AC5 AC4 AC3 AC2 AC1 AC0 Set CGRAM address in address counter 39us Set DDRAM Address AC6 AC5 AC4 AC3 AC2 AC1 AC0 Set DDRAM address in address counter 39us Read Busy Flag and Address 0 1 BF AC6 AC5 AC4 AC3 AC2 AC1 AC0 Can be known whether during internal operation or not by reading BF. The contents of address counter can also be read. BF= 1 : busy state, BF= 0 : ready state. Write Data 1 0 D7 D6 D5 D4 D3 D2 D1 D0 Write data into internal RAM (DDRAM/CGRAM). Read Data 1 1 D7 D6 D5 D4 D3 D2 D1 D0 Read data from internal RAM (DDRAM/CGRAM) 0us 43us 43us G VandeBelt
5 LCD Initialization sequence G VandeBelt
6 Lab Configuration The lab hardware has the module data bus connected to PORT B and the three control lines driven from PORT K. Signal Port Pin Comments D0 D7 PORT B 0-7 Shared with LEDs E PORT K.0 R/W PORT K.1 RS PORT K.2 Note that PORT B also drives the LEDs. As a result, if the LEDs are used in the code you can not read from the module. When writing to the module, the data for the LEDs must be saved before the LCD write and restored after the write is complete. If your code requires read access to the LCD module, the LEDs must be disabled. In the lab we will not use read operations. Since the BF flag can not be tested, we will time the access to the module. LCD Driver Design To simplify use of the LCD module we will design a driver which will provide a simple interface between the LCD and the application software. The application interface will consist of four functions: 1) module initialization LCDopen() 2) write a data character LCDputch() 3) write string LCDputs() 4) write an instruction. LCDinstruct() Data is written to the output as ASCII characters. The LCD driver is interrupt driven. Timer Channel 6 is used in Output Compare mode. A single character or instruction is written to the module on every interrupt. After command, the timer is set to interrupt after the time required for the command to be processed. When all information has been output to the LCD, the timer interrupt is disabled. When the application writes to the LCD driver, the output function stores the write data in a FIFO (First in/first out queue) and enables the Timer interrupt. When the timer interrupt occurs, the FIFO is checked for data. If it is empty, the timer interrupt is disabled. If the FIFO is not empty, the next data in the FIFO is written to the LCD module and the timer is set to interrupt after the time required for the command to be processed. To handle instructions (clear, cursor position, etc), an escape sequence is used. All instructions are preceded by an special escape character. In the interrupt routine, the software checks for this character. If found, the character is discarded and the next character in the FIFO is treated as an instruction instead of data. G VandeBelt
7 Initialization Function static void initcmd(unsigned char cmd, unsigned int delay); LCDopen Initialize the LCD display following a power on reset. The algorithm is taken from the OPTREX User's Manual. void LCDopen(void) set up Port K for LCD controls set direction to output DDRK_DDK0 = 1; DDRK_DDK1 = 1; DDRK_DDK2 = 1; default output data LcdRnW = 0; LcdRS = 0; LcdEN = 0; default to write default to instruction EN low LCDput = LCDbuf; LCDtake = LCDbuf; FIFO pointers set up Timer channel 6 for compare mode TIOS = 0x40; /* select Timer 6 for output compare */ TCTL1 &= ~0x30; /* timer 6 disconnected from PORT T pin6 */ implement the algorithm 1) ensure 15 ms delay after power-on TC6 = TCNT + DLY15ms; TFLG1 = 0x40; /* clear interrupt flag for C6 by writing a 1 */ 2) function set command: 4.1 ms delay - use 5 ms initcmd(lcdcfg, DLY5ms); 3) function set command: 100 us delay initcmd(lcdcfg, DLY100us); 4) function set command: 80 us delay initcmd(lcdcfg, DLY80us); LCD reset complete - now configure the LCD interface width initcmd(lcdcfg, DLY80us); we can now use the normal LCD commands to complete the configuration LCDinstruct(LCDcfg); the real function set LCDinstruct(LCDdsplyOFF); display OFF LCDclear(); clear display LCDinstruct(LCDmode); set mode LCDinstruct(LCDcursorON); display ON - cursor ON G VandeBelt
8 Instruction write to LCD module during initialization cmd : instruction to write delay : instruction processing time static void initcmd(unsigned char cmd, unsigned int delay) unsigned char PORTdata; while (!(TFLG1&0x40)) ; wait for previous command to complete PORTdata = PORTB; PORTB = cmd; LcdEN = 1; LcdEN = 0; TC6 = TCNT + delay; TFLG1 = 0x40; PORTB = PORTdata; save LED status - Port B shared with LEDs output the command EN set HIGH EN is now LOW set the instruction execution time clear time-out flag restore LED status Useful Defines contained in LCD.H #define LCDdsplyOFF 0x08 display OFF command #define LCDdsplyON 0x0C display ON, cursor OFF #define LCDcursorOFF 0x0C display ON, cursor OFF #define LCDcursorON 0x0E display ON, cursor ON #define LCDblink 0x0F display ON, cursor blink #define LCDshiftR 0x14 shift cursor right #define LCDshiftL 0x10 shift cursor left #define LCDputch(x) LCDputByte(x, 0) write data character #define LCDinstruct(x) LCDputByte(x, 1) write instruction #define LCDclear() LCDputByte(0x01, 1) clear display #define LCDhome() LCDputByte(0x02, 1) move cursor to home position #define LCDline1() LCDputByte(0x80, 1) move cursor to start of line 1 #define LCDline2() LCDputByte(0xC0, 1) move cursor to start of line 2 #define LCDline3() LCDputByte(0x90, 1) move cursor to start of line 3 #define LCDline4() LCDputByte(0xD0, 1) move cursor to start of line 4 LCD Memory #define LCDsize 128 unsigned char *LCDput; FIFO write pointer unsigned char *LCDtake; FIFO read pointer unsigned char LCDbuf[LCDsize]; the FIFO #define LCDend (LCDbuf+LCDsize-1) FIFO wrap address G VandeBelt
9 User Commands LCDputByte This function sends a byte to the LCD. The "type" defines the data as instruction or display character Procedure: 1) if type is non-zero, insert 0xFE into FIFO to signal instruction 2) insert data into FIFO 3) advance FIFO pointer 4) enable Timer interrupt void LCDputByte(unsigned char data, unsigned char type) unsigned char *ptr; write FIFO pointer ptr = LCDput; working copy of FIFO pointer if (type) instruction for LCD display *ptr = 0xFE; flag instruction if (ptr == LCDend) ptr = LCDbuf; queue wrap else ptr++; if (ptr == LCDtake) return; FIFO is full - discard data *ptr = data; send data if (ptr == LCDend) ptr = LCDbuf; queue wrap else ptr++; if (ptr == LCDtake) return; FIFO is full - discard data LCDput = ptr; update FIFO pointer TIE = 0x40; ensure interrupts are enabled LCDputs This function outputs a NULL terminated string to the LCD display. The function does NOT handle line wrapping. void LCDputs(const char *s) for ( ;*s!= 0; s++) LCDputch(*s); G VandeBelt
10 Interrupt Routine /* Timer interrupt routine for LCD. */ interrupt void LCDisr(void) unsigned char data; unsigned char PORTdata; temporary storage for LED status first check for more data to display if (LCDtake == LCDput) FIFO is empty disable interrupts but DON'T clear the flag TIE &= ~0x40; LCD inactive return; data = *LCDtake; get data if (data == 0xFE) this is an instruction if (LCDtake == LCDend) LCDtake = LCDbuf; handle wrapping else LCDtake++; data =*LCDtake; get instruction LcdRS = 0; else LcdRS = 1; data address PORTdata = PORTB; PORTB = data; LcdEN = 1; LcdEN = 0; PORTB = PORTdata; save LED status output the byte EN set HIGH EN is now LOW restore LED status start the delay timer if ((LcdRS == 0) && (data < 4)) CLEAR or HOME instruction TC6 = TCNT + DLY3ms; else TC6 = TCNT + DLY80us; TFLG1 = 0x40; clear interrupt flag if (LCDtake == LCDend) LCDtake = LCDbuf; handle wrapping else LCDtake++; G VandeBelt
11 Example /* Sample code to demonstrate the use of the LCD driver. The program reads the DIP switches on PORT H and writes information to the LCD module. Switch Pattern OFF OFF OFF OFF OFF OFF OFF OFF : clear screen OFF OFF OFF OFF OFF OFF OFF ON : Write to line 1 OFF OFF OFF OFF OFF OFF ON OFF : Write to line 2 OFF OFF OFF OFF OFF OFF ON ON : Write to line 3 OFF OFF OFF OFF OFF ON OFF OFF : Write to line 4 All other patterns have no effect */ #include <hidef.h> /* common defines and macros */ #include < mc9s12dp256.h > /* derivative information */ #include "lcd.h" header file containing defines & prototypes void main(void) unsigned char code, prev; unsigned int x; DDRB = 0xFF; PORTB = 0xFF; DDRH=0x00; PERH=0xFF; PORTB is output for LEDs and LCD data PORTH as input add pull up resistors to PORTH Timer system used by LCD and others - 1 us resolution TSCR2 = 0x03; prescale by 8-1 MHz clock TSCR1 = 0x80; enable timer LCDopen(); initialize the LCD driver EnableInterrupts; prev = 0xFF; while(1) /* do forever */ code = ~PTH; get switch pattern if (code!= prev) check for switch change if (code == 0x00) check for all OFF LCDclear(); else if (code ==0x01) identify other patterns LCDhome(); move to line 1 and display LCDputs("Line 1"); else if (code ==0x02) LCDline2(); move to line 2 and display LCDputs("Second line"); else if (code ==0x03) LCDline3(); move to line 3 and display LCDputs("Third line"); else if (code ==0x04) LCDline4(); move to line 4 and display LCDputs("Last line"); prev = code; while ((TFLG2 & 0x80) == 0) ; delay to slow down operation TFLG2 = 0x80; clear timer overflow flag G VandeBelt
Item Symbol Standard Unit Power voltage VDD-VSS Input voltage VIN VSS - VDD
SPECIFICATIONS OF LCD MODULE Features 1. 5x8 dots with cursor 2. Built-in controller (S6A0069 or equivalent) 3. Easy interface with 4-bit or 8-bit MPU 4. +5V power supply (also available for =3.0V) 5.
More information16COM/40SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
6COM/4SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD INTRODUCTION is a dot matrix LCD driver & controller LSI which is fabricated by low power CMOS technology It can display, 2-line with 5 x 8 or 5 x dots
More information中显液晶 技术资料 中显控制器使用说明书 2009年3月15日 北京市海淀区中关村大街32号和盛大厦811室 电话 86 010 52926620 传真 86 010 52926621 企业网站.zxlcd.com
http://wwwzxlcdcom 4 SEG / 6 COM DRIVER & CONTROLLER FOR DOT MATRIX LCD June 2 Ver Contents in this document are subject to change without notice No part of this document may be reproduced or transmitted
More information16COM / 40SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
INTRODUCTION KS0066U is a dot matrix LCD driver & controller LSI whichis fabricated by low power CMOS technology It can display 1or 2 lines with the 5 8 dots format or 1 line with the 5 11 dots format
More informationECE 4510/5530 Microcontroller Applications Week 9
ECE 45/553 Microcontroller Applications Week 9 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences Lab 7 & 8 Elements
More information16COM/80SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
6COM/80SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD INTRODUCTION The is a dot matrix LCD driver & controller LSI which is fabricated by low power CMOS technology It is capable of displaying or 2 lines with
More informationLCM NHD-0440CI-YTBL. User s Guide. (Liquid Crystal Display Module) RoHS Compliant. For product support, contact NHD CI- Y- T- B- L-
User s Guide NHD-0440CI-YTBL LCM (Liquid Crystal Display Module) RoHS Compliant NHD- 0440- CI- Y- T- B- L- Newhaven Display 4 Lines x 40 Characters C: Display Series/Model I: Factory line STN Yellow/Green
More information16COM / 80SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
INTRODUCTION KS0070B is a dot matrix LCD driver & controller LSI which is fabricated by low power CMOS technology. It is capable of displaying 1 or 2 lines with the 5 7 format or 1 line with the 5 10 dots
More informationLCM NHD-0440AZ-FSW -FBW. User s Guide. (Liquid Crystal Display Character Module) RoHS Compliant FEATURES
User s Guide NHD-0440AZ-FSW -FBW LCM (Liquid Crystal Display Character Module) RoHS Compliant FEATURES Display format: 4 Lines x 40 Characters (A) Display Series/Model (Z) Factory line (F) Polarizer =
More informationLCDs. Embedded Systems Interfacing. 20 September 2011
20 September 2011 How Polarizers Work How work How Color Work Other Technologies Reflective Nematic (no back light) Cholesteric Liquid Crystal Organic LED/Polymer LED Vacuum Florescent Display Display
More informationUSER S GUIDE ATM4004A
USER S GUIDE ATM4004A Liquid Crystal Display Module CONTENTS 1.0 Mechanical Diagram. 3 2.0 Absolute Maximum Ratings 4 3.0 Description of Terminals. 4 4.0 Optical Characteristics 5 5.0 Electrical Characteristics
More informationLab Experiment 9: LCD Display
Lab Experiment 9: LCD Display 1 Introduction Liquid Crystal Displays (LCDs) provide an effective way for processors to communicate with the outside world. The LPC2148 board used in the lab is equipped
More informationLCD. Configuration and Programming
LCD Configuration and Programming Interfacing and Programming with Input/Output Device: LCD LCD (liquid crystal display) is specifically manufactured to be used with microcontrollers, which means that
More informationSPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY
SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY PART NUMBER: MGD1602A-FL-YBW DATE: MAY 26,2005 1.0 MECHANICAL SPECS MGD1602A SERIES LCD MODULE 1. Overall Module Size 80.0mm(W) x 36.0mm(H) x max 14.0mm(D) for
More informationMCO556 Practice Test 2
Question 1 : MCO556 For the program shell on the following page, fill in the blanks and add the code required to create a program which flashes LEDs. The LED flashing must be controlled from the keypad
More informationAZ DISPLAYS, INC. COMPLETE LCD SOLUTIONS SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY
AZ DISPLAYS, INC. COMPLETE LCD SOLUTIONS SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY PART NUMBER: ACM 4002E SERIES DATE: October 8, 2002 1.0 MECHANICAL SPECS ACM4002E SERIES LCD MODULE 1. Overall Module
More informationAZ DISPLAYS, INC. COMPLETE LCD SOLUTIONS SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY
AZ DISPLAYS, INC. COMPLETE LCD SOLUTIONS SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY PART NUMBER: ACM 1602B SERIES DATE: August 9, 1999 1.0 MECHANICAL SPECS ACM1602B SERIES LCD MODULE 1. Overall Module Size
More informationDISPLAYTRONIC A DIVISION OF ZE XIAMEN SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY
DISPLAYTRONIC A DIVISION OF ZE XIAMEN SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY PART NUMBER: ACM 1602K SERIES DATE: August 9, 1999 1.0 MECHANICAL SPECS 1. Overall Module Size 80.0mm(W) x 36.0mm(H) x max
More informationParallel Display Specifications Revision 1.0
MOP-AL162A Parallel Display Specifications Revision 1.0 Revision History Revision Description Author 1.0 Initial Release Clark 0.2 Updates as per issue #333 Clark 0.1 Initial Draft Clark 1 Contents Revision
More informationSC162A VER2.1 CONTENT. 1. General description
CONTNT 1. General description --------------------------------------------------------------------------3 2. Maximum absolute limit---------------------------------------------------------------------3
More informationDragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) Dragon12 LCD Display. The Dragon12 board has a 16 character x 2 line display
Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) o Using the Dragon12 LCD display Dragon12 LCD Display The Dragon12 board has a 16 character x 2 line display Each character is a 5x7
More informationAZ DISPLAYS, INC. COMPLETE LCD SOLUTIONS SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY
AZ DISPLAYS, INC. COMPLETE LCD SOLUTIONS SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY PART NUMBER: ACM1602B (WHITE EDGELIGHT) SERIES DATE: APRIL 28, 2003 1.0 MECHANICAL SPECS 1. Overall Module Size 84.0mm(W)
More informationAN1745. Interfacing the HC705C8A to an LCD Module By Mark Glenewinkel Consumer Systems Group Austin, Texas. Introduction
Order this document by /D Interfacing the HC705C8A to an LCD Module By Mark Glenewinkel Consumer Systems Group Austin, Texas Introduction More and more applications are requiring liquid crystal displays
More informationJUL. 27, 2001 Version 1.0
S SPLC782A 6COM/8SEG Controller/Driver JUL. 27, 2 Version. SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLOGY CO. is
More information34COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
34COM/6SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD INTRODUCTION is a dot matrix LCD driver & controller LSI which is fabricated by low power CMOS technology It can display, 2 or 4 lines with 5 8 or 6 8
More informationUsing Input Capture on the 9S12
The 9S12 Input Capture Function Huang Sections 8.1-8.5 ECT_16B8C Block User Guide o Interrupts on the 9S12 o Capturing the time of an external event o The 9S12 Input Capture Function o Registers used to
More informationIntroduction to the MC9S12 Hardware Subsystems
Setting and clearing bits in C Using pointers in C o Program to count the number of negative numbers in an area of memory Introduction to the MC9S12 Hardware Subsystems o The MC9S12 timer subsystem Operators
More informationDragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) Dragon12 LCD Display. The Dragon12 board has a 16 character x 2 line display
Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) o Using the Dragon12 LCD display Dragon12 LCD Display The Dragon12 board has a 16 character x 2 line display Each character is a 5x7
More informationDragon12 LCD Displays Huang Sections 7.8 Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) ATD_10B8C Block User Guide. Dragon12 LCD Display
Dragon12 LCD Displays Huang Sections 7.8 Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) ATD_10B8C Block User Guide o Using the Dragon12 LCD display Dragon12 LCD Display The Dragon12 board has a 16 character
More informationCONTENT. 1. General description
CONTNT 1. General description --------------------------------------------------------------------------3 2. Maximum absolute limit---------------------------------------------------------------------3
More informationLecture (09) PIC16F84A LCD interface LCD. Dr. Ahmed M. ElShafee
Lecture (09) PIC16F84A LCD interface PIC16F84A LCD interface Assignment 01, 4 Zones fire controller board Assignment 02, automatic water tank controller Dr. Ahmed M. ElShafee ١ ٢ LCD LCD (Liquid Crystal
More informationEE 308 Spring A software delay. To enter a software delay, put in a nested loop, just like in assembly.
More on Programming the 9S12 in C Huang Sections 5.2 through 5.4 Introduction to the MC9S12 Hardware Subsystems Huang Sections 8.2-8.6 ECT_16B8C Block User Guide A summary of MC9S12 hardware subsystems
More informationLMB202DBC LCD Module User Manual
LMB202DBC LCD Module User Manual Shenzhen TOPWAY Technology Co., Ltd. Rev. Descriptions Release Date 0.1 Prelimiay release 2005-03-01 URL Document Name LMB202DBC-Manual-Rev0.1.doc Page 1 of 11 Table of
More informationThe MC9S12 Timer Output Compare Function Making an event happen at specific time on the HC12 The MC9S12 Output Compare Function
The MC9S12 Timer Output Compare Function Making an event happen at specific time on the HC12 The MC9S12 Output Compare Function o Registers used to enable the output compare function o Using the MC9S12
More informationCapturing the Time of an External Event Input Capture Subsystem
Capturing the Time of an External Event Input Capture Subsystem One way to determine the time of an external event is to wait for the event to occur, the read the TCNT register: For example, to determine
More informationSSD1803. Product Preview. 100 x 34 STN LCD Segment / Common Mono Driver with Controller
SOLOMON SYSTECH SEMICONDUCTOR TECHNICAL DATA Crystalfontz Thiscontrolerdatasheetwasdownloadedfrom htp:/www.crystalfontz.com/controlers/ SSD1803 Product Preview 100 x 34 STN LCD Segment / Common Mono Driver
More informationDot Matrix LCD Controller Driver
PF22-7 SED27F/D Dot Matrix LCD Controller Driver /, / or /6 Duty Dot Matrix Drive ROM 24 characters Built-in Character Generator ROM and RAM ( RAM characters ) Maximum Simultaneous Display of Characters
More informationLCD Module User Manual
LCD Module User Manual Customer : MASS PRODUCTION CODE DRAWING NO : TC1602D-02WA0 : m-tc1602d-02wa0_a00 Approved By Customer: Date: Approved By Checked By Prepared By Vatronix Holdings Limited ADD:5F,No10
More informationEE4390 Microprocessors
EE4390 Microprocessors Lessons 23, 24 - Exceptions - Resets and Interrupts Revised: Aug 1, 2003 1 - Exceptions - Resets and Interrupts Polling vs. Interrupts Exceptions: Resets and Interrupts 68HC12 Exceptions
More informationSpecification of Vacuum Fluorescent Display NORITAKE ITRON CORPORATION Sheet 1/19 DS25404
Specification of Vacuum Fluorescent Display NORITAKE ITRON CORPORATION Sheet 1/19 DS2544 Rev. Spec. No. Date(M-D-Y) Item No. P-R Aug-1-7 DS1625M 1 P-R1 Dec-1-7 2 P-R2 Dec-19-7 3 T-R Dec-26-7 4 T-R1 Jan-7-8
More information// sets the position of cursor in row and column
CODE: 1] // YES_LCD_SKETCH_10_14_12 #include //lcd(rs, E, D4, D5, D6, D7) LiquidCrystal lcd(8, 9, 4, 5, 6, 7); int numrows = 2; int numcols = 16; void setup() Serial.begin(9600); lcd.begin(numrows,
More informationThe MC9S12 Timer Input Capture Function
The MC9S12 Timer Input Capture Function o Capturing the time of an external event o The MC9S12 Input Capture Function o Registers used to enable the Input Capture Function o Using the MC9S12 Input Capture
More informationWhat happens when an HC12 gets in unmasked interrupt:
What happens when an HC12 gets in unmasked interrupt: 1. Completes current instruction 2. Clears instruction queue 3. Calculates return address 4. Stacks return address and contents of CPU registers 5.
More informationEE Embedded Systems Design. Lessons Exceptions - Resets and Interrupts
EE4800-03 Embedded Systems Design Lessons 7-10 - Exceptions - Resets and Interrupts 1 - Exceptions - Resets and Interrupts Polling vs. Interrupts Exceptions: Resets and Interrupts 68HC12 Exceptions Resets
More informationThe MC9S12 Input Capture Function
The MC9S12 Input Capture Function The MC9S12 allows you to capture the time an external event occurs on any of the eight Port T PTT pins An external event is either a rising edge or a falling edge To use
More informationNHD 0216KZW AB5. OLED Display Module
NHD0216KZWAB5 OLED Display Module NHD Newhaven Display 0216 2 lines x 16 characters KZW OLED A Model B Emitting Color: Blue 5 +5V power supply Newhaven Display International, Inc 2511 Technology Drive,
More informationLab Overview. Lab Details. ECEN 4613/5613 Embedded System Design Week #7 Spring 2005 Lab #4 2/23/2005
ECEN 4613/5613 Embedded System Design Week #7 Spring 2005 Lab #4 2/23/2005 Lab Overview In this lab assignment, you will do the following: Add a serial EEPROM and an LCD to the hardware developed in Labs
More informationEE 308 Spring Exam 1 Feb. 27
Exam 1 Feb. 27 You will be able to use all of the Motorola data manuals on the exam. No calculators will be allowed for the exam. Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed and
More informationLCD MODULE DEM TGH
DISPLAY Elektronik GmbH LCD MODULE DEM 16102 TGH Version : 1.1.0 26.09.2008 GENERAL SPECIFICATION MODULE NO. : DEM 16102 TGH VERSION NO. CHANGE DESCRIPTION DATE 0 ORIGINAL VERSION 12.03.2007 1.1.0 CHANGE
More informationNewhaven Display International, Inc Galvin Ct. Elgin IL, Ph: Fax:
NHD-0108HZ-FSW-GBW Character Liquid Crystal Display Module NHD- Newhaven Display 0108-1 Line x 8 Characters HZ- Model F- Transflective SW- Side White LED Backlight G- STN- Gray B- 6:00 Optimal View W-
More informationUser s Guide ATM1602B
User s Guide ATM1602B Liquid Crystal Display Module CONTENTS Mechanical Diagram. 2 Absolute Maximum Ratings 3 Description of Terminals... 3 Optical Characteristics 4 Electrical Characteristics 4 DC Characteristics.
More informationNewhaven Display International, Inc Galvin Ct. Elgin IL, Ph: Fax:
NHD-0220WH-MTGH-JT#E Character Liquid Crystal Display Module NHD- Newhaven Display 0220-2 Lines x 20 Characters WH- Display Type: Character M- Model T- White LED Backlight G- STN- Gray H- Transflective,
More informationCOG (Chip-on-Glass) Liquid Crystal Display Module
NHD-C0220AZ-FSW-FTW COG (Chip-on-Glass) Liquid Crystal Display Module NHD- Newhaven Display C0220- COG, 2 Lines x 20 Characters AZ- Model F- Transflective SW- Side White LED Backlight F- FSTN Positive
More informationLINPO TECHNOLOGY LTD SPECIFICATIONS OF LCD MODULE
LINPO TECHNOLOGY LTD SPECIFICATIONS OF LCD MODULE PART NUMBER TECH1602B SERIES DATE JULY 28, 1998 CONTENTS Mechanical Diagram 2 Absolute Maximum Ratings 3 Description of Terminals 3 Optical Characteristics
More informationRW1062 INTRODUCTION FUNCTIONS FEATURES. Crystalfontz. Thiscontrolerdatasheetwasdownloadedfrom htp:/www.crystalfontz.
Crystalfontz Thiscontrolerdatasheetwasdownloadedfrom htp:/www.crystalfontz.com/controlers/ RW1062 INTRODUCTION RW1062 is a LCD driver & controller LSI which is fabricated by low power CMOS technology.
More informationNewhaven Display International, Inc Galvin Ct. Elgin IL, Ph: Fax:
NHD0216SZWBY5 OLED Display Module NHD Newhaven Display 0216 2 Lines x 16 Characters SZW OLED B Model Y Emitting Color: Yellow 5 +5V Power Supply Newhaven Display International, Inc 2661 Galvin Ct Elgin
More informationLCD Module User Manual
LCD Module User Manual Customer : Ordering Code : GC1602D-01XA0 DRAWING NO : m- Approved By Customer: Date: Approved By Checked By Prepared By GEMINI Technology Co, Ltd ADD: RM1521 Investel, 1123-2 Sanbon-Dong,
More informationNewhaven Display International, Inc Galvin Ct. Elgin IL, Ph: Fax:
NHD0420DZWAB5 Character OLED Display Module NHD Newhaven Display 0420 4 lines x 20 characters DZW OLED A Model B Emitting Color: Blue 5 +5V power supply Newhaven Display International, Inc 2661 Galvin
More informationCharacter LCD Interface for ez80acclaim! MCUs
Application Note Character LCD Interface for ez80acclaim! MCUs AN015902-0708 Abstract This Application Note provides Character LCD driver routines, coded in ANSI C, for Zilog s ez80acclaim! Flash microcontroller-based
More information538 Lecture Notes Week 5
538 Lecture Notes Week 5 (Sept. 30, 2013) 1/15 538 Lecture Notes Week 5 Answers to last week's questions 1. With the diagram shown for a port (single bit), what happens if the Direction Register is read?
More information538 Lecture Notes Week 5
538 Lecture Notes Week 5 (October 4, 2017) 1/18 538 Lecture Notes Week 5 Announements Midterm: Tuesday, October 25 Answers to last week's questions 1. With the diagram shown for a port (single bit), what
More informationC Language Programming, Interrupts and Timer Hardware
C Language Programming, Interrupts and Timer Hardware In this sequence of three labs, you will learn how to write simple C language programs for the MC9S12 microcontroller, and how to use interrupts and
More informationNT7651. LCD controller/driver 16Cx2 characters icons PRELIMINARY. Features. General Description
PRELIMINARY LCD controller/driver 16Cx2 characters + 16 icons Features! Single-chip LCD controller/driver! 2-line display of up to 16 characters + 16 icons, 1-line display of up to 32 characters + 16 icons,
More informationLCD MODULE DEM SBH-PW-N
DISPLAYElektronik GmbH LCD MODULE DEM 16481 SBH-PW-N Version: 7.1.1 01.09.2008 GENERAL SPECIFICATION MODULE NO. : DEM 16481 SBH-PW-N VERSION NO. CHANGE DESCRIPTION DATE 0 ORIGINAL VERSION 13.12.2002 1
More information#include <hidef.h> /* common defines and macros */ #include <MC9S12XEP100.h> /* derivative information */ #pragma LINK_INFO DERIVATIVE "mc9s12xep100"
#include /* common defines and macros */ #include /* derivative information */ #pragma LINK_INFO DERIVATIVE "mc9s12xep100" #define LCD_RS PORTB_PB0 // Register select #define
More informationunit: mm 3044B - QFP80A unit: mm QFP80D
Ordering number: EN 3255C CMOS LSI LC7985NA, LC7985ND LCD Controller/Driver Overview Package Dimensions The LC7985 series devices are low-power CMOS ICs that incorporate dot-matrix character generator,
More informationRAYSTAR_OLED Application Note. OLED Character type
OLED Character type Version 26 Date: 2011/10/4 Date : 2011/10/4 FAE Department 1 1 RECORD OF REVISION 4 2 DESCRIPTION & FEATURES 5 3 APPLICATION CIRCUIT6 31 Parallel 8-bit 68/80 mode 6 32 Parallel 4-bit
More informationInterrupt vectors for the 68HC912B32. The interrupt vectors for the MC9S12DP256 are located in memory from 0xFF80 to 0xFFFF.
Interrupts The Real Time Interrupt Interrupt vectors for the 68HC912B32 The interrupt vectors for the MC9S12DP256 are located in memory from 0xFF80 to 0xFFFF. These vectors are programmed into Flash EEPROM
More informationLCD Controller with Built-in ROM of Sign Generator
IZ7066 LCD Controller with Built-in ROM of Sign Generator Purpose Controller driver of matrix LCD Built-in LCD control (16 lines and 40 columns) Symbol format: 5 7 points cursor, 5 10 points cursor Compatible
More informationSUNLIKE DISPLAY GENERAL SPECIFICATION
GENERAL SPECIFICATION Model No: SO22A ITEM Product No SO22AWWB-UA-WB-U DESCRIPTION OLED Type OLED White & Black Rear Polarizer Reflective / Positive Backlight Type OLED OLED Color Yellow Green Amber White
More informationAppendix A: Rack Specification Sheet
Appendices Appendix A: Rack Specification Sheet A-1 Appendix B: Pinion Specification Sheet B-1 Appendix C: Specification Sheets for Motors One and Two Motor One Specification Sheet C-1 C-2 Motor Two Specification
More informationLCD03 - I2C/Serial LCD Technical Documentation
LCD03 - I2C/Serial LCD Technical Documentation Pagina 1 di 5 Overview The I2C and serial display driver provides easy operation of a standard 20*4 LCD Text display. It requires only a 5v power supply and
More informationLCD Module Specification
LCD Module Specification Model: LC62-SMLYH6 Table of Contents COER & CONTENTS BASIC SPECIFICATIONS 2 ABSOLUTE MAXIMUM RATINGS 3 ELECTRICAL CHARACTERISTICS 4 OPERATING PRINCIPLES & METHODES 7 MPU INTERFACE
More informationLCM NHD-0116AZ-FL-GBW. User s Guide. (Liquid Crystal Display Module) RoHS Compliant. For product support, contact NHD AZ- F- L- G- B- W-
User s Guide LCM (Liquid Crystal Display Module) RoHS Compliant NHD- 0116- AZ- F- L- G- B- W- Newhaven Display 1 Lines x 6 Characters Version Line Transflective Yellow/Green LED B/L STN-Gray 6:00 View
More informationSPECIFICATION Model: LMB161A
SPECIFICATION Model: LMB161A LMB161A - 2-1. BASIC SPECIFICATIONS 1.1 Display Specifications LCD Mode : STN Positive Transflective Display Color : Dark Blue Background Color : Yellow-Green Driving Duty
More informationDOT MATRIX CHARACTER LCD MODULE USER S MANUAL
DOT MATRIX CHARACTER LCD MODULE USER S MANUAL OPTREX CORPORATION Apollo Display Technologies Inc. 194-22 Morris Ave. Holtsville NY 11742 Phone: (516) 654-1143 Fax: (516) 654-1496 www.apollodisplays.com
More informationSPECIFICATIONS FOR LCD MODULE
SPECIFICATIONS FOR LCD MODULE CUSTOMER CUSTOMER PART NO. ORIENT DISPLAY NO. OD-AMC162A SERIES DESCRIPTION APPROVED BY DATE PREPARED BY CHECKED BY APPROVED BY PAGE 1 OF 23 DOCUMENT REVISION HISTORY: DATE
More informationLCD MODULE DEM SBH-PW-N
DISPLAY Elektronik GmbH LCD MODULE DEM 16228 SBH-PW-N Version: 3 09/Oct/2008 GENERAL SPECIFICATION MODULE NO. : DEM 16228 SBH-PW-N CUSTOMER P/N VERSION NO. CHANGE DESCRIPTION DATE 0 ORIGINAL VERSION 05.05.2008
More informationFEATURES DESCRIPTION APPLICATIONS BLOCK DIAGRAM. PT6314 Dot Character VFD Controller/Driver IC
Dot Character VFD Controller/Driver IC DESCRIPTION PT6314 is a VFD Controller/Driver IC utilizing CMOS technology providing 80 segment outputs and 24 grid outputs. It supports dot matrix displays of up
More informationINTEGRATED CIRCUITS DATA SHEET. PCF2119x-2 LCD controllers/drivers. Product specification File under Integrated Circuits, IC12
INTEGRATED CIRCUITS DATA SHEET File under Integrated Circuits, IC12 28. August 2000 CONTENTS 1 FEATURES 1.1 Note 2 APPLICATIONS 3 GENERAL DESCRIPTION 4 ORDERING INFORMATION 5 BLOCK DIAGRAM 6 PAD INFORMATION
More informationUS x 32 OLED/PLED Segment/Common Driver with Controller For 20x4 Characters.
US2066 100 x 32 OLED/PLED Segment/Common Driver with Controller For 20x4 Characters http://wwwwisechipcomtw i 1 General Description WiseChip Semiconductor Inc US2066 US2066 is a single-chip CMOS OLED/PLED
More informationM0120SD 201MDB1 1. Vacuum Fluorescent Display Module
M0120SD 201MDB1 1 Vacuum Fluorescent Display Module RoHS Compliant Newhaven Display International, Inc. 2511 Technology Drive, Suite 101 Elgin IL, 60124 Ph: 847 844 8795 Fax: 847 844 8796 www.newhavendisplay.com
More informationC Language Programming, Interrupts and Timer Hardware
C Language Programming, Interrupts and Timer Hardware In this sequence of three labs, you will learn how to write simple C language programs for the MC9S12 microcontroller, and how to use interrupts and
More informationDATA SHEET. PCF2113x LCD controller/driver INTEGRATED CIRCUITS Apr 04
INTEGRATED CIRCUITS DATA SHEET Supersedes data of 1996 Oct 21 File under Integrated Circuits, IC12 1997 Apr 04 CONTENTS 1 FEATURES 2 APPLICATIONS 3 GENERAL DESCRIPTION 4 ORDERING INFORMATION 5 BLOCK DIAGRAM
More informationSSD1311. Advance Information. OLED/PLED Segment/Common Driver with Controller
SOLOMON SYSTECH SEMICONDUCTOR TECHNICAL DATA SSD3 Advance Information OLED/PLED Segment/Common Driver with Controller This document contains information on a new product Specifications and information
More informationLCD Module User Manual
LCD Module User Manual Customer : MASS PRODUCTION CODE DRAWING NO : TC1602J-01WB0 : M-TC1602J-01WB0_A00 Approved By Customer: Date: Approved By Checked By Prepared By Vatronix Holdings Limited ADD 4/F,No404
More informationEE 308/MENG 483 Spring 2017
Exam II Review April 2017 Introduction to the MC9S12 Timer Subsystem The MC9S12 has a 16-bit counter that runs with a 24 MHz. The clock starts at 0x0000, counts up until it gets to 0xFFFF. It takes 2.7307
More informationApplication Note. Connecting standard LCD modules to. the MB90670/5 series. History 01 th Feb. 97 MM V1.0 started 28 th June 00 TKa V1.
Application Note Connecting standard LCD modules to the MB90670/5 series Fujitsu Microelectronics Europe GmbH, Microcontroller Application Group History 01 th Feb. 97 MM V1.0 started 28 th June 00 TKa
More informationWINSTAR_OLED Application Note. OLED Character type
OLED Character type Version 34 Date: 2015/01/27 Date : 2014/08/29 FAE Department 1 1 RECORD OF REVISION 4 2 DESCRIPTION & FEATURES 5 3 APPLICATION CIRCUIT6 31 Parallel 8-bit 68/80 mode 6 32 Parallel 4-bit
More informationIf the display shift operation is used on a 20 x 4 display, the addressing is shifted as follows:
If the display shift operation is used on a 2 x 4 display, the addressing is shifted as follows: Left Shift Column 2 3... 8 9 2 line 2 3 2 3 4 line 2 4 42 43 52 53 54 line 3 5 6 7 26 27 28 line 4 55 56
More informationLCD MODULE DEM SYH
DISPLAY Elektronik GmbH LCD MODULE DEM 16101 SYH Version: 5.1.1 23.09.2008 GENERAL SPECIFICATION MODULE NO. : DEM 16101 SYH VERSION NO. CHANGE DESCRIPTION DATE 0 ORIGINAL VERSION 06.03.2000 1 ADDING DDRAM
More informationLCD MODULE DEM FGH-LR
DISPLAY Elektronik GmbH LCD MODULE DEM 16217 FGH-LR Version : 3 15/Aug/2010 GENERAL SPECIFICATION MODULE NO: DEM 16217 FGH-LR CUSTOMER P/N Version No. Change Description Date 0 Original Version 26.07.2010
More informationME 4447/ME Microprocessor Control of Manufacturing Systems/ Introduction to Mechatronics. Instructor: Professor Charles Ume
ME 4447/ME 6405 Microprocessor Control of Manufacturing Systems/ Introduction to Mechatronics Instructor: Professor Charles Ume Lecture on Codewarrior Integrated Development Environment Contents Overview
More informationAlphanumeric LCD display module 24 characters by 2 line. General description
МТ 24S2L Alphanumeric LCD display module 24 characters by 2 line General description MT 24S2L LCD display module is composed of LSI controller and LCD panel. КB1013VG6 controller manufactured by ANGSTREM
More information8051 Peripherals. On-Chip Memory Timers Serial Port Interrupts. Computer Engineering Timers
8051 Peripherals On-Chip Memory Timers Serial Port Interrupts Computer Engineering 2 2-1 8051 Timers 8051 Timers The 8051 has 2 internal 16-bit timers named Timer 0 and Timer 1 Each timer is a 16-bit counter
More informationcommodore semiconductor group NMOS 950 Rittenhouse Rd., Norristown, PA Tel.: 215/ TWX: 510/ (MEMORY, I/O, TIMER ARRAY)
commodore semiconductor group NMOS 950 Rittenhouse Rd., Norristown, PA 19403 Tel.: 215/666-7950 TWX: 510/660-4168 6532 (MEMORY, I/O, TIMER ARRAY) THE 6532 CONCEPT- The 6532 is designed to operate in conjunction
More informationPCF2119x. 1. General description. 2. Features and benefits. LCD controllers/drivers
Rev. 10 31 October 2011 Product data sheet 1. General description The is a low power CMOS 1 LCD controller and driver, designed to drive a dot matrix LCD display of 2-lines by 16 characters or 1-line by
More informationPCF2119x. 1. General description. 2. Features and benefits. LCD controllers/drivers
Rev. 6 8 September 2010 Product data sheet 1. General description The is a low power CMOS 1 LCD controller and driver, designed to drive a dot matrix LCD display of 2-lines by 16 characters or 1-line by
More informationSitronix. ST7038i FEATURES GENERAL DESCRIPTION. Dot Matrix LCD Controller/Driver
ST Sitronix FEATURES 5 x 8 dot matrix possible Support low voltage single power operation: VDD, VDD2: 1.8 to 3.3V (typical) LCD Voltage Operation Range (V0/Vout) Programmable V0: 3 to 7V(V0) External power
More informationNHD-C0216CZ-FSW-FBW-3V3
NHD-C0216CZ-FSW-FBW-3V3 COG (Chip-on-Glass) Liquid Crystal Display Module NHD- Newhaven Display C0216- COG, 2 Lines x 16 Characters CZ- Model F- Transflective SW- Side White LED Backlight F- FSTN (+) B-
More information