Application Notes for LCD 36x24 SmartSwitch/Display

Similar documents
EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS 16290(LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : JUL.03,2001 TOTAL PAGE : 7

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS (LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : DEC.01,1999 TOTAL PAGE : 7 APPROVED BY:

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS 16400(LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : JAN.19,2000 TOTAL PAGE : 7 APPROVED BY:

AZ DISPLAYS, INC. LCD MODULE SPECIFICATION MODULE TYPE : AGM1616A

Microcontroller Display Interfacing Techniques

Contents & P-LCD Modules Cross Reference Table

Information Board User s Guide

Controlling a Dot Matrix LED Display with a Microcontroller

Using the Siemens S65 Display

Lesson 10: Video-Out Interface

OLED Solution for Mobile Phone Subdisplay

8 by 8 dot matrix LED displays with Cascadable Serial driver B32CDM8 B48CDM8 B64CDM8 General Description

BATRON DOCUMENT NUMBER AND REVISION VL-FS-BTHQ 21605VSS-02 REV.A (BTHQ 21605VSS-FSTF-LED05W(1 DIE)) Feb/2002 BTHQ FSTF-LED WHITE 1/15

Revision History. Date Page Summary. Approved By: Document Number: OG24161 r.0 Page 1 of 11

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

White Paper Thin-Film-Transistor (TFT) LCD Display Control Electronics Design and Operation Revision 1.0

LCM NHD-12032BZ-FSW-GBW. User s Guide. (Liquid Crystal Display Graphic Module) RoHS Compliant. For product support, contact

4 Character 5x7 LED Matrix Display

0832 Dot Matrix Green Display Information Board User s Guide

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

Data Sheet. HCMS-235x CMOS Extended Temperature Range 5 x 7 Alphanumeric Display. Features. Description. Typical Applications

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

Advanced LED Controller (LED Chaser)

OLED into Mobile Main Display

FEATURES DESCRIPTION. PT6321 Fluorescent Display Tube Controller Driver

128x64 DOTS. EA DOGL128x-6 EA LED68X51-RGB

WS2812B Intelligent control LED integrated light source

3.2 inch QVGA TFT Color LCD User s Guide Version 1 & 2

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Conversion Between Analog and Digital Signals

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

EA DOGS104x-A INCL. CONTROLLER SSD1803A FOR SPI AND I²C. available at 1 piece! Switchable font height ACCESSORIES

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Interfacing To Alphanumeric Displays

Technical Note. Micron NAND Flash Controller via Xilinx Spartan -3 FPGA. Overview. TN-29-06: NAND Flash Controller on Spartan-3 Overview

Thermostat Application Module Kit

AN2531 Application note

TEECES DOME LIGHTING SYSTEMS

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

NHD-0420D3Z-FL-GBW-V3

HCMS-29xx Series High Performance CMOS 5 x 7 Alphanumeric Displays

SIMPLE EPROM PROGRAMMER. EPROM Programmer Design. Hardware

Introduction to graphics and LCD technologies. NXP Product Line Microcontrollers Business Line Standard ICs

Microtronics technologies Mobile:

CHAPTER 11: Flip Flops

LDS WLED Matrix Driver with Boost Converter FEATURES APPLICATION DESCRIPTION TYPICAL APPLICATION CIRCUIT

Wireless Security Camera

Allows the user to protect against inadvertent write operations. Device select and address bytes are Acknowledged Data Bytes are not Acknowledged

Modification of an AOR AR-8600 receiver to tune it with a ACECO FC-3002 frequency finder

SSD1298. Advance Information. 240 RGB x 320 TFT LCD Controller Driver integrated Power Circuit, Gate and Source Driver with built-in RAM

Accurate Measurement of the Mains Electricity Frequency

RDF1. RF Receiver Decoder. Features. Applications. Description. Ordering Information. Part Number Description Packages available

Technical Note TN_158. What is the Camera Parallel Interface?

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

JTAG-HS2 Programming Cable for Xilinx FPGAs. Overview. Revised January 22, 2015 This manual applies to the HTAG-HS2 rev. A

RETRIEVING DATA FROM THE DDC112

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

74HC165; 74HCT bit parallel-in/serial out shift register

HD44780-Based LCD Modules. Introduction to the LM018L

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

Advanced Data Capture and Control Systems

Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

RGB for ZX Spectrum 128, +2, +2A, +3

Part Number Description Packages available

Using the HT1632 for Dot Matrix LED Displays

Flexible Active Shutter Control Interface using the MC1323x

Below is a diagram explaining the data packet and the timing related to the mouse clock while receiving a byte from the PS-2 mouse:

TIL311 HEXADECIMAL DISPLAY WITH LOGIC

DOG SERIES 3.3V. EA DOGM163W-A + EA LED55x31-W

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

LMB162ABC LCD Module User Manual

Features INSTRUCTION DECODER CONTROL LOGIC AND CLOCK GENERATORS COMPARATOR AND WRITE ENABLE EEPROM ARRAY READ/WRITE AMPS 16

User manual LCD 240-2xx

ELAN DIGITAL SYSTEMS LTD. SL232 PC- CARD USER S GUIDE

Designing an Induction Cooker Using the S08PT Family

AN LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode

Touch Screen for Pictiva OLED display. Application Note. Introduction

POCKET SCOPE 2. The idea 2. Design criteria 3

1. General Description

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

HT1632C 32 8 &24 16 LED Driver

C8051F020 Utilization in an Embedded Digital Design Project Course. Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia

Procidia Control Solutions Dedicated Backup in a Single Variable Control Loop

Designing VM2 Application Boards

ADS9850 Signal Generator Module

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

8-bit Microcontroller. Application Note. AVR415: RC5 IR Remote Control Transmitter. Features. Introduction. Figure 1.

WEB log. Device connection plans

Using Xbee in Serial Communication

DMX-K-DRV. Integrated Step Motor Driver + (Basic Controller) Manual

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Create Colorful and Bright LED Light with an LED Matrix Dimmer

BATRON. Specification for BTHQ 21605V-FSTF-I2C-COG

GTS-4E Hardware User Manual. Version: V1.1.0 Date:

8-bit synchronous binary down counter

Transcription:

Application Notes for LCD 36x24 SmartSwitch/Display Revision B NKK Switches 7850 E. Gelding Drive Scottsdale, AZ 85260 480-991-0942 FAX (480) 998-1435 e-mail <hsajadi@nkkswitches.com> All Rights Reserved Worldwide NKK Switches makes no warranty for the use of these products and assumes no responsibility for any errors, which may appear in this document, nor does it make a commitment to update the information contained herein. SmartSwitch is trademark of NKK Switches. Application Notes for LCD 36x24 SmartSwitch B.doc Page 1 of 13

TABLE OF CONTENTS Table of Contents...2 1. General Information...3 2. Part Numbers...3 3. Pin-outs...3 4. Pin Descriptions and Functions...4 5. Controlling the SmartSwitch LED backlighting...5 6. Controlling Multiple Modules...6 7. Picture Bit Map for one Switch...7 8. Refresh and Timing...8 9. Timer Interrupt...8 10. Sample Schematics...9 11. Frequently Asked Questions...12 Application Notes for LCD 36x24 SmartSwitch B.doc Page 2 of 13

1. General Information The application notes should be used in conjunction with the LCD 36x24 data sheet which has the LED, LCD, and other specifications as well as the timing diagram for the communication. 2. Part Numbers The LCD 36x24 SmartSwitch is currently available as 36x24 standard pushbuttons, 36x24 compact pushbuttons and 36x24 displays. The pushbuttons and displays have a variety of options for backlighting. For the purpose of the application notes these are referred to as Modules. For prototyping it is recommended to use the relevant SmartSwitch socket accessory. Evaluation controllers and demonstration kits are also available. 3. Pin-outs The single and bicolor standard size pushbuttons all share the same pin-out. The LCD 36x24 RGB pushbuttons has a different pin-out. All the compact size pushbuttons have the same pin-out. All the displays have the same pin-out. All the functions are the same regardless of the pin-outs so for the purpose of the application notes the RGB SmartSwitch will be used as the example. The following are the pin-outs for the RGB SmartSwitch. Pins Symbol Pin Name Function 1 SW Switch Terminal Normally open switch 2 SW Switch Terminal Normally open switch 3 BL-LED(-) LED Backlight Terminal Cathode for Red 4 BL-LED(-) LED Backlight Terminal Cathode for Blue 5 Dout Data Output To daisy chain, connect to Din of next switch. 6 FLM First Line Marker Control line for LCD display 7 LP Latch Pulse Control line for LCD display 8 SCP Serial Clock Pulse Clock for shifting data of LCD display 9 Din Data Input Data input for LCD display 10 GND Ground 11 VDD Power +5 V power source for logic circuit 12 VLC LCD Power Power source for LCD drive 13 BL-LED(+) LED Backlight Terminal Common Anode for LEDs 14 BL-LED(-) LED Backlight Terminal Cathode for Green NKK s LCD 36x24 RGB SmartSwitch Pinout Application Notes for LCD 36x24 SmartSwitch B.doc Page 3 of 13

4. Pin Descriptions and Functions Switch terminals (SW, SW): The switch is normally open. The switch can be scanned by connecting one pin to Ground and the other pin to a micro-controller. For a matrix of switches many different methods can be used for scanning. Ground: The Ground for logic and OLED. VDD: Power source for logic (5V and 1mA). VLC: Supply voltage for LCD (7.3V to 7.5V and less than 1mA) The required voltage value depends on the refresh rate of the LCD display, the temperature, and the desired viewing angle. It is recommended that this voltage be adjustable. This can be achieved by using a potentiometer between higher voltage such as 9V or 12V and Ground or by the use of an OpAmp. BL-LED(+), BL-LED(-),BL-LED(-),BL-LED(-): LED backlighting as shown in diagram below. RED PIN3 PIN13 GREEN PIN14 BLUE PIN4 The LED forward voltages for the LCD 36x24 RGB SmartSwitch are as follow: LED (red) = 2.1V LED (green) = 3.3V LED (blue) = 3.3V The absolute maximum current rating is 20mA. A current limiting resistor should be used. The brightness of the backlighting is determined by the current value. Other colors are achieved by different combinations of red, green, and blue. Note: Please refer to the data sheets for the specific switch of interest as the LED specifications will be different than the LCD 36x24 RGB SmartSwitch. SCP and Din: Clock and Data communication. These are connected to data in and clock of an internal 40-bit shift register of the SmartSwitch. The clock pin and the data pin can be connected to pins of a micro-controller. Clock line should be normally high. First the data bit is set on the data line and then the clock is toggled. Application Notes for LCD 36x24 SmartSwitch B.doc Page 4 of 13

The LCD display has 36 pixels in each row. Positions 37th, 38th, 39th and 40th of the internal shift register are not used. The maximum clock frequency is rated for 6.0 MHz. FLM and LP: Control lines for internal LCD driver. These lines are connected to micro-controller pins. They are normally low. LP is toggled after the data shifted to the right position in the internal shift register of SmartSwitches. FLM is set to high before shifting the data for the first line of the display and cleared after the data shifted and LP is toggled for the first line. Dout: Data out. This pin is the output of the 40th position of internal shift register. It is used to daisy chain the SmartSwitches. It connects to data in (pin 8) of the next switch. 5. Controlling the SmartSwitch LED backlighting Backlighting can be controlled using current limiting resistors and driver IC with latch as shown below. RED R1 249 Ohm Rcntr VLED 5V GREEN R2 86 Ohm Gcntr BLUE R3 86 OHM Bcntr The circuit below results in consistent brightness between single LED ON and multi LED s ON. RED R1 220 Ohm Rcntr VLED 5V R4 25.5 Ohm GREEN R2 60.4 Ohm Gcntr BLUE R3 60.4 OHM Bcntr Application Notes for LCD 36x24 SmartSwitch B.doc Page 5 of 13

Note: It is recommended is to use a LED driver such as the MAX6957 for controlling the backlighting. This eliminates the need for resistors and driver IC with latch. It allows for achieving any color as well as color matching via software control. 6. Controlling Multiple Modules a. All the SCP pins are connected to the same source b. All the LP pins are connected to the same source c. All the FLM pins are connected to the same source d. Din of the first switch is connected to the source. Dout of the first switch is connected to Din of second switch etc Note: A buffer IC should be used for SCP, LP and FLM if the fan-out of the source is not sufficient. As the number of switches increases, directly controlling the clock and data by the micro-controller becomes inefficient. A different method should be used to shift the data faster. Some possible options are using a serial port in 8-bit mode or using three shift registers. Three parallel-in serial-out shift registers can be used to accomplish this task as shown in Figure 1. This circuit converts the parallel byte to serial. FIG. 1 Figure 1, Multiple Modules Controlling Example Using Three Shift Registers Clock in WR signa D BUS 74HC165 DS PL CE CP Q7N Q7 D7 D6 D5 D4 D3 D2 D1 D0 U2 74HC165 DS PL CE CP Q7N Q7 D7 D6 D5 D4 D3 D2 D1 D0 U1 +V 5V D7 D6 D5 D4 D3 D2 D1 D0 U3 74HC165 DS PL CE CP D7 D6 D5 D4 D3 D2 D1 D0 Q7N Q7 SCP Din Application Notes for LCD 36x24 SmartSwitch B.doc Page 6 of 13

7. Bit Map Picture Format for One Module The display on the SmartSwitch is a graphic LCD with a matrix of 36 columns by 24 rows. The SmartSwitch has an internal 40-bit shift register. The first 36 bits of the shift register correspond to the 36 columns of the display and the last 4 bits of the shift register are not used. See Figure 2. The internal shift register shifts left to right so the 40th bit is shifted first and the first bit is shifted last. The first four bits of data shifted in are not used. The fifth bit corresponds to the right most pixel of the row and the 40th bit of data shifted in corresponds to the left most pixel of the row. A high bit causes the corresponding pixel to be on and a low bit causes the corresponding pixel to be off. When the switches are daisy-chained the first forty bits of data shifted in correspond to the last switch and the last forty bits of data shifted in correspond to the first switch. LP and FLM are normally low. FLM must be set high before shifting the data for the first row and cleared after the data shifted and the LP is toggled. For the rows 2 to 24 after the data are shifted for each row LP must be toggled. 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 Figure 2, bit map on 40-bit shift register 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 4 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 The memory data specified by grey are not used. Application Notes for LCD 36x24 SmartSwitch B.doc Page 7 of 13

8. Refresh and LP Timing The display must be refreshed continuously. The LP to LP timing has to be consistent. LP causes the internal LCD driver to use the data from the internal 40-bit shift register to energize the pixels of the corresponding row. If the LP to LP timing is not consistent the pixel rows that are energized for a longer time will be darker. If a row gets charged for too long it could damage the display. When the LP to LP timing exceeds 1.2ms a flicker will be noticed on the displays. Lower LP to LP timing up to 0.7ms causes better contrast. However, LP to LP timing of below 0.7ms does not cause significant contrast improvement. 9. Timer Interrupt A timer interrupt should be used for refreshing the display, backlighting, and switch scan. The timer interrupt interval should be equal to desired LP to LP timing. The timer interrupt should be set to low priority. The following SmartSwitch related functions could be performed by timer interrupt routines: a. Start of interrupt routine. b. If it is the first line of the display set the FLM to high. c. Shift the data for the corresponding row of the displays. d. Toggle the LP. e. Set the FLM to low. f. Put LED data to effect. g. Increment line number of the display. If equal to 25 set it to 1. h. If the line number for the display is equal to 1 then scan the switches. This compensates for switch bouncing. i. End of interrupt routine. Manipulation of data and any other tasks can be done by the main program. Application Notes for LCD 36x24 SmartSwitch B.doc Page 8 of 13

10. Sample Schematics Figure 3, Sample schematic for controlling 2 RGB SmartSwitches. Application Notes for LCD 36x24 SmartSwitch B.doc Page 9 of 13

Figure 3, Sample schematic for controlling 3 RGB SmartSwitches. Continued on next page. Application Notes for LCD 36x24 SmartSwitch B.doc Page 10 of 13

Figure 3, Sample schematic for controlling 3 RGB SmartSwitches (continued). Please note the microcontroller is capable of driving up to 48 SmartSwitches. Application Notes for LCD 36x24 SmartSwitch B.doc Page 11 of 13

11. Frequently Asked Questions Does the display have to be refreshed? Yes. The displays have to be refreshed. The drawback for the switches that have a refreshing circuit in the switch cap is that the controller can not detect when the refreshing circuit freezes due to an ESD charge. Why is one of the display rows darker than the rest? The timing between the latch pulse of that row and the next row is longer than the timing between the rest of latch pulses. What happens if the display is not refreshed? If the VLC is present, one row of display gets charged for a long time, which can damage the display. If the micro-controller has to go to sleep mode, it must disable the VLC. Does the micro-controller have to have external memory? For a large number of switches the memory is needed to keep the pictures. For a small number of switches the pictures can be made on the fly using ASCII code and look up table without using external memory. Is the display visible without the backlighting? Yes. The LCD in the switch is transflective so it can be seen with sufficient ambient lighting. The negative LCD option requires backlighting. Is the display sun light readable? Since the LCD is transflective, it is sun light readable. However, the reflection from the lens may cause problem. How many switches can be driven by a micro-controller? The number of Modules that a Micro-controller can control depends on the instruction execution time, other tasks performed, hardware design, and software design. Example Given: A micro-controller with an average instruction execution time of 1 MicroSecond and with 34% of the time performing other tasks. The LP to LP timing is 1 ms. Calculate: The number of Modules that can be controlled by the Micro-controller. Solution: Time to refresh one line = (1ms)* (.66) =.66 ms = 660 instructions The data has to be addressed, retrieved, and shifted. The time for each of these tasks depends on hardware and software design. The fastest addressing scheme is to have the Buffer of the picture data on the RAM as shown on Figure 2. This scheme has the higher byte of the DATA POINTER holding the Module line number and the lower byte of the DATA POINTER points to the last byte of the last Module (same number for all the lines). Once the DATA POINTER is loaded a byte of the data is retrieved and shifted, and the lower byte of the DATA POINTER decrements, a byte of the data is retrieved and shifted and so forth until the lower byte of the DATA POINTER is equal zero. Application Notes for LCD 36x24 SmartSwitch B.doc Page 12 of 13

Shifting the data with Micro-controller pins for many Modules is very time consuming. In this example we assume the data is written via the micro-controller parallel bus to a device such as the 3- shift register method described above or via serial port (8-bit mode). The shift speed of data must be such that the Micro-controller does not wait to write the shift data. This method takes 3 Instruction per byte of data (Load the byte, Write the byte to the shift register and decrement the data pointer). If the Interrupt overhead takes 15 Instruction. This Micro-controller can control 43 Modules. (660 Instr./line 15 Instr./overhead)/ ((5 byte/module)*(3 Instr./byte)) = 43 Modules. However due to driver fan-out and noise the actual number should be less. WE have controlled 16 to 24 using 74HC4050 driver without any problem. Can the switches be controlled with the low voltage? The specification does not support it but we have tested the switches at 3.0V VDD and signals without any problem. I only need to display a small picture. Do I need to refresh the whole display? The FLM signal indicates the first line. If you do not need the display for all the 24 row of pixels, you can use FLM after as many lines as you need. If you need to center your display, you can toggle the LP to insert a line. Is it possible to have an image with shades of gray? Yes, it is possible. Multiple pictures must be refreshed consecutively. The pixels that are ON for all the pictures will be the darkest, the pixels that are OFF for only one picture will be the second darkest and so on. The number of shade of gray depends on how fast the controller can refresh the LCD. How many backlight colors can be achieved? Infinite. It depends on how many levels of control are present for each discrete color. For example with a RGB SmartSwitch and 16 levels of control for each color the total number of colors is 16x16x16 = 4096 different color. Application Notes for LCD 36x24 SmartSwitch B.doc Page 13 of 13