Using the HT16K33 in DVD Player Panel Applications

Similar documents
HT16K23 RAM Mapping 20 4/16 8 LCD Controller Driver with Keyscan

Using the HT16C2x I 2 C Interface for LCD Driving and Control

Driving Matrix LEDs Using the HT1632C to Display an Animated Figure

PIC Microcontroller Introduction

ST Sitronix ST7565P. 65 x 132 Dot Matrix LCD Controller/Driver

ST Sitronix ST7565R. 65 x 132 Dot Matrix LCD Controller/Driver. Ver 1.3 1/ /11/25

Microcomputer Architecture and Programming

SH69P55A EVB. Application Note for SH69P55A EVB SH69P55A EVB SH69V55A

RA8835A. Dot Matrix LCD Controller Specification. Version 1.1 September 18, RAiO Technology Inc. Copyright RAiO Technology Inc.

RA8835. Dot Matrix LCD Controller Specification. Version 1.2 June 1, RAiO Technology Inc. Copyright RAiO Technology Inc.

1. Features and Benefits

TL0313. LCD driver IC. Apr VER 0.0. lsi. ( 5.5V Specification ) 65COM / 132SEG DRIVER & CONTROLLER FOR STN LCD. TOMATO LSI Inc.

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

8. SED1565 Series. (Rev. 1.2)

Using the Library to jump from the User Code to the Bootloader Code in the HT66FB5x0 and HT68FB5x0

PAN502x Capacitive Touch Controller Datasheet

HT1628 RAM Mapping LCD Driver

NT7532 V X132 RAM-Map LCD Controller/Driver. Preliminary

A0061. Overview. Features. Ordering Information. HSS Touch Signature IC 15 Input - I 2 C. Part Number Format: A X Y Z

Freescale Semiconductor, Inc.

Sitronix. ST7038i FEATURES GENERAL DESCRIPTION. Dot Matrix LCD Controller/Driver

FT6336G. Self-Capacitive Touch Panel Controller INTRODUCTION FEATURES

ST Sitronix ST7565R. 65 x 132 Dot Matrix LCD Controller/Driver. Ver 1.7 1/ /06/01

HT1621. RAM Mapping 32 4 LCD Controller for I/O µc. Features. General Description. Selection Table

MF S1D15714D00B000. Preliminary. Rev. 0.5

SH69P48A EVB. Application Notes for SH69P48A EVB SH69V48A JP2 J4(ICE_J4) S1 IDD TEST JP1 74HC273 JP4 JP3 74HC273 JP6 STKOVE JP7 SW1 J5(ICE_J5)

Hello, and welcome to this presentation of the STM32 I²C interface. It covers the main features of this communication interface, which is widely used

AN10210 Using the Philips 87LPC76x microcontroller as a remote control transmitter

68 x 102 Dot Matrix LCD Controller/Driver 1. INTRODUCTION

SH69P21 EVB. Application Note for SH69P21 EVB SH69P21 EVB SH69P21

FT6x06. Self-Capacitive Touch Panel Controller INTRODUCTION FEATURES

1.3inch OLED User Manual

KS COM / 132 SEG DRIVER & CONTROLLER FOR STN LCD

AN10210 Using the Philips 87LPC76x microcontroller as a remote control transmitter

Obsolete. LX1800 SMBus TO ANALOG INTERFACE

HT1611/HT1611C Timer with Dialer Interface

A0021. Overview. Features. Ordering Information. HSS Touch Signature IC 6 Input - I 2 C. Part Number Format: A X Y Z

BV4542. I2C or Serial 16x2 with Keypad interface

LABORATORY MANUAL Interfacing LCD 16x2, Keypad 4x4 and 7Segment Display to PIC18F4580

JUL. 27, 2001 Version 1.0

INTERFACING 16 2 LCD WITH 8051

HT1635A/B Wearable Sports Bracelet LED Display Application

BL24C02/BL24C04/BL24C08/BL24C16

SSD1307. Advance Information. 128 x 39 Dot Matrix OLED/PLED Segment/Common Driver with Controller

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

LCD. Configuration and Programming

Capacitive Touch Remote Control Reference Design User s Guide

Freescale Semiconductor, I

I/O Emulated UART Baud Rate Calibration Application Note

SSD1327. Advance Information. 128 x 128, 16 Gray Scale Dot Matrix OLED/PLED Segment/Common Driver with Controller

HT48RA0-2/HT48CA0-2 Remote Type 8-Bit MCU

TTP226. Preliminary 8 KEYS TOUCH PAD DETECTOR IC GENERAL DESCRIPTION

SSD1305. Advance Information. 132 x 64 Dot Matrix OLED/PLED Segment/Common Driver with Controller

BV4218. I2C-LCD & Keypad. Product specification. December 2008 V0.a. ByVac 2006 ByVac Page 1 of 9

Laboratory 10. Programming a PIC Microcontroller - Part II

Question Bank Microprocessor and Microcontroller

Nuvoton NCT5655Y/W. 16-bit I 2 C-bus and SMBus GPIO controller with interrupt. Revision: 1.0 Date: May, 2016 NCT5655Y/W

HT49R10A-1/HT49C10-1 LCD Type 8-Bit MCU

TTP229-LSF TonTouch TM

SNC Four Channels Speech Controller

Emulating I2C Bus Master by using FlexIO

HT95R6x CPT (Call Progress Tone) Decoder Function

Using the HT9B95G in Three-Phase Electric Meter LCD Display Panel Applications

INTEGRATED CIRCUITS DATA SHEET. PCF2119x-2 LCD controllers/drivers. Product specification File under Integrated Circuits, IC12

8051 Microcontroller

Using the HT48R008 to Control a Bidirectional LED Array and Touch Keys

DC6688FL32TC Super 1T 8051 Microcontroller

Elan Microelectronics Crop. EM COM/ 128SEG 4096 Color STN LCD Driver October 12, 2004 Version 1.2

SSD1309. Advance Information. 128 x 64 Dot Matrix OLED/PLED Segment/Common Driver with Controller

HT46R46/C46/R47/C47/R48A/C48A/R49 Cost-Effective A/D Type 8-Bit MCU

Nuvoton Touch Key Series NT1160 Datasheet

INTEGRATED CIRCUITS DATA SHEET. PCF2119X LCD controllers/drivers. Product specification Supersedes data of 2002 Jan 16.

34 Series EEPROM Application Note. 1. Introduction. 2. Power supply & power on reset

Approximately half the power consumption of earlier Renesas Technology products and multiple functions in a 14-pin package

SSD1355. Advance Information. 128 RGB x 160 Dot Matrix OLED/PLED Segment/Common Driver with Controller

RW1026G Revision History Version Date Description

FT5x26. True Multi-Touch Capacitive Touch Panel Controller INTRODUCTION FEATURES

n/a PIC12F629-I/P (RC) n/a PIC12F629-I/SN (RC) n/a PIC12F675-I/P (RC) n/a PIC12F675-I/SN MICROCONTROLLER (RC)

Using the HT45R36 and HT45R38 to implement Touch Switches

DATA SHEET. PCF2113x LCD controller/driver INTEGRATED CIRCUITS Apr 04

HT46F46E/HT46F47E/HT46F48E/HT46F49E. Cost-Effective A/D Flash Type 8-Bit MCU with EEPROM. Technical Document. Features. General Description

8051 Microcontrollers

Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their

S6B SEG / 65 COM DRIVER & CONTROLLER FOR STN LCD

EXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip.

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

FM24C Kb FRAM Serial Memory Features

Locktronics PICmicro getting started guide

RL78 Serial interfaces

SH67P33A / SH66K33A EVB

Parallel Display Specifications Revision 1.0

Pin Assignment 2 ) # 2 ) % 2 ) $ 2 )! 2 ) 6 2 ) 2 )! " 4 # $ % /, & ' ' & % $ # "! 2 ) " : /, * ) 6 8,, * $ * 2 ) # 2 ) %

Product Information. Features. Table of Contents EA DIP162 DN3LW EA DIP162 DHNLED EA DIP162 DNLED EA DIP162J DN3LW

KNJN I2C bus development boards

Chapter 2 Sections 1 8 Dr. Iyad Jafar

SH X 64 Dot Matrix OLED/PLED Segment/Common Driver with Controller. Features. General Description 1 V2.2

5x7 LED Matrix Display with Z8 Encore! XP

PMS165C. 8bit IO-Type Controller

Description: 4x 7 segment display module with decimals and colon

DS1682 Total-Elapsed-Time Recorder with Alarm

Transcription:

Using the HT16K33 in DVD Player Panel Applications D/N:AN0363E Introduction The HT16K33 is a memory mapping and multi-function LED controller driver. The maximum display capacity in the device is 128 dots (16 segments 8 commons) with a 13 3 (Max.) matrix key scan circuit. The software configuration features of the HT16K33 make it suitable in a wide range of LED applications including LED modules and display subsystems, such as industrial control indicators, digital clocks, thermometers, counters, multimeters, VCR sets and others. The device can easily communicate with other microcontrollers using its I²C interface. Demo Basic Features Operating Voltage: 4.5V ~ 5.5V Integrated RC oscillator I 2 C bus communication interface Can upgrade its programs in-circuit using a 5-pin interface 16 levels of LED brightness control 16 8 bit RAM for display data storage Supports a maximum 16 8 dot display: 16 segments 8 commons Integrated key-scan function with a maximum of up to 13 3 key matrix Pressing any key can wake-up the system from the standby mode Package type: 20/24/28-pin SSOP Demo Function and Usage Description Demo Functional Description LED Display Function Display the playing track or the time and the state of the current playing mode. Track selection and the LED Panel brightness setting function select the track; adjust the LED panel brightness level. Playing mode selection function In the stop mode, setup the playing mode by pressing the Mode switch. 1

Demo Usage Description ICP Track Timer Power KeyBoard Input Switch Power Mode Play Stop Pause PBC Fast Bright Up Down Function Power:Enable / Disable LED display (1) Enable the LED Panel display, the Power LED remains on. (2) Enter the standby mode, the LED Panel display is off, the Power LED is flashing. First press on the Power Switch (Initial): (1) The Track, Hour and Minute display 0, the DVD lights up. (2) The Dial, and all light up. (3) The brightness is set to the maximum value (display 016). (4) The HT16K33 supports a function where any key can wake up the system from the Standby Mode. Therefore after being woken up, it will display the function which the Key Data read out belongs to. For example, if the Play switch is pressed to wake up the system, then it will start the Play function and display the relevant state. Mode: playing mode setting Initial state: DVD display is on; Press the Mode switch: DVD display is off, VCD display is on and the VCD playing mode is entered; Press the Mode switch again: VCD display is off, MP3 display is on and enter the MP3 playing mode; Press the Mode switch again: VCD display is off, DVD display is on. Return to the VCD playing mode. The three playing modes can be obtained cyclically as above. Play: the music play switch (1) and light up, the dial rotates. (2) Play the music from the list 001 (increasing). (3) Minute and second are increasing. Stop: the music playing stop switch (1) Track, Hour and Minute all display 0. (2) The Dial, and all light up. (3) and are off. Pause: the music playing pause switch (1) Display the current state, the dial and timer stop until the Play switch is pressed. (2) Press the Bright switch then it will display the brightness level in the Track display area. The brightness can be adjusted. A short time after the adjustment, it will return to display the track just stopped. PBC:PBC function control switch (1) Press the switch, the PBC lights up; press the switch again, the PBC is off. (2) In the PBC mode, display is off. Fast: Track adjustment switch (1) Must be in Play state. (2) Then press the Up SW, increase the current track displayed in the track area by 1, the maximum can be 999. (3) Then press the Down SW, the current track displayed in the track area minus 1, the minimum can be 000. Bright: LED Panel brightness adjustment switch Under any condition, it can be adjusted from 000~016 displayed briefly in the track area. In the Fast SW mode, the track will increase by one. If the switch is held down it will automatically increment quickly. In the Bright SW mode, the LED Panel brightness will increase by one. If the switch is held down it will automatically increment quickly. In the Fast SW mode, the track will increase by one. If the switch is held down it will automatically decrement quickly. In the Bright SW mode, the LED Panel brightness will increase by one. If the switch is held down it will automatically decrement quickly. 2

Hardware Design Principles Hardware Block Diagram Hardware Diagram Description The complete system consists of a 5V Adapter, a Keyboard, an LED display panel, the master MCU HT68F30 and the driver chip HT16K33. Keyboard: select functions by pressing the corresponding key LED display panel: indicate the different function state 5V Adapter: Supplies power for the MCUs. Hardware Operating Principle HT68F30 Control Circuit Circuit Description: PA0, PA2, RESB: ICP download lines PA3/INT0: HT16K33 interrupt pin input PA4, PA5: I²C data and clock pins PB5: Power LED driver pin After power on, the HT16K33 enters the Standby Mode and the Power LED will be flashing. The LED panel display will be off. Then press the Power switch. The Power LED will remain on and the device will exit the Standby Mode. If the Power switch is pressed again, it will enter the Standby Mode and the Power LED will again flash. 3

HT16K33 KeyBoard and LED Panel Driver Circuit S/W Flowchart and Description The following program description and attachments give details about the flowchart and the corresponding circuit. Refer to the HT16K33 datasheet for the related descriptions regarding initialisation, reading the key data, rewriting display data (address setting) and others. The main Flowchart steps are the following: Initialisation HT16K33 power on reset and ensure a delay time is implemented Initialise settings for the HT16K33 internal system clock, dimming, blinking and display Start Initial Delay 100ms for HT16K33 Power on reset Internal system clock enable ROW/INT pin set INT Output Low level Diming, Blinking, Display all off Bright Level and Data that will transimit to Display RAM initial Time Base0 1. According the External Int Flag or Every 24ms Read RAM 40H~45H To check Key Trigger. 2. If Has Key Trigger, Read Key Value and Set the Relevant Flag, then deal with the Key events and set Variable the relevant Value CLR WDT Time Base1 1. According to the setted Variable Value, finish writing the display RAM 00H~0DH through one arithmetic 2. According to the Key Flag to Control the Power LED light on or Dimming 4

Main Flowchart Description Every 24ms a TimeBase 0 interrupt is generated to implement key scanning or according to the external interrupt flag, to read the key value. After reading the key value, the key events are managed and the relevant flags set. After the next 24ms arrival, check whether the key is released. If not, determine if it is a long key press; if yes, then take it as a normal key press. In the TimeBase1, the program will rewrite the Display RAM after using a shifting algorithm to the variable values which are set in the TimeBase0 and determine whether it is the brightness that is to be adjusted and to then display the LED Panel brightness value. Another purpose for TimeBase1 is to control the Power LED light on or off according to the key flag. As can be seen in the Display RAM description above, the COM0~COM7 automatically output their waveform. Changes to any one of them will lead to a rewrite in the 8-byte space which also means every change to the display requires a rewrite to all the RAM data. In the application program, there are ten ROW control bits, DG0_temp~DG9_temp, which are obtained from a look-up table. After sequentially shifting the bits with the same odd and even data together, write the new data shifted out to the RAM. Finally shift out the 8 bits of data of each byte and write them to the corresponding Display RAM to complete a data update. Shift data Flowchart: Eight Even RAM Rows RRC DG0_temp Two Odd RAM Rows RRC DG8_temp RRC DG1_temp RRC DG9_temp RRC DG2_temp CLR C RRC DG3_temp RRC DG4_temp RRC DG5_temp RRC DG6_temp RRC DG7_temp Write DG_num_temp into Display RAM Write DG_num_temp into Display RAM 5

The data DG0_temp~ DG9_temp is obtained by looking-up the table which controls the ROW0~ROW9 display. Shift the corresponding data bits as follows: first bit, second bit until the eighth bit in turn and finally get ten new bits of data. Sequentially write them to the corresponding region control the ROW0~ROW9 display, then the data update is complete. Another point to note is the HT16K33 command code Write Flowchart: Write Command Form Example: Enable internal system oscillation HT16K33 I 2 C Start HT16K33 I 2 C Start Send Write Command 0E0H of HT16K33 Send Write Command 0E0H of HT16K33 Move temp_data to I 2 C Bus Move 21H to I 2 C Bus HT16K33 I 2 C Stop HT16K33 I 2 C Stop Note: 1. Uses the page-read method to read the RAM key data and finish reading the data at the address of 40H~45H in one operation. 2. After the HT16K33 command code setup and power on initialisation, the next step is to enable the internal oscillator. 3. The HT16K33 allows any key to wake up the system. 6

PCB Layout Notes The SCL and SDA lines should be parallel and as short as possible. The resistors and capacitors connected to the SCL and SDA lines, which are R5, R6, C6 and C7, should be located as close to the IC as possible. The Reset circuit should be located as close to the IC as possible The power decoupling capacitors, such as C2 (0.1µF) and C5 (0.1µF), which are connected between VDD and VSS, should be located as close to the ICs as possible. The power cables should be as thick as possible and start from the power pin. Connect a capacitor and then to the load. As the pin pitch of the HT16K33 is 25mil, special attention must be made to the trace width. RESET circuit is close to the IC A 104 capacitor is located between the power pin and the IC SCL and SDA Lines are parallel References Refer to the HT16K33 datasheet. Accessory Source Code file. 7