IS01BFRGB LCD SmartDisplay from NKK Switches Low cost implementation featuring the ATtiny13A from Atmel Complete software solution

Similar documents
IS01BFRGB LCD SmartDisplay from NKK Switches Simple implementation featuring the ATmega88PA from Atmel Complete software solution

Part Number Terminals LCD Mode LED Color. * Simultaneous RGB illumination achieves infinite colors. Forward Current I F 20mA Power Dissipation P d mw

AN2415 Application note

Hitachi Europe Ltd. ISSUE : app084/1.0 APPLICATION NOTE DATE : 28/04/99

SmartSwitch TM. Wide View LCD 36 x 24 Pushbutton DISTINCTIVE CHARACTERISTICS PART NUMBER & DESCRIPTION

Compact Size Perfect for rack mount router and other applications with space limitations.

Figure 1: AHK1421 Evaluation Board Pictures.

HT8 MCU Integrated LCD Application Example (2) C Type Bias

Programmable Switches & Displays.

ECE 372 Microcontroller Design

SmartSwitch. Wide View LCD 36 x 24 Pushbuttons & Display DISTINCTIVE CHARACTERISTICS PART NUMBERS & DESCRIPTIONS

RF4432 wireless transceiver module

uresearch GRAVITECH.US GRAVITECH GROUP Copyright 2007 MicroResearch GRAVITECH GROUP

Experiment 7 Fall 2012

Lecture 14: Computer Peripherals

IS Series Expanded Viewing Area

HCS08 SG Family Background Debug Mode Entry

Programmable High Resolution LCD Switches

BASCOM-TV. TV Code Features: ICs supported: BASCOM versions:

LED Array Board.

SmartSwitch TM. Wide View Compact LCD 64 x 32 Pushbutton DISTINCTIVE CHARACTERISTICS PART NUMBER & DESCRIPTION

MSP430-HG2231 development board Users Manual

NS8050U MICROWIRE PLUSTM Interface

Using the HT1628 for Washing Machine Panel Display

USER MANUAL Nokia 5110 LCD

16 Stage Bi-Directional LED Sequencer

RF4432F27 wireless transceiver module

Bill of Materials: Magic Color PART NO

Chrontel CH7015 SDTV / HDTV Encoder

ABOV SEMICONDUCTOR 11 SEGMENT X 7 GRID LED DRIVER WITH KEYSCAN MC2302. Data Sheet (Ver. 1.20)

SPI Serial Communication and Nokia 5110 LCD Screen

HT9B92 RAM Mapping 36 4 LCD Driver

Very low-noise, high-efficiency DC-DC conversion circuit

EECS145M 2000 Midterm #1 Page 1 Derenzo

8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI

AT18F Series Configurators. Application Note. Stand-alone or In-System Programming Applications for AT18F Series Configurators. 1.

V6118 EM MICROELECTRONIC - MARIN SA. 2, 4 and 8 Mutiplex LCD Driver

Dynamic Animation Cube Group 1 Joseph Clark Michael Alberts Isaiah Walker Arnold Li

Published in A R DIGITECH

ABOV SEMICONDUCTOR 10 SEGMENT X 7 GRID LED DRIVER WITH KEYSCAN MC2102. Data Sheet (Ver. 1.21)

DESIGN AND DEVELOPMENT OF A MICROCONTROLLER BASED PORTABLE ECG MONITOR

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

OLED Display Full Screen Color Pushbutton

Using the Siemens S65 Display

This document describes a program for 7-segment LED display (dynamic lighting).

Specification V1.1. NLC320F240BTM4 (Status: June 2010) Approval of Specification. Approved by. Admatec Customer

GM60028H. DisplayPort transmitter. Features. Applications

APPLICATION NOTE. Atmel AVR32850: ATSAM4L-EK User Guide. Atmel SAM4L. Features. Introduction

Universal ByteBlaster

VFD Driver/Controller IC

Although the examples given in this application note are based on the ZX-24, the principles can be equally well applied to the other ZX processors.

LED Driver IC IK2108A TECHNICAL DATA. Description

OLED Display Frameless Pushbutton

This document describes a program for 7-segment LED display (dynamic lighting) and key matrix and input.

DMC550 Technical Reference

Alice EduPad for Tiva or MSP432 TI ARM Launchpad. User s Guide Version /23/2017

SparkFun Camera Manual. P/N: Sense-CCAM

Configuring and using the DCU2 on the MPC5606S MCU

FEATURES APPLICATIONS BLOCK DIAGRAM. PT6311 VFD Driver/Controller IC

SmartSwitch. Wide View LCD 64 x 32 Pushbuttons & Display DISTINCTIVE CHARACTERISTICS

SPECIFICATION SFW056XU1-AV

Revision: August 11, E Main Suite D Pullman, WA (509) Voice and Fax. 8 LEDs. Doc: page 1 of 9

Using DLP LightCrafter 4500 Triggers to Synchronize Cameras to Patterns

Single Channel LVDS Tx

GM68020H. DisplayPort receiver. Features. Applications

VFD Driver/Controller IC

FEATURES DESCRIPTION APPLICATION BLOCK DIAGRAM. PT6311 VFD Driver/Controller IC

GM69010H DisplayPort, HDMI, and component input receiver Features Applications

AN4178 Application note

GEKCO SUBCARRIER REFERENCE OSCILLATOR MODEL SRO10 OPERATION/SERVICE MANUAL

Applications. NCO Clock Generator 1. Fine freq. adjustment. Synthesizer 0. Fine freq. adjustment. Synthesizer 1 Fs= Bs 1. *Ks 1. *16*Ms 1.

Senior Design Project: Blind Transmitter

Multi-Media Card (MMC) DLL Tuning

Mask Set Errata for Mask 1M07J

Copyright 2011 by Enoch Hwang, Ph.D. and Global Specialties. All rights reserved. Printed in Taiwan.

Memec Spartan-II LC User s Guide

XTAL Bank DDS Version 0.02 Sept Preliminary, highly likely to contain numerous errors

ADC Peripheral in Microcontrollers. Petr Cesak, Jan Fischer, Jaroslav Roztocil

Using the Siemens S65 Display

Alice EduPad Board. User s Guide Version /11/2017

AN3075 Application note

TV Synchronism Generation with PIC Microcontroller

STA2051E VESPUCCI 32-BIT SINGLE CHIP BASEBAND CONTROLLER FOR GPS AND TELEMATIC APPLICATIONS 1 FEATURES. Figure 1. Packages

DLP Pico Chipset Interface Manual

Uni700 LCD Controller

WM8725 EVALUATION BOARD USER HANDBOOK. The WM8725 is high performance Stereo DAC.

LCD Triplex Drive with COP820CJ

Checkpoint 2 Video Interface

SPECIFICATION FOR APPROVAL

AN Cascading NXP LCD segment drivers. Document information. Keywords

Data Conversion and Lab (17.368) Fall Lecture Outline

VT5365. Single-chip optical mouse sensor for wireless applications. Features. Applications. Technical specifications. Description.

Contents SmartSwitch TM

IMS B007 A transputer based graphics board

Interfacing the TLC5510 Analog-to-Digital Converter to the

Vorne Industries. 2000B Series Buffered Display Users Manual Industrial Drive Itasca, IL (630) Telefax (630)

STEVAL-IHT005V2. Demonstration board with full 3.3 V ACS/Triac control using the STM32F100. Description. Features

Brief Description of Circuit Functions

Documentation VFD clock 8 a clock

WS2815 Intelligent control LED integrated light source

Transcription:

DKAN0002A Bit-banging the SmartDisplay 09 June 2009 Features IS01BFRGB LCD SmartDisplay from NKK Switches Low cost implementation featuring the ATtiny13A from Atmel Complete software solution Introduction The IS01BFRGB SmartDisplay is NKK s standard LCD, used in every 36x24 LCD SmartSwitch. It features a 36x24 pixel monochrome LCD with red, green, and blue LED backlights. This application note describes the display s interface and provides an example implementation using bit manipulation. Complete C source code for Atmel s AVR ATtiny13A is provided. Application LCD The IS01BFRGB LCD requires two supply voltages: 5VDC for logic (V DD ) and 7.3VDC typical for LCD contrast (V LC ). Each LCD row requires that 40 data bits be serially clocked into the data-in (Din) pin on the falling edge of the serial clock pulse (SCP). The LCD only displays the last 36 data bits; the first 4 data bits are ignored. After a row of data is received, the latch pulse (LP) pin is pulsed to load the data. The LP-to-LP timing diagram in Figure 1 shows a row of data bits latched by an LP pulse. Pulsing the LP while the first line marker (FLM) pin is high latches data into the first row. Each subsequent LP pulse latches the following row. Every 24 th row, the FLM resets the display to the first row. The LP-to-LP timing determines the refresh rate. NKK recommends a maximum LP-to-LP timing of 1.2ms to avoid flicker *. The supplied code, with the ATtiny13A s 9.6MHz internal oscillator, achieves this. Figure 2 shows the timing diagram for a complete frame. Consult the datasheet for the timing specifications. * It has been observed that a V LC of more than 8VDC enables a slower refresh rate (approximately 1.8ms) without flicker. Since this requires fewer computational resources, a slower microcontroller can be used, or more tasks can be completed. Beyond 8VDC and 1.8ms, this relationship between V LC and the refresh rate diminishes, and no advantage is gained. Page 1 of 7

Figure 1. LP-to-LP Timing Diagram Figure 2. Frame Timing Diagram Digi-Key Corporation Page 2 of 7

Backlight The LCD s backlight consists of red, green, and blue LEDs. Figure 3 shows an example circuit. The current-limiting resistors control the backlight LEDs color and brightness. Refer to the datasheet for LED specifications. Figure 3. LED Backlight Circuit Example Circuit Figure 4 shows an example circuit using the ATtiny13A to control the NKK IS01BFRGB SmartDisplay. An LM2703 from National Semiconductor boosts V DD to 7.3VDC for the LCD contrast (V LC ). The ATtiny13A controls the LM2703 shutdown pin, and the rheostat R 2 controls V LC. VDD C1 4.7uF 1 2 3 L1 10uH U1 SW Vin GND FB SHDN LM2703-M 5 4 D1 SR102 R3 20K C2 1.0uF 1 3 5 7 9 11 U2 Vlc LED(-) "G" GND Vdd Din SCP LP LED(-) "R" FLM LED (+) Dout LED (-) "B" IS01BFRGB 2 4 6 8 10 12 R4 330 R5 1.10K R6 330 R2 50K SW1 N.O. R1 10K 1 2 3 4 U3 PB5 PB3 PB4 GND Vcc PB2 PB1 PB0 ATtiny13A-P 8 7 6 5 C3.1uF Figure 4. Example Circuit Digi-Key Corporation Page 3 of 7

Code Figure 5 illustrates the program flow chart. Figure 5. Program Flow Chart Initialization The program begins with the initialization of the GPIO pins, Timer0, and the interrupts. PB4 is configured as an input; the remaining GPIO pins are configured as outputs. Timer0 is configured to use the output compare register A (OC0A). A pin change interrupt is enabled on PB4, and the global interrupts are enabled. Table 1 shows port IO configuration. Table 1. Port IO ATtiny13A Pin Direction IS01BFRGB LM2703 PB0 Output SCP --- PB1 Output Din --- PB2 Output LP --- PB3 Input --- --- PB4 Output FLM --- PB5 Output BL-LED+ SHDN Digi-Key Corporation Page 4 of 7

Pin Change Interrupt An interrupt is generated on both a button press and a button release. After a button release, the interrupt service routine switches to the alternate bitmap and resets the bit, column, and row pointers to start a new image. Periodic Interrupt Timer0 is set up to interrupt every 14µs. The interrupt toggles SCP to generate the clock. If SCP is HIGH, the next pixel of bitmap data is retrieved from memory. If SCP is LOW, the pixel data bit is set on Din, and the LP and FLM pins are controlled appropriately. Bitmap The display is a 36x24 pixel format, but the bitmaps have a 40x24 format to incorporate the ignored bits. Each bit sets a pixel state (1=on, 0=off). In this example, each 120-byte bitmap is stored in internal Flash. (Note: the program inverts the OFF bitmap for visual differentiation.) Figure 6 illustrates the bitmap format. unsigned char IS01BFRGB_bitmap_1[24][5] PROGMEM = { { 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, / / Line #1 { 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, / / Line #2 { 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, / / Line #3 { 0b00000000, 0b01111000, 0b00000110, 0b00000110, 0b00000000 }, / / Line #4 { 0b00000000, 0b11111100, 0b00000110, 0b00000110, 0b00000000 }, / / Line #5 { 0b00000001, 0b10000110, 0b00000111, 0b00000110, 0b00000000 }, / / Line #6 { 0b00000011, 0b00000011, 0b00000111, 0b10000110, 0b00000000 }, / / Line #7 { 0b00000110, 0b00000001, 0b10000111, 0b10000110, 0b00000000 }, / / Line #8 { 0b00000110, 0b00000001, 0b10000111, 0b11000110, 0b00000000 }, / / Line #9 { 0b00000110, 0b00000001, 0b10000110, 0b11000110, 0b00000000 }, / / Line #10 { 0b00000110, 0b00000001, 0b10000110, 0b11100110, 0b00000000 }, / / Line #11 { 0b00000110, 0b00000001, 0b10000110, 0b01100110, 0b00000000 }, / / Line #12 { 0b00000110, 0b00000001, 0b10000110, 0b01110110, 0b00000000 }, / / Line #13 { 0b00000110, 0b00000001, 0b10000110, 0b00110110, 0b00000000 }, / / Line #14 { 0b00000110, 0b00000001, 0b10000110, 0b00111110, 0b00000000 }, / / Line #15 { 0b00000110, 0b00000001, 0b10000110, 0b00011110, 0b00000000 }, / / Line #16 { 0b00000011, 0b00000011, 0b00000110, 0b00011110, 0b00000000 }, / / Line #17 { 0b00000001, 0b10000110, 0b00000110, 0b00001110, 0b00000000 }, / / Line #18 { 0b00000000, 0b11111100, 0b00000110, 0b00000110, 0b00000000 }, / / Line #19 { 0b00000000, 0b01111000, 0b00000110, 0b00000110, 0b00000000 }, / / Line #20 { 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, / / Line #21 { 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, / / Line #22 { 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, / / Line #23 { 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000 }, / / Line #24 }; Conclusion Figure 6. Example Bitmap This application note presents a bit-bang methodology to interface with the NKK SmartDisplay. It provides a complete software solution utilizing an ATtiny13A. Additional Information DKAN0003A: Controlling the SmartDisplay with a SPI Peripheral. Digi-Key Corporation. 09 June 2009. Digi-Key Corporation Page 5 of 7

Appendix: Parts List Part DK Part Number Description Mfg Part Number R1 10KQBK-ND RES 10K OHM 1/4W 5% CARBON FILM CFR-25JB-10K R2 3352H-503LF-ND POT 50K OHM THUMBWHEEL CERM ST 3352H-1-503LF R3 20KQBK-ND RES 20K OHM 1/4W 5% CARBON FILM CFR-25JB-20K R4 330QBK-ND RES 330 OHM 1/4W 5% CARBON FILM CFR-25JB-330R R5 1.1KQBK-ND RES 1.10K OHM 1/4W 5% CARBON FILM CFR-25JB-1K1 R6 330QBK-ND RES 20K OHM 1/4W 5% CARBON FILM CFR-25JB-330R L1 811-1309-ND INDUCTOR RADIAL 10UH 1.62A 22R103C C1 445-2867-ND CAP CER 4.7UF 16V Y5V RAD FK24Y5V1C475Z C2 445-2852-ND CAP CER 1UF 16V Y5V RAD FK28Y5V1C105Z C3 445-4802-ND CAP CER.10UF 50V Y5V RAD FK28Y5V1H104Z D1 SR102DICT-ND DIODE SCHOTTKY 20V 1.0A DO-41 SR102-T U1 LM2703MF-ADJCT-ND IC CONV DC/DC MICPWR SOT23-5 LM2703MF-ADJ/NOPB U3 ATTINY13A-PU-ND IC MCU AVR 1K FLASH 2MHZ 8PDIP ATtiny13A-PU U2 360-2334-ND SMARTDISPLAY RED/GREEN/BLUE IS01BFRGB SW1 P8014S-ND 6MM LIGHT TOUCH SW W/GND H=5 EVQ-PBC05R or SW1/U2 360-2332-ND SMARTSWITCH STANDARD RGB IS15ABFP4RGB Digi-Key Corporation Page 6 of 7

Disclaimer This document is for informational use only and is subject to change without prior notice. Digi-Key makes no commitment to update or keep current the information contained herein. Digi-Key does not guarantee or warrant that any information provided is accurate, complete, or correct and disclaims any and all liability associated with the use of the information contained herein. The use of this information and Digi-Key s liability is subject to Digi-Key s standard Terms & Conditions which can be found at www.digi-key.com by clicking on the Terms & Conditions link at the bottom of the web page. No license, whether express, implied, arising by estoppel or otherwise is granted under any intellectual property or other rights of Digi-Key or others. Trademarks DIGI-KEY is a registered trademark of Digi-Key Corporation. All other trademarks, service marks and product names contained herein are the sole property of their respective owner and their use is for informational purposes only and does not imply any endorsement, recommendation, sponsorship or approval by the trademark owner of the contents. Copyright Use of this document is limited to customer s internal business use for the evaluation and purchase of products. No permission is granted to the user to copy, print, store, distribute, transmit, display in public or modify the content of this document in any way for any other purpose. Copyright 2009 Digi-Key Corporation. All rights reserved. Digi-Key Corporation Page 7 of 7