product, with strict quality control Segment LCD Display factories, producing high quality Segment LCD Display products." />
Product Details:
|
Product: | HT1621 Controller Segment LCD | Display Mode: | Positive / Negative, Transflective/Reflective |
---|---|---|---|
Driving Condition: | 1/8 Duty Or Customizable | Operating Voltage: | 3.0 V |
Optics: | 6:00 | Display Type: | Transflective / Reflective / Transmissive |
Size: | Customizable | Backlight: | White / Amber / Blue / Yellow |
Operating Temp: | -30°C To +80°C | Storage Temp.: | -35°C To +85°C |
Connection: | Metal Pin Connection | Dot Space: | 0.1 Mm |
Response Time: | 0.1 Ms | Compliance: | REACH & RoHS Compliant |
HT1621 Controller Segment Code LCD Display Module, Customize Segment LCD Display With Backlight
Let's take a look at the characteristics of the 1621-segment LCD screen
* Operating voltage 2.4 --5.2V * Embedded 256KHz RC oscillator
* External 32KHz chip or 256KHz frequency source input can be connected
* Selectable 1/2bais or 1/3bais bias and duty cycle of 1/2duty, 1/3duty, 1/4duty
* On-chip time-base frequency source
* The buzzer can be selected with two frequencies
* Built-in timebase generator and watchdog timer WDT
* Timebase or watchdog timer overflow output
* Eight time-base/watchdog timer clock sources
* One 32segX 4com LCD driver with embedded 32X 4-bit display RAM memory
* Four-wire serial interface /CS, DATA, WR, RD, generally not used by RD
* The on-chip LCD drive frequency is not adjustable at 64HZ
* Software configuration features: data mode and command mode two commands
* VLCD pins are provided for adjusting the LCD operating voltage (contrast adjustment)
LCD logical table correspondence
The RAM of HT1621 corresponds to the logical table in the figure above. This is a good understand,
HT1621 corresponds to 32 addresses, and each address corresponds to 4 COM data
For example, if a 0 address is written to 0X08 T1 of SGE0 is lit
Write 0X01 corresponds to the 1F light of SGE0
Write 0X02 1G brightness corresponding to SGE0
Write 0X07 1E, 1G, and 1F of SGE0 are lit together
Write 0X0F All 1E, 1G, 1F, and T1 of SGE0 are bright
HT1621 can be written consecutively, and it is best to write two addresses at a time, so that it is easy to make a table table, and it is easy to write.
For example, the first two addresses are written 0XF7 corresponding to SGE0, SEG1, 1E, 1G, 1F, 1D, 1C, 1B, and 1A are all lit, so that a full "8" character is displayed.
In order to make the LCD display, these instructions must be written in the initialization of the IC.
First, let's understand what instructions are and what data is
1 0 0 C8 C7 C6 C5 C4 C3 C2 C1 C0
The first three digits of 100 are the flag bits of the instruction, and the last 9 bits are the instruction values
1 0 1 C7 C6 C5 C4 C3 C2 C1 C0
The first three digits 101 are the flag bits of the data, and the last 8 bits are the data
That is, seeing the first three digits of 100 represents the instruction, and seeing the first three digits of 101 represents the data
The following four instructions should be written into the initialization function
1. SYS EN 100 0000 - 0001- X Instruction 0X01 (Open Closed System Oscillator) X: Don't care
2. BIAS 100 0010 - abXc - X command
Here's an explanation: C=1 is LCD1/3 bias; C=0 is LCD1/2 bias
ab=00: 2 COM
ab=01: 3 COM
ab=10: 4 COM
3. RC256 100 0001-1000 - X Instruction 0X01 (Internal Clock) X: Don't care
4. LCDON 100 0000 - 0011 - X Instruction 0X01 (Turn on LCD display) X: Don't care
Here's an explanation of my program C code
#include <reg51.h>
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int
#define _Nop() _nop_(); _nop_(); _nop_(); _nop_(); _nop_(); _nop_(); _nop_()
#define BIAS 0x29 //0b100 - 0010 -1001 - 0 1/3duty 4com
#define SYSDIS 0X00 //0b100 - 0000 - 0000 - 0 off oscillator system oscillator and LCD bias generator
#define SYSEN 0X01 //0b100 - 0000 - 0001 - 0 Turn on the system oscillator
#define LCDOFF 0X04 //0b100 - 0000- 0010 - 0 off LCD display
#define LCDON 0X03 //0b100 - 0000 - 0011 - 0 Turn on the LCD display
#define XTAL 0x14 //0b100 - 0001- 0100 - 0 external clock
#define RC256 0X18 //0b100 - 0001 - 1000 - 0 internal clock
#define TONEOFF 0X10 //0b1000 0001 0000 Turn off the sound output
#define WDTDIS 0X0A //0b1000 0000 1010 Watchdogs are prohibited
HT1621 control bit (LCD module interface definition, change according to your own needs)
sbit DAT=P1^0;
sbit wr=P1^1;
sbit CS1=P1^2;
uchar code table[10]={0xFA,0x0A,0xD6,0x9E,0x2E,0xBC,0xFC,0x1A,0xFE,0xBE}; 0---9 table
Delay function 1 delay us///////
void Delay(uint us)
{
while(--us);
}
Delay function 2 ////
void DelayMS(uint iMs)
{
uint i,j;
for(i=0; i<iMs; i++)
for(j=0; j<65; j++)
;
}/******************************************************
Function name: void Ht1621Wr_Data(uchar Data,uchar cnt)
For writing data functions, cnt is the number of data bits to be transmitted, and the data is transmitted to the high bits first
*******************************************************/
void Ht1621Wr_Data(uchar Data,uchar cnt)
{
uchar i;
for (i=0;i<cnt;i++)
{
wr=0;
if (Data&0x80)
DAT=1;
else
DAT=0;
wr=1;
Data<<=1;
}
}
/********************************************************
Function name: void ht1621WrCmd(uchar cmd)
Description: Write instructions
********************************************************/
void Ht1621WrCmd(uchar Cmd)
{
CS1=0; Slice selection CS is low and effective
_Nop();
Ht1621Wr_Data(0x80,3); Write instruction flag 100
Ht1621Wr_Data(Cmd,9); Write instruction data
CS1=1; Slice selection CS high close
_Nop();
}/********************************************************
Function name: void ht1621WrOneData(uchar addr,uchar data)
Write a piece of data,
1. Write the identification bit of 101 data first
2. Write the address again
3. Finally, write the data to be displayed
********************************************************/
void Ht1621WrOneData(uchar Addr,uchar Data)
{
CS1=0;
Ht1621Wr_Data(0xa0,3); Write data flag 101
Ht1621Wr_Data(Addr<<2,6); Write address data
Ht1621Wr_Data(Data,8); Write data, here are two addresses written together to 8 bits
CS1=1;
/********************************************************
Function name: void ht1621WrAllData(uchar addr,uchar p)
Description: HT1621's data bit 4 bits one address,
Above we talked about writing two bits at a time, and the data is 8 bits.
The upper four digits correspond to ---- high address The fourth digit ----- corresponds to the low address.
********************************************************/
void Ht1621WrAllData(uchar Addr,uchar p)
{
uchar i;
CS1=0;
Ht1621Wr_Data(0xa0,3); Write data flag 101
Ht1621Wr_Data(Addr<<2,6); Write address data
for (i=0; i<16; i++)
{
Ht1621Wr_Data(p,8); Write data 16X8=128bit
}
for (i=0; i<32; i++)
/ /{// Here is a four-bit, four-bit write data
Ht1621Wr_Data(p,4); Write data 32X4=128bit
//}
CS1=1;
}
/********************************************************
Function name: void Ht1621_Init(void) www.xyhlcd.com
Description: After initialization, the LCD screen can work normally
********************************************************/
void Ht1621_Init(void)
{
CS1=1;
DAT=1;
DelayMS(200); The time delay makes the LCD working voltage stable
Ht1621WrCmd(BIAS); BIAS settings
Ht1621WrCmd(RC256); Use an internal oscillator
Ht1621WrCmd(SYSEN); Turn on the system oscillator
Ht1621WrCmd(LCDON); Turn on the LCD display
}/////////////////////////////////////////////////////////////////
Function name: xianshi_1()
Customers can follow their own needs, directly fill in the data, and it can be displayed
/////////////////////////////////////////////////////////////////
void xianshi_1()
{
///////////////////////////
Ht1621WrOneData( 0, table[0]); Show 0
Ht1621WrOneData( 2, table[1]); Show 1
Ht1621WrOneData( 4, table[2]|0X08); Displays 2 + decimal point
Ht1621WrOneData( 6, table[3]); Show 3
:
:
:Ht1621WrOneData( 12, table[8]|0X08); 8+ icons are displayed
Ht1621WrOneData( 14, table[9]|0X08); Display 9+ icons
}
void XUNHUN_XIANSHI( uchar Lenth ,uchar Time)
{
uchar i,j,t;
for (i=0; i<Lenth; i=i+2)
{
t=0x01;
for (j=0; j<8; j++)
{
Ht1621WrOneData(i,t);
t<<=1;
t|=0x01;
DelayMS(Time);
}
}
}
void main()
{
Ht1621_Init(); Power-on initializes the LCD
DelayMS(100); The delay stabilizes the initialization
while(1)
{
Ht1621WrAllData00(0,0X00); Clear the 1621 register data to 0.
DelayMS(400);
Ht1621WrAllData00(0,0XFF); The 1621 register data is populated as 1.
DelayMS(800);
Ht1621WrAllData00(0,0X00); Clear the 1621 register data to 0.
DelayMS(400);
Xianshi_1(); Here the customer can define how it is displayed.
DelayMS(800);
XUNHUN_XIANSHI ( 32 ,100 ) /// A pen segment is displayed in a pen segment cycle with 32 addresses at intervals of 100MS.
DelayMS(800);
}
}
Product: | HT1621 Controller Segment LCD | Display Mode: | Positive / Negative, Transflective/Reflective |
---|---|---|---|
Driving Condition: | 1/8 Duty Or Customizable | Operating Voltage: | 3.0 V |
Optics: | 6:00 or cusotmizable | Display Type: | Transflective / Reflective / Transmissive |
Size: | Customizable | Backlight: | White / Amber / Blue / Yellow |
Operating Temp: | -30°C To +80°C | Storage Temp.: | -35°C To +85°C |
Connection: | Metal Pin Connection | Dot Space: | 0.1 Mm |
Response Time: | 0.1 Ms | Compliance: | REACH & RoHS Compliant |
HT1621 Controller Segment Code LCD Display Module, Customize Segment LCD Display With Backlight Product Images
FACTORY AND FACILITIES
Why Choose us
1.We provide LCD Display custom solution
Does your product have special application requirements, electrical specifications, optical specifications, touch features, or mechanical dimensions that require customized displays? SAEF can meet your custom LCD requirements.
2.Total solutions for Touch screen and display
Are you worried about assembling the touch screen and display screen? SAEF can provide custom and standard touch screen including Resistive and Capacitive multi-touch solutions including air & optical bonding service as well.
3.Commitment to quality reliability
SAEF is Qualified by ISO9001:2015 and ISO14000, meeting the RoHS, REACH and other environmental rules in global markets. We ensure quality through the manufacturing IQC,PQC and OQC management, reliability and aging testing.
4.Long-term supply
Under normal circumstances, the products we recommend can be supplied for more than 5 years. If there are special needs, we will make alternative plans in advance to ensure your long-term supply requirements.
CONTACT
Welcome to inquire via ck@saef.com.cn
Search Keywords: TN LCD, VA LCD, VATN LCD, HTN LCD, STN LCD, FSTN LCD, EBTN LCD, temperature and humidity meters LCD, electronic scales LCD, multimeter LCD, smart meter LCD, water meter LCD, gas meter LCD, bank money counter LCD, cash register LCD, stock machines LCD, telephone LCD, walkie-talkie LCD, massager LCD, treadmill LCD, fat meter LCD, air conditioner LCD, Audio LCD. Car DVD LCD, microwave oven LCD. remote controler LCD, learning machine LCD, electronic dictionary LCD, MP3 LCD, computer, control LCD panel , CNC refueling machine LCD, industrial computer LCD, game console LCD, perpetual calendar LCD, clock LCD. Instrumentation LCD. Healthcare machine LCD, Thermostat LCD, Home Appliance LCD, Elevator LCD, LCD for Lift.
Contact Person: Cologne Ke
Tel: +8613502983321
Fax: 86-755-2370-9419