Holtek HT16H25 Instruction Manual

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 1 / 22 January 8, 2019
HT16H25 Treadmill Display Application Guideline
D/N:AN0505E
Overview
The internal RAM of the HT16H25 is directly mapped to the corresponding LCD display
unit. It supports LCD display chips and has multiple display modes and also allows a
range of duty types to be selected. With a 1/16 Duty, it can display 960 pixels. The
internal LCD bias can be selected to be sourced from a charge pump or from a resistor
divider to drive LCD screens with an operating voltage range of 2.5V to 12V. The device
supports 4 of GPO output ports and can set the GPO output to a 64-level PWM output
mode to drive the LED backlight. Additionally, the HT16H25 supports both I2C and SPI
3-wire communication modes.
In this application note, the HT66F50 is used as the main control MCU which
communicates with the HT16H25 through the I2C interface. It simulates a treadmill LCD
display and shows how the HT16H25 drives a 16COM × 58SEG LCD (@10V). The
application note will give the reader a clearer understanding of the HT16H25
characteristics and of its application.
Functional Description
LCD Panel Display Functions
LCD Panel

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 2 / 22 January 8, 2019
The diagram shows the HT16H25 Demo LCD Panel. The drive mode is 1/16 Duty, 1/5
Bias, and the working voltage is 10V. It displays some basic treadmill indicators such as
calories, heart rate, speed, distance, time, etc. To implement a treadmill LCD information
display, the LCD display functional description is as follows.
●: Bluetooth Icon, after power-on this will be on during Bluetooth transmission
●: USB Icon, will be on when USB unit is inserted
●: Speed +500 m/s
●: On when speed ≥12 km/h
●: Drink reminder
●TOTAL CALORIES: Calorie display
●AVG. HEART RATE: Heart rate display
●FITNESS SCORE: Fitness score display
●TODAY'S AWARDS: Present day’s award
●AVG. SPEED: Average Speed display
●TIME: Display time for example 0:02:59
●DISTANCE: Distance Display
●AVG. CALORIE/MIN: Average Calories
HT16H25 Power-on Initial Condition
After power-on, the device goes through an initialisation process using an internal
power-on reset circuit, after which the following conditions exist.
●All registers are setup to their default values, but the RAM is not affected
●Select the drive mode as 1/16 duty, 1/5 bias
●The system oscillator is off
●LCD display is off
●All Commons and Segments are VSS
●All GPO outputs are VSS
●Internal Regulator is disabled
●Charge Pump and LCD bias circuits are off
●The GPO pins are set to logic mode
●Frame frequency is set to 200Hz
●Blinking Frequency is off

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 3 / 22 January 8, 2019
HT16H25 Communication
The device supports both I2C and SPI 3-wire communication modes, which can be used
for external functional setup and for data transmission. This application uses the
HT66F50 as the master MCU to communicate with the HT16H25 using the I2C interface.
There are two communication lines in the I2C interface which are, the serial data line,
SDA, and the serial clock line, SCL. Both lines are connected to 4.7kΩ pull-high resistors
to the positive power supply. When the bus is idle, both communication lines are high.
The high and low state of the data line SDA can only be changed when the clock line SCL
is low. When SCL is high, the value of SDA must remain the same.
Write Operations
The HT16H25 can perform write operations such as writing a single command, writing a
compound command, writing a single byte of display RAM data, writing a page of display
RAM data, etc.
To write a single command, first send the slave address "0111100" + R/W bit after the
START signal is sent, then send a command byte and finally send a STOP signal.
To write a compound command, after the command byte has been sent, continuous
register data can be sent, after which it is ended with a STOP signal. The timing for
writing a compound command is as follows:
Slave Address
ACKWrite
Register byte
ACK
S01111000
ACK
P
2nd
BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0BIT7
1 st
Command byte Register byte
nth
BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0BIT7
ACK ACK
To write a single byte of display RAM data, after the START signal, send the slave
address "0111100" + R / W bit, then send a display write command, an address byte, a
byte of display data and finally send a STOP signal. The display data is invalid if the
transmitted byte address range exceeds the address range.
To write a page of display RAM data, after the command byte and address byte has been
sent, continuous RAM display data can be sent. Each time a byte of display RAM data
has been sent, the address is automatically incremented until the maximum address
value is reached after which it will return to 00h. When the operation is completed a STOP
signal will be sent. The page write display RAM timing is as follows:
Slave Address
ACK
Write
ACK
S01111000
ACK
ACK
Data byte
PD7 D6 D5 D4 D3 D2 D1 D0
nth byte data
Data byte
D7 D6 D5 D4 D3 D2 D1 D0
2rd byte data
ACK ACK
Data byte
D7 D6 D5 D4 D3 D2 D1 D0
1st byte data
ACK
Address byteCommand byte
A0A1A2A3A4A5A6A7
BIT1BIT2BIT3BIT4BIT5BIT6BIT7 BIT0

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 4 / 22 January 8, 2019
Read Operations
For a device read operation, after the host sends a START signal the slave address
"0111100" + R/W bit (= "0") will be sent, after which a command byte will be sent, then an
address byte and a STOP signal. This now denotes the completion of the start address
configuration. The host then resends a START signal, and then sends the slave address
"0111100" + R/W bit(="1"), after which the host can read back a byte of data. The host
sends an ACK signal to the slave after reading each byte of data, after which it can read
back the data from the next address thus implementing continuous read operations.
When the memory address has been increased to its maximum address, it will return to
00h, and then send a NACK signal + STOP signal after the operation is completed. The
timing of the read operation is as follows:
ACK
Write
ACK
P
Slave Address
S01111000
Data byte
NACK
D7 D6 D5 D4 D3 D2 D1 D0
1st data
Data byte
ACK
P
D7 D6 D5 D4 D3 D2 D1 D0
Nth data
Data byte
D7 D6 D5 D4 D3 D2 D1 D0
2nd data
ACK ACK
ACK
Slave Address
Read
S01111001
ACK
Address byte
Command byte
A0A1A2A3A4A5A6A7BIT0BIT1BIT2BIT3BIT4BIT5BIT6BIT7
HT16H25 Related Instruction Description
LCD Function Command
●Software Reset Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Software
Reset W 1 0 1 0 1 0 1 0 AAh
Note: After a software reset the register condition is the same as for a Power-on
Reset.
●Driver Mode Setting Commands
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Drive Mode
Setting
W 1 0 0 0 0 0 1 0 82h
W DT3 DT2 DT1 DT0 X BS2 BS1 BS0 F7h
Note: LCD Duty and Bias are setup as follows:
DT3
DT2
DT1
DT0
Duty Setting
DT3
DT2
DT1
DT0
Duty Setting
0
0
0
0
Static
1
0
0
0
1/9
0
0
0
1
1/2
1
0
0
1
1/10
0
0
1
0
1/3
1
0
1
0
1/11
0
0
1
1
1/4
1
0
1
1
1/12
0 1 0 0 1/5
1 1 0 0 1/13
0 1 0 1 1/6
1 1 0 1 1/14
0 1 1 0 1/7
1 1 1 0 1/15
0 1 1 1 1/8
1 1 1 1 1/16 (default)

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 5 / 22 January 8, 2019

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 6 / 22 January 8, 2019
BS2
BS1
BS0
Bias Setting
0
0
0
1/1
0 0 1 1/2
0 1 0 1/3
0 1 1 1/4
1 X X 1/5 (default)
●Driving Waveform Setting Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Drive
Waveform
Setting
W 1 0 0 0 0 1 0 0 83h
W X X X X X X X DW 00h
Note: "DW" bit: Drive waveform setup
DW
Driving Waveform
0 A type (default)
1
B type
●System Mode Setting Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
System
Mode
Setting
W 1 0 0 0 0 1 1 0 86h
W X X X X X X S E 00h
Note: The "S" bit controls the clock, when the "S" bit is set to "0", the status of each
register is as follows.
Both internal clock and LCD display are off
All Commons and Segments are set to VSS
GPO functions are disabled
PWM function and outputs are disabled
Set RE="0" and CE="0" to reduce power loss
The "E" bit can only control the LCD display and has no effect on the GPO and
PWM functions. When the LCD display is off all Commons and Segments are
set to VSS
S
E
Internal Oscillator
LCD Display
0
X
off (default)
off
1
0
on
off
1
1
on
on
●Frame Frequency Setting Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Frame
Frequency
Setting
W 1 0 0 0 1 0 0 0 88h
W X X X X F3 F2 F1 F0 0Ah
Note: F[3:0]: Frame frequency setting. Frame frequencies for different duty modes are
shown in the following table. The Charge Pump frequency and PWM frame
frequency depend on the frame frequency setting.

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 7 / 22 January 8, 2019
F3
F2
F1
F0
Frame Frequency (Hz)
Stati
c 1/2
1/3 1/4 1/5 1/6
1/7
1/8 1/9
1/1
0
1/1
1
1/1
2
1/1
3
1/1
4
1/1
5
1/1
6 duty
0
0
0
0
50
50
44
50
80
67
57
50
44
40
73
67
62
57
53
50
0
0
0
1
60
60
53
60
96
80
69
60
53
48
87
80
74
69
64
60
0
0
1
0
70
70
62
70
112
93
80
70
62
56
102
93
86
80
75
70
0
0
1
1
80
80
71
80
128
107
91
80
71
64
116
107
98
91
85
80
0
1
0
0
90
90
80
90
144
120
103
90
80
72
131
120
111
103
96
90
0
1
0
1
100
100
89
100
160
133
114
100
89
80
145
133
123
114
107
100
0
1
1
0
120
120
107
120
192
160
137
120
107
96
175
160
148
137
128
120
0
1
1
1
140
140
124
140
224
187
160
140
124
112
204
187
172
160
149
140
1
0
0
0
160
160
142
160
256
213
183
160
142
128
233
213
197
183
171
160
1
0
0
1
180
180
160
180
288
240
206
180
160
144
262
240
222
206
192
180
1
0
1
0
200
200
178
200
320
267
229
200
178
160
291
267
246
229
213
200
default
1
0
1
1
220
220
196
220
352
293
251
220
196
176
320
293
271
251
235
220
1
1
0
0
240
240
213
240
384
320
274
240
213
192
349
320
295
274
256
240
1
1
0
1
260
260
231
260
416
347
297
260
231
208
378
347
320
297
277
260
1
1
1
0
280
280
249
280
448
373
320
280
249
224
407
373
345
320
299
280
1
1
1
1
300
300
267
300
480
400
343
300
267
240
436
400
369
343
320
300
●Blinking Frequency Setting Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Blinking
Setting
W 1 0 0 0 1 0 1 0 8Ah
W X X X X X X BK1 BK0 00h
Note: BK[1:0]: The LCD flicker frequency is set as shown in the following table. The
value of the flicker frequency is for reference only. When the set duty and frame
frequency are different, the flicker frequency will deviate.
BK1
BK0
Blinking Frequency Setting
0
0
off (default)
0
1
2Hz
1
0
1Hz
1
1
0.5Hz
LCD RAM R/W Command
The display RAM is a static 60×8×2 bits of RAM for storing LCD data. A logic "1" indicates
the "on" state of the corresponding segment and a logic "0" represents the "off" state. The
display memory address has a one-to-one correspondence with the segment output while
individual bits correspond to the column output. This mapping is used to map the RAM
data to the LCD to display the desired image.
It supports a page storage function. When the duty≦1/8, the user can write data to page
0 and page1 of the RAM and select the corresponding page storage to display using a
control command.
The communication data transmission format is as follows:
MSB
LSB
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
D7
D6
D5
D4
D3
D2
D1
D0
The following table shows the maximum memory address and valid Commons for

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 8 / 22 January 8, 2019
different duty values:
Duty
Max. Memory
Address
Duty Data Valid
1/16
77h
1/16
C0M0 ~ COM15
1/15
79h
1/15
COM0 ~ COM14
1/14
7Bh
1/14
COM0 ~ COM13
1/13 7Dh
1/13 COM0 ~ COM12
1/12 7Fh
1/12 COM0 ~ COM11
1/11 81h
1/11 COM0 ~ COM10
1/10 83h
1/10 COM0 ~ COM9
1/9
85h
1/9
COM0 ~ COM8
1/8
43h
1/8
COM0 ~ COM7
1/7
44h
1/7
COM0 ~ COM6
1/6
45h
1/6
COM0 ~ COM5
1/5
46h
1/5
COM0 ~ COM4
1/4, 1/3, 1/2, static
47h
1/4
COM0 ~ COM3
1/3
COM0 ~ COM2
1/2 COM0, COM1
static COM0
●Write Display Data to Page 0 Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Write Display
Data to Page 0
W 1 0 0 0 0 0 0 0 80h
W A7 A6 A5 A4 A3 A2 A1 A0 00h
W D7 D6 D5 D4 D3 D2 D1 D0 -
Note: A[7:0]: Memory address. If the setup LCD RAM address is not within the
address range, the entered data is invalid.
D[7:0]: display data
●Read Display Data from Page 0 Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Read Display
Data from
Page 0
W 1 0 0 0 0 0 0 1 81h
W A7 A6 A5 A4 A3 A2 A1 A0 00h
R D7 D6 D5 D4 D3 D2 D1 D0 -
Note: A[7:0]: Memory address. If the setup LCD RAM address is not within the
address range, the entered data is invalid.
D[7:0]: display data
●Write Display Data to Page 1 Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Write Display
Data to Page 1
W 0 1 1 1 0 0 0 0 70h
W A7 A6 A5 A4 A3 A2 A1 A0 00h
W D7 D6 D5 D4 D3 D2 D1 D0 -
Note: If the setup LCD RAM address is not within the address range, the entered data
is invalid. This command is only effected when the duty≦1/8.

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 9 / 22 January 8, 2019
●Read Display Data from Page 1 Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Read Display
Data from
Page 1
W
0
1
1
1
0
0
0
1
71h
W A7 A6 A5 A4 A3 A2 A1 A0 00h
R D7 D6 D5 D4 D3 D2 D1 D0 -
Note: This command is invalid when the duty is set to 1/9~1/16.
●Page Config. Mode Commands
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Page Config.
Mode
W 0 1 1 1 0 0 1 0 72h
W X X X X X X X PM 00h
Note: "PM" bit: Display Page selection. This command is only effective when the duty ≤1/8.
PM
Page Config.
0
Page0 – LCD display data comes from RAM page 0 - default
1
Page1 – LCD display data comes from RAM page 1
GPO/PWM Function Command
The GPO output function can output control signals to control external circuits. The
outputs can be set to be logical outputs or PWM outputs using the control commands.
The PWM output has a 64-step duty cycle adjustment that can be used to drive LEDs.
●Write GPO Data Command
Command
R/W
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Def.
Write GPO
Data
W
1
0
0
1
0
0
0
0
90h
W X X X X D3 D2 D1 D0 -
Note: D[3:0]: GPO3~GPO0 data
Bit
GPO pin
D3
GPO3
D2
GPO2
D1
GPO1
D0
GPO0
●Binary/PWM Function Select Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Binary/PWM
Select
W 1 0 0 1 0 0 1 0 92h
W X X X X BPS3 BPS2 BPS1 BPS0 00h
Note: BPS[3:0]: Select the GPO output to be logic or PWM
BPSn
GPOn or PWM output
0 GPO output
1 PWM output
Note: n=0~3
Bit
GPO pin
BPS3 GPO3
BPS2 GPO2
BPS1
GPO1
BPS0
GPO0

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 10 / 22 January 8, 2019
●PWM Enable Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
PWM Enable
W
1
0
1
1
0
0
0
0
B0h
W X X X X PEN3 PEN2 PEN1 PEN0 00h
Note: PEN[3:0]: PWM output enable control
PENn
GPOn PWM Output Enable
0
PWM output disable – GPOn output is low – default
1
PWM output enable – Use the PWM data command to set the GPOn output duty
Note: n=0~3
Bit
GPO pin
PEN3
GPO3
PEN2
GPO2
PEN1
GPO1
PEN0
GPO0
●Write PWM Data Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Write PWM data
to GPO0
W 1 0 1 1 0 0 0 0 B2h
W X X D5 D4 D3 D2 D1 D0 00h
Write PWM data
to GPO1
W 1 0 1 1 0 0 0 0 B4h
W X X D5 D4 D3 D2 D1 D0 00h
Write PWM data
to GPO2
W 1 0 1 1 0 0 0 0 B6h
W X X D5 D4 D3 D2 D1 D0 00h
Write PWM data
to GPO3
W 1 0 1 1 0 0 0 0 B8h
W X X D5 D4 D3 D2 D1 D0 00h
Note: D[5:0]: PWM Data to PWM Duty correspondence is as follows:
D[5:0]
PWM Duty
000000
1/64
000001
2/64
000010
3/64
::
111101 62/64
111110
63/64
111111
64/64
Charge Pump Function Command
The Charge Pump can provide the LCD with the VLCD driving voltage. The control input
can set the input voltage of the Charge Pump to be sourced from VDD or from the internal
regulator. The circuit block diagram is as follows:
LDO
V
DD
V
REG
To charge pump input

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 11 / 22 January 8, 2019
The Charge Pump can have the following coefficients: ×2, ×3, ×4 or ×5. Note that V0/VLCD
is not allowed to be greater than 12V due to process limitations.
Charge Pump
(=V
REG
)
C3P
C3N
C1N
C1P
C2P
C2N
V3
V4
V2
V1
V0 V
0
/V
LCD
Charge Pump
× 2
C3P
C3N
C1N
C1P
C2P
C2N
V3
V4
V2
V1
V0
V
1
V
0
/V
LCD
Charge Pump
× 3
C3P
C3N
C1N
C1P
C2P
C2N
V3
V4
V2
V1
V0
V
2
V
1
V
0
/V
LCD
Charge Pump
× 4
C3P
C3N
C1N
C1P
C2P
C2N
V3
V4
V2
V1
V0
V
3
V
2
V
1
V
0
/V
LCD
Charge Pump
× 5
C3P
C3N
C1N
C1P
C2P
C2N
V3
V4
V2
V1
V0
V
3
V
4
V
2
V
1
V
0
/V
LCD
The Charge Pump input voltage comes from either VDD or the Internal Regulator, where
the Internal Regulator's output range is 1.0V~4.1V. The relationship between the Charge
Pump coefficient and the output voltage is shown in the table below. Note that the output
voltage of the Charge Pump cannot be higher than 12V.
Charge Pump
Input Voltage
Charge Pump
Output Voltage(V)
Charge Pump
Input Voltage
Charge Pump
Output Voltage(V)
Regulator
1.0
1.0
2.0
3.0
4.0
5.0
Regulator
2.7
2.7
5.4
8.1
10.8
13.5
1.1
1.1
2.2
3.3
4.4
5.5
2.8
2.8
5.6
8.4
11.2
14.0
1.2
1.2
2.4
3.6
4.8
6.0
2.9
2.9
5.8
8.7
11.6
14.5
1.3
1.3
2.6
3.9
5.2
6.5
3.0
3.0
6.0
9.0
12.0
15.0
1.4
1.4
2.8
4.2
5.6
7.0
3.1
3.1
6.2
9.3
12.4
15.5
1.5
1.5
3.0
4.5
6.0
7.5
3.2
3.2
6.4
9.6
12.8
16.0
1.6
1.6
3.2
4.8
6.4
8.0
3.3
3.3
6.6
9.9
13.2
16.5
1.7
1.7
3.4
5.1
6.8
8.5
3.4
3.4
6.8
10.2
13.6
17.0
1.8
1.8
3.6
5.4
7.2
9.0
3.5
3.5
7.0
10.5
14.0
17.5
1.9
1.9
3.8
5.7
7.6
9.5
3.6
3.6
7.2
10.8
14.4
18.0
2.0
2.0
4.0
6.0
8.0
10.0
3.7
3.7
7.4
11.1
14.8
18.5
2.1
2.1
4.2
6.3
8.4
10.5
3.8
3.8
7.6
11.4
15.2
19.0
2.2
2.2
4.4
6.6
8.8
11.0
3.9
3.9
7.8
11.7
15.6
19.5
2.3
2.3
4.6
6.9
9.2
11.5
4.0
4.0
8.0
12.0
16.0
20.0
2.4
2.4
4.8
7.2
9.6
12.0
4.1
4.1
8.2
12.3
16.4
20.5
2.5
2.5
5.0
7.5
10.0
12.5
VDD
3.3
3.3
6.6
9.9
13.2
16.5
2.6
2.6
5.2
7.8
10.4
13.0
5
5.0
10.0
15.0
20.0
25.0
x2, 1/2 bias →
V1
V0
x2, 1/2 bias →
V1
V0
x3, 1/3 bias →
V2
V1
V0
x3, 1/3 bias →
V2
V1
V0
x4, 1/4 bias →
V3
V2
V1
V0
x4, 1/4 bias →
V3
V2
V1
V0
x5, 1/5 bias →
V4
V3
V2
V1
V0
x5, 1/5 bias →
V4
V3
V2
V1
V0
●Charge Pump Input Voltage Setting Command
Command
R/W
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Def.
Charge Pump
Input Voltage
Setting
W 1 1 0 0 0 0 0 0 C0h
W VS RE X RV4 RV3 RV2 RV1 RV0 00h

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 12 / 22 January 8, 2019
Note: "VS" bit: Charge Pump Input Voltage Source Select.
VS
Charge Pump Output Voltage Setup
0
VDD (default)
1
Internal Regulator
"RE" bit: Internal Regulator On/Off Control
RE
Regulator Enable
0
Disable (default)
1
Enable
RV[4:0]: Internal Regulator Output Voltage Select. To ensure Regulator normal operation
VDD ≥Regulator Voltage + 0.2V.
RV4
RV3
RV2
RV1
RV0
Regulator Voltage
(V)
RV4
RV3
RV2
RV1
RV0
Regulator Voltage
(V)
0
0
0
0
0
1.0 (default)
1
0
0
0
0
2.6
0
0
0
0
1
1.1
1
0
0
0
1
2.7
0
0
0
1
0
1.2
1
0
0
1
0
2.8
0
0
0
1
1
1.3
1
0
0
1
1
2.9
0
0
1
0
0
1.4
1
0
1
0
0
3.0
0 0 1 0 1 1.5
1 0 1 0 1 3.1
0 0 1 1 0 1.6
1 0 1 1 0 3.2
0 0 1 1 1 1.7
1 0 1 1 1 3.3
0 1 0 0 0 1.8
1 1 0 0 0 3.4
0
1
0
0
1
1.9
1
1
0
0
1
3.5
0
1
0
1
0
2.0
1
1
0
1
0
3.6
0
1
0
1
1
2.1
1
1
0
1
1
3.7
0
1
1
0
0
2.2
1
1
1
0
0
3.8
0
1
1
0
1
2.3
1
1
1
0
1
3.9
0
1
1
1
0
2.4
1
1
1
1
0
4.0
0
1
1
1
1
2.5
1
1
1
1
1
4.1
●Charge Pump Control Command
Command
R/W
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Def.
Charge Pump
Control
W 1 1 0 0 0 0 1 0 C2h
W CE CR2 CR1 CR0 X X X X 00h
Note: "CE" bit: Charge Pump On/Off Control
CE
Charge Pump Control
0
Charge Pump Disable (default)
1
Charge Pump Enable
CR[2:0]: Charge Pump coefficient
CR2
CR1
CR0
Charge Pump Coefficient
0 0 0 Charge Pump input voltage (default)
0
0
1
X2
0
1
0
X3
0
1
1
X4
1
X
X
X5

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 13 / 22 January 8, 2019
LCD Bias Function Command
The LCD Bias can be selected to come from the Charge Pump or from the Resistor
Divider using a control command.
When the LCD Bias selects the Charge Pump, the Charge Pump coefficient selection
depends on the Bias setting. The relationship between the LCD Bias and the Charge
Pump coefficient is shown in the table below. Here, all the capacitors used with the
Charge Pump should have a value of 0.1μF. The Charge Pump output requires about
20ms to stabilise after being enabled.
LCD Bias
Charge Pump Ratio Setting
Static
Charge Pump Input Voltage
1/2
X2
1/3
X3
1/4
X4
1/5
X5
When the LCD Bias chooses the resistor divider, there are 3 resistor values to choose: 4K,
8K or 16K. For this option, VLCD can only be provided by an external power supply.
●LCD Bias Circuit Select Command
Command
R/W
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Def.
LCD Bias
Circuit select
W 1 1 0 1 0 0 0 0 D0h
W X X X BV X X BC1 BC0 00h
Note: "BV" bit: VLCD Select Control
BV
VLCD Select
0
VLCD is supplied from Charge Pump (default)
1
VLCD is supplied from external power
BC[1:0]: LCD Bias Circuit Select
BC1
BC0
LCD Bias Circuit Select
0 0 disable (default)
0 1 Charge Pump
1
0
Invalid
1
1
Resistor divider
●Contrast Adjustment Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Contrast
Adjustment
W 1 1 0 1 0 0 1 0 D2h
W X X X X CA3 CA2 CA1 CA0 00h
Note: When the LCD Bias selects the Charge Pump this instruction has no effect.
CA[3:0]: Contrast adjustment bit, LCD Bias circuit select Resistor Divider.

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 14 / 22 January 8, 2019
●Bias Resistor Set Command
Command R/W Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Def.
Bias Resistor
W
1
1
0
1
0
1
0
0
D4h
W X X X X X X BR1 BR0 02h
Note: BR[1:0]: Bias resistor value, when the LCD bias circuit is selected as the resistor
divider this instruction is effective
BR1
BR0
Resistor Value
0 0 4KΩ
0
1
8KΩ
1
X
16KΩ(default)
HT16H25 Operating Flow
Initialisation
The device initialisation process is shown in the figure below. After the system is powered
on, first reset the device software then set the Charge Pump circuit according to the
actual design requirements. After this select the LCD Bias circuit, set the LCD driver Bias,
Duty and drive waveforms, and finally set the frame frequency and start the system
oscillator.
Next Processing
Power On
Charge Pump Input Voltage Setting
Software Reset
Charge Pump Control Setting
LCD Bias Circuit Select
Contrast Adjustment Setting
Bias and Duty Setting
Driving Waveform Setting
Frame Frequency Setting

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 15 / 22 January 8, 2019
Write RAM Data
To write RAM data to the HT16H25, the first address of the display RAM needs to be first
written, then write the display data for this corresponding address, after which enable the
LCD display should be enabled. This is shown in the following flowchart:
Next Processing
Start
Address Setting
Display Data RAM Write
Display on
Operating Principles
The HT16H25 LCD Demo is based on HT66F50 as the main control MCU which
communicates with the HT16H25 using the I2C interface to implement treadmill display
control.
HT16H25 H/W Block Diagram
System Block Diagram

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 16 / 22 January 8, 2019
The HT16H25 LCD Demo contains two main parts, a Top Board and a Bottom Board.
The Top Board and the Bottom Board use the I2C communication interface for data
transmission. The Bottom Board provides DC 5V power for the Top Board.
●Top Board: Driver IC is the HT16H25 (100 LQFP); LCD display
●Bottom Board: Main controller MCU is the HT66F50 (28SOP); Micro USB provides the
DC 5V operating voltage; ICP interface is used to download the Code
Hardware Description
The HT16H25 LCD Demo hardware circuit consists of two parts, a Top Board and a
Bottom Board. The Top Board is mainly for the HT16H25 LCD Demo display circuit while
the Bottom Board is for the USB power supply circuit and the MCU control circuit.
Application Circuit
LCD Display Control Bottom Board
The figure above shows the schematic diagram of the Bottom Board for the HT16H25
LCD display control. The main MCU power is a DC 5V voltage. The main control MCU
uses an HT66F50 to communicate with the HT16H25 using the I2C interface to drive the
LCD display.
FB1
1
2
3
4
5
P1
MicroUSB
22uF/1206
C2
0.1uF/0805
C1
22uF/1206
C3
+5V
0R/0805R1
0R/0805R2
0R/0805R14
1K/0805
R15
VDD
PA0/C0X/AN0
1
VSS&AVSS
2
PB4/XT2
3
PB3/XT1
4
PB2/OSC2
5
PB1/OSC1
6
VDD
7
PB0/RES
8
PC1/TP1B_1/SCOM1
9
PC0/TP1B_0/SCOM0
10
PC7/[TP1A]/SCOM3
11
PC6/[TP0_0]/SCOM2
12
PD3/[TCK1]/TP3_0/[SDO]
13
PD2/[TCK0]/[SDI/SDA]
14 PD1/[TP2_0]/[SDO]/[SCK/SCL] 15
PD0/[TCK2]/TP3_1/[SCS] 16
PC5/[INT1]/TP0_1/TP1B_2/[PCK] 17
PC4/[INT0]/[PINT]/TCK3/TP2_1 18
PC3/PINT/TP2_0/C1- 19
PC2/TCK2/PCK/C1+ 20
PB5/SCS/VREF 21
PA7/SCK/SCL/AN7 22
PA6/SDI/SDA/AN6 23
PA5/C1X/SDO/AN5 24
PA4/INT1/TCK1/AN4 25
PA3/INT0/C0-/AN3 26
PA2/TCK0/C0+/AN2 27
PA1/TP1A/AN1 28
HT66F50
U1
HT66F50
GND
28 SOP
ICPDA
0.1uF/0805
C6
VDD
ICPCK
IO_CSB
IO_CLK
IO_DIO
TVS1
6V
D1
IN4148 10nF/0805
C7
0.1uF/0805
C8
VDD
100K/0805
R7
300R/0805R8
RES
RES
1
2
3
4
5
6
P2
ICP
ICPDA
ICPCK
VDD
S1
MCU_RES
20K/0805
R4
0R/0805R3 Q1
AO3400
K-
IO_LED
IO_LED
C0
NC
1 2
34
56
7 8
9 10
11 12
13 14
15 16
17 18
P3
330R/0805R11IO_DIO
VDD
0.1uF/0805
C4
K-
IO_CLK
IO_CSB
VDD
K-
+5V +5V

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 17 / 22 January 8, 2019
LCD Display Control Top Board
The above diagram shows the HT16H25 LCD display control Top Board schematic with
the LCD driver chip, the HT16H25, which has 16-COM and 8-SEG outputs to control the
LCD display
USB Supply Circuit
USB Supply Circuit
The USB terminal provides the 5V power supply. The power supply is connected to a
bidirectional TVS overvoltage protection diode to provide overvoltage protection. The
capacitors and magnetic bead filter provide a stable DC 5V working voltage for the main
control HT66F50 MCU as well as the HT16H25 LCD drive IC and the LCD display.
SEG1
1
SEG0
2
GPO0
3
GPO1
4
GPO2
5
GPO3
6
IFS
7
CSB
8
SCL/CLK
9
SDA/DIO
10
VDD
11
Vreg
12
VSS
13
VMAX
14
VLCD
15
C1P
16
C1N
17
C2P
18
C2N
19
C3P
20
C3N
21
V0
22
V1
23
V2
24
V3
25
V4
26
COM0
27
COM1
28
COM2
29
COM3
30
COM4/SEG71
31
COM5/SEG70
32
COM6/SEG69
33
COM7/SEG68
34
COM8/SEG67
35
COM9/SEG66
36
COM10/SEG65
37
COM11/SEG64
38
COM12/SEG63
39
COM13/SEG62
40
COM14/SEG61
41
COM15/SEG60
42
SEG59
43
SEG58
44
SEG57
45
SEG56
46
SEG55
47
SEG54
48
SEG53
49
SEG52
50
SEG51 51
SEG50 52
SEG49 53
SEG48 54
SEG47 55
SEG46 56
SEG45 57
SEG44 58
SEG43 59
SEG42 60
SEG41 61
SEG40 62
SEG39 63
SEG38 64
SEG37 65
SEG36 66
SEG35 67
SEG34 68
SEG33 69
SEG32 70
SEG31 71
SEG30 72
SEG29 73
SEG28 74
SEG27 75
SEG2676
SEG2577
SEG24 78
SEG2379
SEG22 80
SEG21 81
SEG2082
SEG1983
SEG18 84
SEG17 85
SEG1686
SEG1587
SEG1488
SEG1389
SEG12 90
SEG11 91
SEG1092
SEG9 93
SEG894
SEG795
SEG6 96
SEG597
SEG498
SEG3 99
SEG2 100
U1
HT16H25_100LQFP
IO_CSB
IO_CLK
IO_DIO
C1
1uF/0805
C2
0.1uF/0805C3
0.1uF/0805C4
0.1uF/0805C5
C6
0.1uF/0805C7
0.1uF/0805C8
0.1uF/0805C9
0.1uF/0805C10
0R/0805R1
0R/0805R2
0R/0805R3
0R/0805R4
0R/0805
R5
IO_VDD
C11 C12 C13
P_CSB
P_CLK
P_DIO
P_VDD
P_VSS
COM0
COM1
COM2
COM3
COM4
COM5
COM6
COM7
COM8
COM9
COM10
COM11
COM12
COM13
COM14
COM15
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
SEG8
SEG9
SEG10
SEG11
SEG12
SEG13
SEG14
SEG15
SEG16
SEG17
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
SEG24
SEG25
SEG26
SEG27
SEG28
SEG29
SEG30
SEG31
SEG32
SEG33
SEG34
SEG35
SEG36
SEG37
SEG38
SEG39
SEG40
SEG41
SEG42
SEG43
SEG44
SEG45
SEG46
SEG47
SEG48
SEG49
SEG50
SEG51
SEG52
SEG53
SEG54
SEG55
SEG56
SEG57
SEG1
1
COM1
30
COM2
31
COM3
32
COM4
33
COM5
34
COM6
35
COM7
36
COM8
37
COM9
38
COM10
39
COM11
40
COM12
41
COM13
42
COM14
43
COM15
44
COM16
45
SEG2
2
SEG3
3
SEG4
4
SEG5
5
SEG6
6
SEG7
7
SEG8
8
SEG9
9
SEG10
10
SEG11
11
SEG12
12
SEG13
13
SEG14
14
SEG15
15
SEG16
16
SEG17
17
SEG18
18
SEG19
19
SEG20
20
SEG21
21
SEG22
22
SEG23
23
SEG24
24
SEG25
25
SEG26
26
SEG27
27
SEG28
28
SEG29
29SEG3046
SEG31 47
SEG32 48
SEG3349
SEG3450
SEG35 51
SEG3652
SEG37 53
SEG38 54
SEG3955
SEG4056
SEG41 57
SEG42 58
SEG4359
SEG44 60
SEG4561
SEG4662
SEG47 63
SEG48 64
SEG4965
SEG50 66
SEG5167
SEG5268
SEG5369
SEG54 70
SEG55 71
SEG56 72
SEG57 73
SEG5874
Ar
Ag
Ab
Aw
K
LCD
LCD
Ar
Ag
Ab
Aw
COM0
COM1
COM2
COM3
COM4
COM5
COM6
COM7
COM8
COM9
COM10
COM11
COM12
COM13
COM14
COM15
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
SEG8
SEG9
SEG10
SEG11
SEG12
SEG13
SEG14
SEG15
SEG16
SEG17
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
SEG24
SEG25
SEG26
SEG27
SEG28
SEG29
SEG30
SEG31
SEG32
SEG33
SEG34
SEG35
SEG36
SEG37
SEG38
SEG39
SEG40
SEG41
SEG42
SEG43
SEG44
SEG45
SEG46
SEG47
SEG48
SEG49
SEG50
SEG51
SEG52
SEG53
SEG54
SEG55
SEG56
SEG57
LED_R
LED_G
Ag
Ab
LED_W
LED_G
LED_B
LED_W
P_k-
LED_B
Aw
10K/0805
R6 P_A+
Ar
10K/0805
R10
LED_R
Q2
S8550
10K/0805
R7 P_A+
10K/0805
R11
10K/0805
R8 P_A+
10K/0805
R12
10K/0805
R9 P_A+
10K/0805
R13
0R/0805R23
0R/0805R24
C14
NC
IO_V0
IO_V0
IO_VLCD
0R/0805
R14
0R/0805
R18
Q3
S8550
Q4
S8550
Q1
S8550
0R/0805
R15
0R/0805
R19
0R/0805
R16
0R/0805
R20
0R/0805
R17
0R/0805
R21
0R/0805R25
IO_VDD 0R/0805
R26
0R/0805
R27
IO_VDD
P_VSS
C16
SPI I2C
4.7K/0805R28
4.7K/0805R29
1 2
3 4
56
78
9 10
11 12
13 14
15 16
17 18
P3
P_VDD
P_VSS
P_DIO
P_A+ P_k-
P_CSB
P_CLK
P_VDD
P_VSS
P_A+
P_k-
C15
C2'
NC
Vreg Vreg
FB1
1
2
3
4
5
P1
MicroUSB
22uF/1206
C2
0.1uF/0805
C1
22uF/1206
C3
+5V
0R/0805R1
0R/0805R2
0R/0805R14
1K/0805
R15
VDD
TVS1
6V
C0
NC

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 18 / 22 January 8, 2019
MCU Control Circuit
MCU Control Circuit
The figure above shows the MCU control circuit. The main control MCU model is a
28SOP HT66F50. PD0, PD1 and PD3 form a 3-line I/O to communicate with the
HT16H25 through the I2C serial interface (also retain the SPI communication interface)
to control the LCD display. Use the PC5 one-way I/O to drive the NMOS transistor
which controls the LCD display backlight. The RESB pin is for the reset circuit where
S1 is used as a reset button
Display Circuit
LCD Display Circuit
PA0/C0X/AN0
1
VSS&AVSS
2
PB4/XT2
3
PB3/XT1
4
PB2/OSC2
5
PB1/OSC1
6
VDD
7
PB0/RES
8
PC1/TP1B_1/SCOM1
9
PC0/TP1B_0/SCOM0
10
PC7/[TP1A]/SCOM3
11
PC6/[TP0_0]/SCOM2
12
PD3/[TCK1]/TP3_0/[SDO]
13
PD2/[TCK0]/[SDI/SDA]
14 PD1/[TP2_0]/[SDO]/[SCK/SCL] 15
PD0/[TCK2]/TP3_1/[SCS] 16
PC5/[INT1]/TP0_1/TP1B_2/[PCK] 17
PC4/[INT0]/[PINT]/TCK3/TP2_1 18
PC3/PINT/TP2_0/C1- 19
PC2/TCK2/PCK/C1+ 20
PB5/SCS/VREF 21
PA7/SCK/SCL/AN7 22
PA6/SDI/SDA/AN6 23
PA5/C1X/SDO/AN5 24
PA4/INT1/TCK1/AN4 25
PA3/INT0/C0-/AN3 26
PA2/TCK0/C0+/AN2 27
PA1/TP1A/AN1 28
HT66F50
U1
HT66F50
GND
28 SOP
ICPDA
0.1uF/0805
C6
VDD
ICPCK
IO_CSB
IO_CLK
IO_DIO
D1
IN4148 10nF/0805
C7
0.1uF/0805
C8
VDD
100K/0805
R7
300R/0805R8
RES
S1
MCU_RES
IO_LED
SEG1
1
SEG0
2
GPO0
3
GPO1
4
GPO2
5
GPO3
6
IFS
7
CSB
8
SCL/CLK
9
SDA/DIO
10
VDD
11
Vreg
12
VSS
13
VMAX
14
VLCD
15
C1P
16
C1N
17
C2P
18
C2N
19
C3P
20
C3N
21
V0
22
V1
23
V2
24
V3
25
V4
26
COM0
27
COM1
28
COM2
29
COM3
30
COM4/SEG71
31
COM5/SEG70
32
COM6/SEG69
33
COM7/SEG68
34
COM8/SEG67
35
COM9/SEG66
36
COM10/SEG65
37
COM11/SEG64
38
COM12/SEG63
39
COM13/SEG62
40
COM14/SEG61
41
COM15/SEG60
42
SEG59
43
SEG58
44
SEG57
45
SEG56
46
SEG55
47
SEG54
48
SEG53
49
SEG52
50
SEG51 51
SEG50 52
SEG49 53
SEG48 54
SEG47 55
SEG46 56
SEG45 57
SEG44 58
SEG43 59
SEG42 60
SEG41 61
SEG40 62
SEG39 63
SEG38 64
SEG37 65
SEG36 66
SEG35 67
SEG34 68
SEG33 69
SEG32 70
SEG31 71
SEG30 72
SEG29 73
SEG28 74
SEG27 75
SEG26 76
SEG25 77
SEG24 78
SEG23 79
SEG22 80
SEG21 81
SEG20 82
SEG19 83
SEG18 84
SEG17 85
SEG16 86
SEG15 87
SEG14 88
SEG13 89
SEG12 90
SEG11 91
SEG10 92
SEG9 93
SEG8 94
SEG7 95
SEG6 96
SEG5 97
SEG4 98
SEG3 99
SEG2 100
U1
HT16H25_100LQFP
IO_CSB
IO_CLK
IO_DIO
C1
1uF/0805
C2
0.1uF/0805C3
0.1uF/0805C4
0.1uF/0805C5
C6
0.1uF/0805C7
0.1uF/0805C8
0.1uF/0805C9
0.1uF/0805C10
0R/0805R1
0R/0805R2
0R/0805R3
0R/0805R4
0R/0805
R5
IO_VDD
C11 C12 C13
P_CSB
P_CLK
P_DIO
P_VDD
P_VSS
COM0
COM1
COM2
COM3
COM4
COM5
COM6
COM7
COM8
COM9
COM10
COM11
COM12
COM13
COM14
COM15
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
SEG8
SEG9
SEG10
SEG11
SEG12
SEG13
SEG14
SEG15
SEG16
SEG17
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
SEG24
SEG25
SEG26
SEG27
SEG28
SEG29
SEG30
SEG31
SEG32
SEG33
SEG34
SEG35
SEG36
SEG37
SEG38
SEG39
SEG40
SEG41
SEG42
SEG43
SEG44
SEG45
SEG46
SEG47
SEG48
SEG49
SEG50
SEG51
SEG52
SEG53
SEG54
SEG55
SEG56
SEG57
SEG1
1
COM1
30
COM2
31
COM3
32
COM4
33
COM5
34
COM6
35
COM7
36
COM8
37
COM9
38
COM10
39
COM11
40
COM12
41
COM13
42
COM14
43
COM15
44
COM16
45
SEG2
2
SEG3
3
SEG4
4
SEG5
5
SEG6
6
SEG7
7
SEG8
8
SEG9
9
SEG10
10
SEG11
11
SEG12
12
SEG13
13
SEG14
14
SEG15
15
SEG16
16
SEG17
17
SEG18
18
SEG19
19
SEG20
20
SEG21
21
SEG22
22
SEG23
23
SEG24
24
SEG25
25
SEG26
26
SEG27
27
SEG28
28
SEG29
29 SEG30 46
SEG31 47
SEG32 48
SEG33 49
SEG34 50
SEG35 51
SEG36 52
SEG37 53
SEG38 54
SEG39 55
SEG40 56
SEG41 57
SEG42 58
SEG43 59
SEG44 60
SEG45 61
SEG46 62
SEG47 63
SEG48 64
SEG49 65
SEG50 66
SEG51 67
SEG52 68
SEG53 69
SEG54 70
SEG55 71
SEG56 72
SEG57 73
SEG58 74
Ar
Ag
Ab
Aw
K
LCD
LCD
Ar
Ag
Ab
Aw
COM0
COM1
COM2
COM3
COM4
COM5
COM6
COM7
COM8
COM9
COM10
COM11
COM12
COM13
COM14
COM15
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
SEG8
SEG9
SEG10
SEG11
SEG12
SEG13
SEG14
SEG15
SEG16
SEG17
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
SEG24
SEG25
SEG26
SEG27
SEG28
SEG29
SEG30
SEG31
SEG32
SEG33
SEG34
SEG35
SEG36
SEG37
SEG38
SEG39
SEG40
SEG41
SEG42
SEG43
SEG44
SEG45
SEG46
SEG47
SEG48
SEG49
SEG50
SEG51
SEG52
SEG53
SEG54
SEG55
SEG56
SEG57
LED_R
LED_G
Ag
Ab
LED_W
LED_G
LED_B
LED_W
P_k-
LED_B
Aw
10K/0805
R6 P_A+
Ar
10K/0805
R10
LED_R
Q2
S8550
10K/0805
R7 P_A+
10K/0805
R11
10K/0805
R8 P_A+
10K/0805
R12
10K/0805
R9 P_A+
10K/0805
R13
0R/0805R23
0R/0805R24
C14
NC
IO_V0
IO_V0
IO_VLCD
0R/0805
R14
0R/0805
R18
Q3
S8550
Q4
S8550
Q1
S8550
0R/0805
R15
0R/0805
R19
0R/0805
R16
0R/0805
R20
0R/0805
R17
0R/0805
R21
0R/0805R25IO_VDD 0R/0805
R26
0R/0805
R27
IO_VDD
P_VSS
C16
SPI I2C
4.7K/0805R28
4.7K/0805R29
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
17 18
P3
P_VDD
P_VSS
P_DIO
P_A+ P_k-
P_CSB
P_CLK
P_VDD
P_VSS
P_A+
P_k-
C15
C2'
NC
Vreg Vreg

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 19 / 22 January 8, 2019
The diagram shows the HT16H25 LCD display circuit. Three HT16H25 pins, CSB,
SCL/CLK and SDA/DIO are the communication pins for the master MCU. The IFS pin
is connected to either VSS or VDD to select the communication interface to be either
SPI or I2C. Select the integrated Charge Pump boost circuit output to drive a 10V LCD
screen, the Vmax Pin is connected to V0 and the V0~V4 pins are the 5 LCD bias pins.
The LCD display is controlled via the 16 COM and 58 SEG output drive pins.
GPO0~GPO3 can be selected to be either logic or PWM outputs to control the LCD
RGB backlight.
Software Description
In accordance with the above application the HT16H25 LCD Demo main program flow will
now be described.
Main Program Flowchart
START
CLR_RAM();
SYS_Initial();
HT16H25_Initial();
dis_mode0=0? Initialise LCD screen
dis_mode0=1? Treadmill option select
dis_mode0=2? Simulate Treadmill
Display Mode
dis_mode0=3? Calculate Activity
Score Mode
Update Timer and
Display RAM
Y
Y
Y
Y
N
N
N
N
The program clears the RAM after power-on, initialises the program parameters,
initialises the TM2 parameters, sets up an interrupt of 10ms and then initialises the
HT16H25 using the I2C serial communication.

HT16H25 Treadmill Display Application Guideline
AN0505E V1.00 20 / 22 January 8, 2019
After the initialisation has completed, the program enters the main flow, clears the
watchdog, and enters the display process. First, the corresponding display step is entered
according to the value of the display flag bit dis_mode0, and then the LCD display RAM is
updated.
The timer TM2 enters an interrupt program every 10ms, and the Count_10ms and
Count_Time flags are incremented by one. Count_10ms is the display delay flag bit used
to control the display update speed. Count_Time is the 10ms flag of the display time
module, Count_Time>4 (50ms), display time plus 1 second.
Display Description
LCD Display Flow Description:
●Power-n
Power-on, LCD full screen illuminates and flashes 3 times at a 1Hz frequency
●Initialise the LCD display mode
Calories, heart rage, health score, speed and distance are set to 0
Time display: 0:00:00
●Running Mode Select
Select the treadmill internal program P1~P7. The LCD displays a corresponding
example and the speed changes accordingly. The speed shows the initial running
speed. The PWM duty is adjusted accordingly to adjust the backlight from dark to
light. The duty cycle adjustment is as follows: 60/64 →50/64 →40/64 →30/64 →
20/64 →10/64
The dot matrix screen shows "3-2-1-GO" and the backlight colour is changed
accordingly: Red-Green-Blue-White
●Single run demonstration mode
The time update speed: TM time is 50ms+1s, from 0:00:00 to 0:30:00, simulated
running for 30 minutes
AVG.CALORIE = TOTAL CALORIES /TIME
Award is achieved for a distance increase of 0.3km
The speed: LCD Time is changed every 5 minutes. The change order is
5.5km/h →10km/h →12km/h →6.5km/h →8.5km/h →5km/h →0km/h
0~5min: speed=5.0km/h,"+500" flashes, speed=5.5km/h;
total calories 500ms+1; heart rate 1050ms+1; distance 300ms+1
5~10min: speed every 200ms+0.5 increase until 10km/h, this process "+500"
light total calories 200ms+1; heart rate 550ms+1; distance 200ms+1
10~15min: speed every 200ms +1 increase until 12km/h
total calories 200ms+1; heart rate 800ms+1; distance 100ms+1
Table of contents
Other Holtek Control Unit manuals