Download Print this page
Holtek HT16L21 Manual

Holtek HT16L21 Manual

Bd player panel application

Advertisement

Quick Links

HT16L21 BD Player Panel Application
D/N: AN0478E
Introduction
Holtek has released a new low operating voltage driver IC, the HT16L21, which supports
three display modes, 32seg × 4com LCD, 28seg × 4com LCD with 4 LEDs and 24seg ×
4com LCD with 8 LEDs. The SEG24~SEG31 pins are pin-shared with the LED7~LED0
pins. The device also provides I
with the master MCU.
This application note will introduce how to use the HT16L21 to drive Blu-ray Display LCD
panels (25seg × 4com) and 4 LEDs with a master MCU HT68F40 using the I
with the aim of increasing user's understanding of the HT16L21 characteristics and
applications.
Operating Principle
Brief Specification
Operating voltage: 1.8V~5.5V
LCD operating voltage V
Internal 32kHz RC oscillator
Supports I
Integrated LED driver
Four selectable LCD frame frequencies: 64Hz, 85.3Hz, 128Hz, 170.6Hz
Versatile blinking modes: OFF, 0.5Hz, 1Hz, 2Hz
Integrated regulator to adjust the LCD operating voltage: 3.0V, 3.2V, 3.3V, 3.4V, 4.4V,
4.5V, 4.6V, 5.0V
32×4 bit RAM for storing display data
LCD display mode: 1/4 duty, Max. 32×4 pixel
Two package types: Dice, 44-pin LQFP
AN0478E V1.00
HT16L21 BD Player Panel Application
2
C or 3-wire SPI serial interfaces for easy data transfers
: 2.4V~5.5V
LCD
2
C or 3-wire SPI serial communication interface
1 / 18
2
C interface,
February 5, 2018

Advertisement

loading
Need help?

Need help?

Do you have a question about the HT16L21 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Holtek HT16L21

  • Page 1 C or 3-wire SPI serial interfaces for easy data transfers with the master MCU. This application note will introduce how to use the HT16L21 to drive Blu-ray Display LCD panels (25seg × 4com) and 4 LEDs with a master MCU HT68F40 using the I C interface, with the aim of increasing user’s understanding of the HT16L21 characteristics and...
  • Page 2: Data Transfer Format

    HT16L21 BD Player Panel Application LCD Display RAM The LCD Display RAM is used to store the LCD display data. A Logic “1” indicates the “on” state of the corresponding LCD segment while similarly a logic 0 indicates the “off” state.
  • Page 3  Byte Write Operation The master MCU writes data to the HT16L21, which can be divided into command type and LCD Display RAM type. The write command operation can be divided into Single Command Type and Compound Command Type.
  • Page 4 HT16L21 BD Player Panel Application  Display RAM Consecutive Write Operation Slave Address Command byte Register Address byte Write Data byte Data byte Data byte n bytes data (n+1) bytes data (n+x) bytes data For a LCD display RAM consecutive write operation, the master MCU should send a slave address with an R/ bit 0x70, a Display Data Input/Output Command byte 0x80, a RAM Start Address byte to be written.
  • Page 5 The master MCU sends the operation command directly to the HT16L21.  Compound Command Type If the HT16L21 wishes to setup 28 segments by 4 commons together with 4 LEDs as the driver output mode, the master MCU should send a Command byte 0x82 as the driving mode setting command and then a command setting byte 0x20 in turn for a compound command write operation.
  • Page 6: Command Summary

    Note: When the master MCU writes or reads the received LCD Display RAM data to the HT16L21 via the I interface, it needs to send the command 0x80 first and then send the start address of the RAM to be written or read after sending the slave address.
  • Page 7 HT16L21 BD Player Panel Application  Driver Mode Setting Commands Function Byte Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Note R/W Def. Driver mode setting command Duty and Bias setting Bias Note: Bit0 (Bias) Bias 1/3bias 1/2bias Segment/LED shared pin selected...
  • Page 8 HT16L21 BD Player Panel Application  Blinking Setting Command Function Byte Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Note Def. Blinking setting command Blinking Frequency Note: Blinking Frequency Blinking off 0.5Hz This set of commands is used to select the full screen blinking frequency on LCD Panel.
  • Page 9: Application Circuits

    HT16L21 BD Player Panel Application Display Panel Introduction The display panel in this example is shown in the following diagram: Figure 1: Display Panel Block Diagram The display contents are as follows: 1. The “HDD”, “BD”, “SD” and “VHS” icons are the video source display.
  • Page 10: Bottom Board

    The one-way 5.0V power is used as the LCD Panel driving voltage source and then the other-way 5.0V power provides a 2.5V voltage for the HT68F40 and HT16L21 operations by using the HT7525 LDO. The device also provides a ICP interface for users to download code.
  • Page 11 HT16L21 BD Player Panel Application S/W Flow Chart This program is used to drive the Blu-ray Display LCD panel (25seg x 4com) and 4 LEDs in the application note, including initialisation, main program and timer interrupt service subroutine. The flow chart of each part is shown in the following figure.
  • Page 12 HT16L21 BD Player Panel Application Start MCU system initial run _count=0 , Power on / Run_ count>4? disp_task_ num=0? ++disp_ task_num Reset display run _count=0 , Run_ count>3? BD_Play disp_task_num1 ? ++disp_ task_num run _count=0 , Run_ count>5? HDD_Play disp_task_ num=2?
  • Page 13 HT16L21 BD Player Panel Application Tmr_int Site Protection t2af=0 , ++time_ count5 time_ count6 =Fren_count? time_count5=0, Whether the default blinking tIme_count5 ≥ 4 ? ++time_count6 frequency is reached ? led_ pwm=1 (RGB LED blinking flag), time_count6=0 i2c_send=0, i2c_send2 =0, ++Time_count1,...
  • Page 14 RAM Buffer and then write the data from the RAM Buffer into the HT16L21 via the I C interface. In order to improve the system ESD and EFT capability, repeat the HT16L21 initialisation in the interrupt subroutine. AN0478E V1.00 14 / 18...
  • Page 15 LCD RAM by using the i2c_write_data subroutine when the send_flag variable is 1. 2. Repeat the HT16L21 initialisation in the interrupt subroutine to improve the system ESD and EFT capability. In this example, execute an HT16L21 initialisation every 2.5ms.
  • Page 16 Display telephone number ● Display the video source HDD to download ● Display HOLTEK, HT16L21 and LV 1.8V ● RGB LED blinks with a 1Hz frequency during the download process ● Display the download time and system time in turn AN0478E V1.00...
  • Page 17: Program Example

    PCB&SCHV01.zip Conclusion This application note has taken an HT68F40 as a master MCU to control the HT16L21 which drives a Blu-ray LCD display as an example. The application note has analysed the circuit structure and program in the Demo Board, giving suggestions regarding programming to control the HT16L21.
  • Page 18: Limitation Of Liability

    Hyperlinks to other websites are at your own risk. Limitation of Liability In no event shall Holtek Limited be liable to any other party for any loss or damage whatsoever or howsoever caused directly or indirectly in connection with your access to or use of this website, the content thereon or any goods, materials or services.