RAM Mapping 16*8 LED Controller Driver with keyscan HT16K33 Revision: V.1.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Table of Contents Feature............................................................................................................................ 1 Applications.................................................................................................................... 1 General Description....................................................................................................... 1 Block Diagram..............................
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Key matrix combination with 20 pin package..........................................................................24 2 I C Serial Interface........................................................................................................ 25 Data validity.............................................................................................................................25 START and STOP conditions....................................
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Feature ●● Operating voltage: 4.5V~5.5V ●● Integrated RC oscillator ●● I2C-bus interface ●● 16*8 bits RAM for display data storage ●● Max. 16 x 8 patterns, 16 segments and 8 commons ●● R/W address auto increment ●● Max.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Block Diagram VDD Power_on reset CO�7 POR POR CO�� Common scan output Ke� scan output Device address source output VSS CO�5 CO�4 CO�3/KS� CO��/KS1 CO�1/KS0 CO�0/AD POR Internal RC Oscillator SDA Timing generator POR POR I�C Controller SCL Displa� RA� 1�*8bits Ke� data RA� 13*3bits ROW0/A� ROW1/A1 POR POR ROW�/A0 Row driver output Interrupt function output Ke� data input Device address data input ROW3/K1 ROW1�/K10 ROW13/K11 ROW
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Pin Assignment
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Pin Description Pin Name SDA SCL VDD VSS COM0/AD COM1/KS0~COM3/KS2 COM4~COM7 ROW0/A2~ROW2/A0 ROW3/K1~ROW14/K12 ROW15/K13 /INT Rev. 1.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Approximate Internal Connections ROW�/A0~ROW0/A�� ROW3/K1~ROW14/K1� SCL� SDA (for schmit Trigger t�pe) ROW15/K13/INT VDD VDD R CO�0/AD� CO�1/KS0~CO�3/KS� R VSS VSS VDD VSS CO�4~CO�7 VDD VSS VSS Absolute Maximum Ratings Supply Voltage .................................................................................................VSS-0.3V to VSS+6.5V Input Voltage .......................................................................
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan D.C. Characteristics Symbol Parameter VDD =4.5~5.5V; Ta=25°C (Unless otherwise specified) Test Conditions VDD Conditions — Min. Typ. Max. Unit 4.5 5 5.5 V VDD Operating Voltage — IDD Operating Current 5 No load, normal operation, INT/ROW bit is set to “0” — 1 2 mA ISTB Standby Current 5 No load, standby mode — 1 10 μA VIH Input high Voltage 5 SDA,SCL 0.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan A.C. Characteristics Symbol Test condition Parameter Min. Max. Unit — — 400 kHZ condition fSCL Clock frequency tBUF Bus free time Time in which the bus must be free before a new transmission can start 1.3 — μs Start condition hold time After this period, the first clock pulse is generated 0.6 — μs tHD; STA tLOW SCL Low time — 1.3 — μs tHIGH SCL High time — 0.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Functional Description Power-on Reset When power is applied, the IC is initialised by an internal power-on reset circuit. The status of the internal circuit after initialisation is as follows: ●● System Oscillator will be in an off state ●● COM0~COM3 outputs are set to VDD ●● COM4~COM7 outputs will be high impedance ●● All Rows pins are changed input pins ●● LED Display is in the off state.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Wake-up ●● Wake-up by a key press from any key or by setting the “S” bit of the system setup register to “1”. A key scan will then be performed. ●● The System Oscillator restarts for normal operation. ●● The previous display data output will be updated by Each Mode command set.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan System Setup Register The system setup register configures system operation or standby for the HT16K33. ●● The internal system oscillator is enabled when the ‘S’ bit of the system setup register is set to “1”. ●● The internal system clock is disabled and the device will enter the standby mode when the “S” bit of the system setup register is set to “0”.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Display Setup Register The display setup register configures the LED display on/off and the blinking frequency for the HT16K33. ●● The LED display is enabled when the ‘D’ bit of the display setup register is set to “1”. ●● The LED display is disabled when the ‘D’ bit of the display setup register is set to “0”. ●● In the display disable status, all ROW outputs are hi-impedance and all COM outputs are highimpedance during the display period.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan System Oscillator ●● The internal logic and the LED drive signals of the HT16K33 are timed by the integrated RC oscillator. ●● The System Clock frequency determines the LED frame frequency. A clock signal must always be supplied to the device; removing the clock may freeze the device if the standby mode command is executed. At initial system power on, the System Oscillator is in the stop state.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Display Memory – RAM Structure ●● The display RAM is a static 16 x 8 -bits RAM which stores the LED data. Logic “1” in the RAM bit-map indicates the “on” state of the corresponding LED Row; similarly, a logic 0 indicates the “off” state. ●● There is a one-to-one correspondence between the RAM addresses and the Row outputs, and between the individual bits of a RAM word and the column outputs.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan ●● Key scan period enlargement Key scan period 1024 μs COM0/AD Hi-Z High 256μs Low Hi-Z COM1/KS0 VDD Hi-Z High Hi-Z VSS VDD Hi-Z VSS VDD 256μs Hi-Z COM2/KS1 High 256μs Hi-Z C0M3/KS2 High 256μs Hi-Z VSS VDD Hi-Z C0M4~COM6 VSS 16 μs C0M7 ROW0/A2~ROW2/A0 ROW3/K1~ROW15/K13 VDD Hi-Z Low 32 μs Hi-Z VSS VDD VSS 32 μs Input status Hi-Z VDD VSS Key data and Slave address are updated Note: The ROW/IN combined pin is set to
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Digital Dimming Data Input The Display Dimming capabilities of the HT16K33 are very versatile. The whole display can be dimmed using pulse width modulation techniques for the ROW driver by the Dimming command, as shown: Rev. 1.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan ●● The relationship between ROW and COM Digital Dimming duty time is as follows: 1040 µs CO�(n) 10�4 µs 1/1� dut� �/1� dut� 3/1� dut� 4/1� dut� 5/1� dut� �/1� dut� 7/1� dut� 8/1� dut� 9/1� dut� 10/1� dut� 11/1� dut� 1�/1� dut� 13/1� dut� 14/1� dut� 15/1� dut� 1�/1� dut� ROW(n) Rev. 1.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Keyscan ●● The keyscan logic uses one, two or three of the KS0, KS1and KS2 logic outputs. An interrupt output that flags a key press is optional. The INT flag can be read (polled) through the serial interface, allowing INT/ROW15 to be used as a general purpose logic output or as a ROW opendrain driver. ●● One small-signal diode is required per key switch when more than one key is connected to KS0, KS1 or KS2.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Keyscan Timing The Slave addresses are updated on the keyscan timing as shown: 1 Frame Display period 1 Frame Display period Key scan period AD COM0/AD COM1/KS0 Display period AD KS0 COM2/KS1 1 Frame Key scan period Display period AD KS0 KS1 COM3/KS2 1 Frame Key scan period KS1 KS2 KS1 Input mode 1 Cycle 2 Cycle 3 Cycle KS1 ∫∫ KS2 KS2 Input mode KS2 ∫∫ ROW0~15 Slave address are updated KS0 ∫∫ Input mode Slave addres
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan 2. When a key is pressed on the KS1 row Press key KS0 KS1 KS2 2 cycle 1 cycle INT_flag INT pin (active low) INT pin (active high) 3. When a key is pressed on the KS2 row Press key KS0 KS1 KS2 1 cycle 2 cycle INT_flag INT pin (active low) INT pin (active high) Rev. 1.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan ●● Key pressed during a keyscan cycle period. (i.e. the key is pressed on the KS2 row) Press first key Keyscan 1 Cycle 2 Cycle 3 Cycle Key data are updated Press second key Release key 5 Cycle 4 Cycle Release key 6 Cycle 7 Cycle Key scan period INT flag INT pin (active low) INT pin (active high) When after the all key data has been read: 1. Clears the key data RAM. 2. The INT flag bit is set to"0” 3.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Key Data Memory – RAM Structure ●● The RAM is a static 16 x 3 -bits RAM which stores key data which keys have been detected as key data by the key scanning circuit. Each bit in the register corresponds to one key switch. The bit is set to 1 if the switch has been correctly key data since the last key data register read operation.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan KEY MATRIX CONFIGURATION An example of key matrix configurations is shown below. When pressing three or more times is assumed: A configuration example is shown below. In this configuration, 1 to 39 ON switches can be recognised. KS0 KS1 = KS2 K1 K2 K3 K4 K5 K6 K7 K8 K9 K10 K11 K12 K13 When pressing twice or more times is assumed: A configuration example is shown below. In this configuration, 0 to 2 ON switches can be recognised.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan ●● If a diode is not available, not only the key data may not be read normally but the LED display may be affected or the ICs may be damaged. For example, if SW1 and SW2 are ON and KS0 has been selected (high level) as shown below, this will cause not only current I1 which is supposed to run but also a short-circuit current I2 of KS0 to KS1 to flow.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Key matrix combination with 24 pin package ●● Without INT pin COM1/KS0 COM2/KS1 COM3/KS2 SEG12/K10 SEG11/K9 SEG10/K8 SEG9/K7 SEG8/K6 SEG7/K5 SEG6/K4 SEG5/K3 SEG4/K2 SEG3/K1 = ●● With INT pin COM1/KS0 COM2/KS1 COM3/KS2 SEG11/K9 SEG10/K8 SEG9/K7 SEG8/K6 SEG7/K5 SEG6/K4 SEG5/K3 SEG4/K2 SEG3/K1 = Key matrix combination with 20 pin package ●● Without INT pin COM1/KS0 COM2/KS1 COM3/KS2 SEG10/K8 SEG9/K7 SEG8/K6 SEG7/K5 SEG6/K4 SEG5/K3 SEG4/K2 SEG3/
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan I2C Serial Interface The HT16K33 includes an I2C serial interface. The I2C bus is used for bidirectional, two-line com���� munication between different ICs or modules. The two lines are a serial data line (SDA) and a serial clock line (SCL). Both lines are connected to a positive supply via a pull-up resistor. When the bus is free, both lines are high.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Acknowledge ●● Each bytes includes eight bits is followed by a single acknowledge bit. This acknowledge bit is a low level put on the bus by the receiver, the master generates an extra acknowledge related clock pulse. ●● A slave receiver which is addressed must generate an acknowledge (ACK) after the reception of each byte.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan ●● When an address byte is sent, the device compares the first seven bits after the START condition. If they match, the device outputs an acknowledge on the SDA line. ●● 28-Pin package: MSB 1 LSB 1 1 0 A2 A1 A0 R/W Slave Address ●● 24-Pin package: MSB 1 LSB 1 1 0 0 A1 A0 R/W Slave Address ●● 20-Pin package: MSB 1 LSB 1 1 0 0 0 0 R/W Slave Address Rev. 1.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Write Operation Byte write operation A byte write operation requires a START condition, slave address with R/W bit, a valid Command code / Register address, a Data and a STOP condition.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Read Operation Byte read operation ●● A byte read operation requires a START condition, slave address with R/W bit, a fix valid Register address, slave address with R bit, a Data and a NACK signal and a STOP condition. ●● The Byte reads command is not available for Key data reading.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Command Summary Name Display data Address pointer System setup Key data Address pointer INT flag Address pointer Command / Address D15 D14 D13 D12 D11 D10 D9 0 0 0 0 0 0 1 1 0 1 0 1 0 0 0 0 A3 X 0 0 A2 X K2 0 D8 Option Description Def. A0 ●●Five bits of immediate data, bits A0 to A3, are transferred to the data pointer to define one of sixteen display RAM addresses.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Command / Address Name ROW/INT set D15 D14 D13 D12 D11 D10 D9 1 0 1 0 X X D8 Option Description Def. Defines INT/ROW output pin select and INT pin output active level status. ●●{X 0}: INT/ROW output pin is set to ROW {act, row/ driver output. row/ act int } A0H int ●●{0, 1}: INT/ROW output pin is set to INT Write only output, active low. ●●{1, 1}: INT/ROW output pin is set to INT output, active high.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan HT16K33 operation flow chart Access procedures are illustrated below by means of flowcharts. ●● Initialisation Power On Internal system clock enable ROW/INT output pin set INT pin output level set Dimming set Blinking set END ●● Display data rewrite – address setting Start Address setting Display data RAM write Display on Next processing Rev. 1.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan ●● Key data read Start yes no no “act” bit is set to “0”=? no row/int select Register set INT / ROW bit=1? yes Int pin bit =0 ? yes no Int pin bit =1 ? no Int flag bit =1 ? yes no yes Read Key data Read Key data Read Key data Read Key data INT pin is set to high level and clears the key data RAM INT pin is set to low level and clears the key data RAM Clear int flag and the key data RAM Clear int flag and clears the key data
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Application Circuit ●● 16*8 display application: (No INT pin function and 13*3 key function) VDD VDD 0.1uF VDD 4.7KΩ 4.7KΩ SCL MCU Row0/A2 Row1/A1 Row2/A0 Row3/K1 Row4/K2 Row5/K3 Row6/K4 Row7/K5 Row8/K6 Row9/K7 Row10/K8 Row11/K9 Row12/K10 Row13/K11 Row14/K12 Row15/K13/INT R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 39KΩ*13 SDA RA0 RA1 RA2 HT16K33 LED matrix VSS VSS VSS COM0 COM1/KS0 COM2/KS1 COM3/KS2 COM4 COM5 COM6 COM7 = Note: 1.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan ●● 12*8 display application: (No INT pin function and 10*3 key function) VDD VDD 0.1uF VDD 4.7KΩ 4.7KΩ SCL SDA MCU Row0/A1 Row1/A0 Row2/K1 Row3/K2 Row4/K3 Row5/K4 Row6/K5 Row7/K6 Row8/K7 Row9/K8 Row10/K9 Row11/K10/INT R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 39KΩ*10 HT16K33 RA0 RA1 LED matrix VSS VSS VSS COM0 COM1/KS0 COM2/KS1 COM3/KS2 COM4 COM5 COM6 COM7 = Note: 1.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan ●● 8*8 display application: (No INT pin function and 8*3 key function) VDD VDD 0.1uF VDD 4.7KΩ R1 R2 R3 R4 R5 R6 R7 R8 Row0/K1 Row1/K2 Row2/K3 Row3/K4 Row4/K5 Row5/K6 Row6/K7 Row7/K8/INT 4.7KΩ SCL 39KΩ*8 SDA MCU HT16K33 COM0 COM1/KS0 COM2/KS1 COM3/KS2 COM4 COM5 COM6 COM7 VSS VSS LED matrix VSS = Note: 1. The I2C slave address (A0~A2) =000. 2.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan LED Matrix Circuit ROW0 ROW1 ROW� ROW3 ROW4 ROW5 ROW� ROW7 ROW8 ROW9 ROW10 ROW11 ROW1� ROW13 ROW14 ROW15 CO�0 Rev. 1.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Package Information 20-pin SOP (300mil) Outline Dimensions MS-013 Symbol Min. Nom. Max. A 0.393 ― 0.419 B 0.256 ― 0.300 0.020 C 0.012 ― C’ 0.496 ― 0.512 D ― ― 0.104 E ― 0.050 ― F 0.004 ― 0.012 G 0.016 ― 0.050 H 0.008 ― 0.013 α 0° ― 8° Symbol Rev. 1.10 Dimensions in inch Dimensions in mm Min. Nom. Max. A 9.98 ― 10.64 B 6.50 ― 7.62 C 0.30 ― 0.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan 24-pin SOP (300mil) Outline Dimensions MS-013 Symbol Nom. Max. A 0.393 ― 0.419 B 0.256 ― 0.300 C 0.012 ― 0.020 C’ 0.598 ― 0.613 0.104 D ― ― E ― 0.050 ― F 0.004 ― 0.012 G 0.016 ― 0.050 H 0.008 ― 0.013 α 0° ― 8° Symbol Rev. 1.10 Dimensions in inch Min. Dimensions in mm Min. Nom. Max. A 9.98 ― 10.64 B 6.50 ― 7.62 C 0.30 ― 0.51 C’ 15.19 ― 15.57 2.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan 28-pin SOP (300mil) Outline Dimensions MS-013 Symbol Nom. Max. A 0.393 ― 0.419 0.300 B 0.256 ― C 0.012 ― 0.020 C’ 0.697 ― 0.713 0.104 D ― ― E ― 0.050 ― F 0.004 ― 0.012 G 0.016 ― 0.050 H 0.008 ― 0.013 α 0° ― 8° Symbol Rev. 1.10 Dimensions in inch Min. Dimensions in mm Min. Nom. Max. A 9.98 ― 10.64 7.62 B 6.50 ― C 0.30 ― 0.51 C’ 17.70 ― 18.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Package Information Product Tape and Reel Specifications Reel Dimensions Reel Dimensions SOP 28W (300mil) SOP 20W, SOP 24W, SOP 28W (300mil) Symbol Symbol A A B B C D C T1 D T2 T1 T2 Description Description Reel Outer Diameter Reel Outer Diameter Reel Inner Diameter Reel Inner Diameter Spindle Hole Diameter Hole Diameter KeySpindle Slit Width Dimensions in mm Dimensions in mm 330.0 1.0 330.0±1.0 100.0±1.5 100.0 1.5 13.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Package Information Carrier Tape Dimensions Carrier Tape Dimensions 20W SOPSOP 28W (300mil) Symbol Description Symbol Description W Carrier Tape Width Carrier Tape Width PW Cavity Pitch EP Perforation Position Cavity Pitch F Cavity to Perforation (Width Direction) Perforation Position DE Perforation Diameter D1F Cavity Hole Diameter (Width Direction) Cavity to Per
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan SOP 28W (300mil) Symbol W P E F D D1 P0 P1 A0 B0 K0 t C Rev. 1.10 Description Carrier Tape Width Cavity Pitch Perforation Position Cavity to Perforation (Width Direction) Perforation Diameter Cavity Hole Diameter Perforation Pitch Cavity to Perforation (Length Direction) Cavity Length Cavity Width Cavity Depth Carrier Tape Thickness Cover Tape Width Dimensions in mm 24.0±0.3 12.0±0.1 1.75±0.10 11.5±0.1 1.5+0.1/-0.0 1.50+0.25/-0.00 4.0±0.1 2.0±0.
HT16K33 RAM Mapping 16*8 LED Controller Driver with keyscan Copyright© 2011 by HOLTEK SEMICONDUCTOR INC. The information appearing in this Data Sheet is believed to be accurate at the time of publication. However, Holtek assumes no responsibility arising from the use of the specifications described.