Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
Using the HT16C24 in Mobile Phone Panel Applications
Using the HT16C24 in Mobile Phone Panel Applications
D/N:AN0287E
Introduction The HT16C24 is an LCD driver device. It has multiple display modes (Max:72×4, 68×8 or
60×16). This application uses the HT68F30 as the master MCU to control an LCD display
and uses an HT16C24 driving function for a 64×4 LCD. The purpose of the application is
to allow users to grasp the characteristics and applications of the HT16C24 more clearly.
Function Description
LCD Panel Display Function
Rate display
Figure 1 LCD Panel
Figure 1 shows the Mobile Phone LCD Panel. It is mainly composed of function
instructions T1~T18, the rate display, the time and timing display, the call charges display,
the date or telephone number display etc.
The example is driving a Mobile Phone LCD Panel to realise functions such as phone
standby, dial, answer, query etc using the HT16C24 driver chip.
Date or telephone number display
Time and timing display Call
charges
1
Using the HT16C24 in Mobile Phone Panel Applications
H/W Functional Block Diagram
System Block Diagram
SegX68ComX4
Figure 2 System Block Diagram
System Block Diagram Description
As shown in Figure 2, the whole system consists of both a Top Board and a Bottom Board.
The two parts implement data transfer using I2C communication and the Bottom Board
provides the 4.7V DC power supply for the Top Board.
Top Board
Driver chip HT16C24
LCD Panel
Bottom Board
Controls MCU HT68F30
AC to DC 4.7V regulator circuit
ICP interface for users to download code
2
Using the HT16C24 in Mobile Phone Panel Applications
Application Circuit
The circuit diagram consists of a Top Board and a Bottom Board, as shown in Figure 3
and Figure 4 respectively.
Figure 3 Circuit Diagram Top Board
Figure 4 Circuit Diagram Bottom Board
3
Using the HT16C24 in Mobile Phone Panel Applications
H/W Operating Principles
Power Supply Circuit
Figure 5 Power Supply Circuit
Figure 5 shows the power supply circuit. The 220V / 50Hz AC supply is transformed into
4.7V DC via the fuse F1, capactive dropper C2, a half-wave rectified circuit and a zener
diode D3, which supplies power for the master HT68F30 MCU and the HT16C24 LCD
driver.
MCU Control Circuit
Figure 6 MCU Control Circuit
Figure 6 shows the MCU control circuit. The master MCU is a HT68F30, which uses PA3
and PA4 to simulate the I2C master mode, transmit data to the HT16C24, so as to control
the LCD display screen.
4
Using the HT16C24 in Mobile Phone Panel Applications
Display Circuit
Figure 7 Display Circuit
Figure 7 shows the display circuit which uses a HT16C24 to drive a three-phase
electrical meter LCD panel. Set HT16C24 operation mode to the following:
72seg x 4com、1/4 duty、1/3 bias、Blinking Off and Display On etc.
5
Using the HT16C24 in Mobile Phone Panel Applications
S/W Flowchart
The main program flowchart is as follows.
Main enter
MCU Initial
HT16C24 Initial
Task1
Task2
Task3
Task4
Task5
Task6
Task7
Task1 enyer
LCD display on
ClockDisp
Task_run_time<3?
Task_run_time=0
LCD flash 1HZ
ClockDisp
Task_run_time<3?
Task2
N
N
Y
Y
Last missed calls
ClockDisp
Task_run_time<3?
Task3
N
Y
Task_run_time=0
Task2 enyer
Call time and bill
ClockDisp
Task_run_time<0X30?
Task4
N
Y
Read Phone
Task3 enyer
Standby 3S
Task_run_time=0
Call time and bill
ClockDisp
Task_run_time<0X30?
Task5
N
Y
Read Phone
Task4 enyer
Standby 3S
Task_run_time=0
Read second miss call
Read thrid miss call
Task6
Read frist miss call
Task5 enyer
Standby 3S
Read second call
Read thrid call
Task7
Read frist call
Task6 enyer
Read frist call
Standby 3S
Task7 enyer
Network signal scanning
ClockDisp
Task_run_time<6?
Task_run_time=0
Low Battery
ClockDisp
Task_run_time<6?
Task1
N
N
Y
Y
Task_run_time=0
1.Main 2.Task1 2.Task2 2.Task3
2.Task4 2.Task5 2.Task6 2.Task7
Figure 8 Program Flowchart Diagram
Main Flowchart Diagram Description
The main program is written using an ordered structure. It completes each task one by
one and finally returns to perform the initial task. An inquiry method is used to query the
Time Base Interrupt to confirm the time for the time control. A query on the Time Base is
implemented in the ClockDisp subfunction to control the clock displays. The execution
time of each task is controlled by the parameter task_run_time.
6
Using the HT16C24 in Mobile Phone Panel Applications
Display Steps Description
Step0 : Boot display stage
After booting, the screen lights up for 3 seconds, flashes 3 times and enters the next
stage.
Step1 : Standby display stage
The Time T13 displays the local time 11:49:59, the T7 battery capacity grid, the T10 network provider, the Signal T1~T5, T5 > T4 > T3 > T4 > T5 will cycle back and forth,
the Number T14 display ( displays the latest missed call), the Missed Call Number T12
initial value is set to 3, all the rest are off. After displaying for 3 seconds, enter the next
stage. (In the standby screen, if it does not display the last missed call, then it will
display May 25, 2011).
Step2 : Call reporting
Call the number (18615201314), the Number T14 is alight and begins to display the
called number from the last number, and the number moves left gradually. In a
dial-up process, Click OK to Send the Number and T6 flashes. After all the numbers
have displayed, T6 flashes for 5 seconds, then the phone connects.
After the phone connects, T6 remains alight, and displays the rate of the current call
number T16~T18, 17~23 and P5 (the charge rate changes correspondingly
according to different talk times) and begins to record the talk time (T13 shows, 00 :
00 : 00 which starts counting from 30 seconds) and the call charges (T15 is alight
and the charges will increase correspondingly. In the first 12 seconds, the rate is
0.35 yuan per 12 seconds. After 12 seconds, the rate is 0.25 yuan per 4
seconds.The place where the number is displayed is changed to show the talk time.
When the call has ended, T6 will be off, the talk time and the charges will remain
alight for 5 seconds and finally return to the standby stage (Time state, but will not
display the latest missed call) (the final status is: the Network is China Unicom, T10
is off, T11 is alight) the grid number of the signal strength must be changed (T5 > T4
> T3 > T4 > T5 to scan back and forth), after displaying standby for 3 seconds,
enter the next stage.
Step3 : Answer the call stage
Receive a call (13850591557), the Number T14 will alight, the digital display 1~14
will display the called number directly, T9 starts to flash to answer the call. After
flashing for 5 times ,the display remains alight which means a successful call
answer.
After the phone connects, T9 remains alight and begins to display the rate, and
records the talk time (00 : 00 : 00 which starts counting from 30 seconds) and the
charges (T15 is alight, and the charges will increase correspondingly, because of
the different network. In the first 12 seconds, the charge rate is 0.25 yuan per 12
seconds. After 12 seconds, the charge rate is 0.10 yuan per 4 seconds.The place
where the number is displayed will change to show the talk time.
When the call has ended, T9 will be off, the talk time and charges will remain alight
for 5 seconds and finally return to the standby stage (the Network choice is for China
Mobile at this state), T10 is alight, T11 is off and the grid number of the signal
strength T5 > T4 > T3 > T4 > T5 will scan back and forth. After displaying standby
for 3 seconds, enter the next stage.
7
Using the HT16C24 in Mobile Phone Panel Applications
Step4 : missed calls query
T8 is alight – this means that it has begun to query the numbers of the three groups
of missed calls.
When T8 is alight, the Missed calls (T12 alight) means the total number of missed
calls. After each missed call display T14 and the digital display for 5 seconds, T13
displays the corresponding missed call time (Each has a check, the missed call
numbers minus 1 which will ultimately be zero), jump to the standby mode
automatically, the grid number of the signal strength T5 > T4 > T3 > T4 > T5 must
scan back and forth. After displaying standby for 3 seconds, enter the next stage.
The Time continues to count (the missed number displays a zero).
Step5 : Charge query
Charge query for dialled numbers: the Missed Call (T12) is off, the digital display 15, 16
shows the serial number of the dialled numbers (at least three groups of numbers), T14
displays the dialled numbers, T13 is alight and displays the total talk time, T15 is alight
and displays the total call charge. Each group of telephone numbers is displayed for 5
seconds. After displaying standby for 3 seconds, enter the next stage. The Time
continues to count (the missed numbers display as 3 > 2 > 1 > 3).
Step6 : Battery and signal stage
The signal strength changes from strong to weak, then from weak to strong. When the
signal strength is less than two grids, the signal flag (T1) flashes. When the signal
strength is zero, the Network will be shown (T10 and T11 are off), After displaying
standby for 6 seconds, enter the next stage.
When the battery is low, T7 flashes, providing a charge reminder. The Number, the
rate, the charges, the missed calls etc are off. But the Time will still be displayed.
Enter the low power state. After displaying standby for 6 seconds, enter the next
stage (STEP0).
PCB Layout
Top Board Front PCB
Figure 9 Top Board Front PCB
8
Using the HT16C24 in Mobile Phone Panel Applications
Top Board Back PCB
Figure 10 Top Board Back PCB
Bottom Board PCB
Figure 11 Bottom Board PCB
9
Using the HT16C24 in Mobile Phone Panel Applications
Actual Picture
Figure 12 Actual Picture
10
Using the HT16C24 in Mobile Phone Panel Applications
BOM
HT16C24 Mobile Phone Panel LCD Display Controller(Components List)
Type Model Package Number
HT68F30 16NSOP 1 IC
HT16C24 QFP 1
Safety Capacitor(X2) 0.1uF/275VAC 1
CBB Capacitor(220V) 0.47uF/630V 1
CBB Capacitor(110V) 1uF/630V 1
Electrolytic Capacitor 470uF/16V 2
Ceramics Capacitor 104 4
Capacitor
Ceramics Capacitor 103 1
Varistor 471KD10 1
Power Resistor 300/2W 1
Power Resistor 300K/2W 1
Color Ring Resistance 100K/0.25W 1
Color Ring Resistance 4.7K/0.25W 2
Resistor
Color Ring Resistance 300/0.25W 1
Diode IN4007 2
Diode IN4148 1 Diode
Voltage Regulator Diode IN5337B 1
Magnetic Bead 2 Pin 2
Fuse 2 Pin 1
Reset Button 4 Pin 1
Power Socket 2 Pin 1
Power Cord 220V/110V 1
Row Seat 4 Pin 1
Row Needle 4 Pin 2
LCD Panel Mobile Phone 1
Hexagonal Isolated Column Plastic Material 8
Other
Shell Plastic Material 1
11
Using the HT16C24 in Mobile Phone Panel Applications
Test Report
ESD
Project name HT16C24 Mobile Phone Panel LCD Display Controller
IC Number HT16C24
IC Version B107K0606G1
Model Name HT16C24 Mobile Phone Panel LCD Display Controller
Model Version V0.0
Test Instrument : Transient 2000
Relative Humidity : 45 ~ 75 % RH
Ambient Temperature : about 20°C
Atmospheric Pressure : 68 ~ 106 Kpa ( 680 ~ 1060 mbar)
Test Time : 13/05-2011
Test Items : Simulated Final Test
Power Supply Voltage AC 220 V / MCU voltage : DC 4.5V
Power Frequency 50Hz
AIR (Air discharge) pattern CONTACT (Contact discharge) pattern
ESD voltage (+) ESD voltage (-) ESD voltage (+) ESD voltage (-)
15KV -15KV +15KV -15KV
Test method : the panel will be installed with the circuit board to access power and conduct a complete test.
In Air (Air discharge) pattern : use the electrostatic gun to carry out an air discharge for the panel.
In Contact (Contact discharge) pattern : use the electrostatic gun to carry out a contact discharge for the panel.
Test results : No crashes or defective operation.
12
Using the HT16C24 in Mobile Phone Panel Applications
EFT
Project name HT16C24 Mobile Phone Panel LCD Display Controller
IC Number HT16C24
IC Version B107K0606G1
Model Name LCD Display Controller
Model Version V0.0
Test instrument : KeyTek EMC Pro ( EFT/B NOISE SIMULATOR )
Relative humidity : 45 ~ 75 % RH
Ambient temperature : about 25°C
Atmospheric pressure : 86 ~ 106 Kpa ( 860 ~ 1060 mbar)
Test time : □ dynamic 1 Min ■ dynamic 3 Min
Test items : ■ PCB MODULE Test □ Final Test
Power supply voltage AC220V / MCU voltage : DC 4.5V
Power frequency 50Hz
PARAMETER Parckle Fre. : 5KHz / Burst Dur. : 15ms / Rep. : 300ms
Phase L N L+N
Polarity + - + - + -
DemoBoard 4000V 4000V 4000V 4000V 4000V 4000V
Impulse
Project name HT16C24 Mobile Phone Panel LCD Display Controller
IC Number HT16C24
IC Version B107K0606G1
Model name LCD Display Controller Model Version V 0.0
Power supply voltage AC220V / MCU voltage : DC 4.5V Power frequency 50Hz
Test instrument : NOISEKEN INS 420A ( IMPULSE NOISE SIMULATOR )
Relative humidity : 45 ~ 75 % RH Ambient temperature : about 24°C
Atmospheric pressure : 68 ~ 106 Kpa ( 680 ~ 1060 mbar)
Test time : □ static 1 Min ■ static 3 Min □ dynamic 1 Min □ dynamic 3 Min
Test items : ■ PCB MODULE Test □ Final Test ■ load test □ No-load test
Reset loop
Pulse width 50ns 1000ns
Phase R(L1) S(L2) R(L1) S(L2)
Polarity + - + - + - + -
90 degrees 2KV 2KV 2KV 2KV 2KV 2KV 2KV 2KV
Angle 270 degrees
2KV 2KV 2KV 2KV 2KV 2KV 2KV 2KV
Experimental Result PASS PASS PASS PASS PASS PASS PASS PASS
Note: The measurement results are different but fixtures are the same.
13
Using the HT16C24 in Mobile Phone Panel Applications
14
Accessory Source Code File
Code.zip
PCB Figure File
Pcb.zip
Demo Board Specification
HT16C24 Mobile Phone Panel LCD Display Controller Specification-V00.zip
Demo Board Display Flowchart
HT16C24 Mobile Phone Panel LCD Display Flowchart.zip