Professional Documents
Culture Documents
CH452 manual
1 Overview
CH452 is a digital tube display driver and keyboard scan control chip. CH452 has a built-in clock oscillating circuit,
which can dynamically drive 8 digits Code tube or 64 LEDs, with BCD decoding, flashing, shifting, segment
addressing, light beam decoding, etc.; at the same time, 64 Keyboard scanning of keys; CH452 can exchange data
with single chip microcomputer through 4-wire serial interface or 2-wire serial interface that can be cascaded;
To provide a power-on reset signal to the microcontroller.
2. Features
2.1. Display driver
● Built-in current drive stage, segment current is not less than 20mA, word current is not less than 100mA.
● Dynamic display scan control, directly drive 8-bit digital tube, 64 light-emitting tube LED or 64-level light beam.
● Optional non-decoding mode or BCD decoding mode corresponding to the segment of the digital tube and the
data bit.
● BCD decoding supports a custom BCD code to display a special character.
● The word data of the digital tube is shifted left, right, left and right.
● The digital blinking control of each nixie tube can choose fast and slow blinking speed.
● Arbitrary segment addressing, independently control the on and off of each LED or each segment of each digital
tube.
● 64-level light beam decoding, the light beam value is displayed through a light beam composed of 64 LEDs.
● Scan limit control, support 1 to 8 digital tubes, and only allocate scan time for effective digital tubes.
● 16-level brightness control is provided through duty cycle setting.
● The word drive output polarity can be selected to facilitate external expansion of drive voltage and current.
2.2. Keyboard control
● Built-in 64-key keyboard controller, based on 8×8 matrix keyboard scanning.
● Built-in pull-down resistor for button status input and built-in debounce circuit.
● Keyboard interrupt, you can choose low-level effective output or low-level pulse output.
● Provide button release flag bit for querying button press and release.
● Support key-press wake-up, CH452 in low power consumption and power-saving state can be woken up by some
keys.
2.3. External interface
● With the same chip, high-speed 4-wire serial interface or economical 2-wire serial interface can be selected.
● 4-wire serial interface: support multiple chip cascade, clock speed from 0 to 2MHz, compatible with CH451 chip.
● 4-wire serial interface: DIN and DCLK signal lines can be shared with other interface circuits, saving pins.
● 2-wire serial interface: support two CH452 chips in parallel (the respective addresses are set by the ADDR pin
level).
● 2-wire serial interface: 400KHz clock speed, compatible with two-wire I 2 C bus, saving pins.
● Built-in power-on reset, which can provide high-level active and low-level active reset outputs for the
microcontroller.
2.4. Miscellaneous
● Built-in clock oscillating circuit, no need to provide external clock or external oscillating components, more anti-
interference.
● Support low-power sleep, save power, and can be awakened by a button or command operation.
● Support 3V~5V power supply voltage.
● Provide SOP28 and DIP24S two lead-free packages, compatible with RoHS, pin compatible with CH451 chip.
3. Package
4-wire serial interface
Page 3
Note: CH452 chip has two versions: V1 (batch number is 2042XXXXX, only available to existing users) and V2
(not batch number 2042XXXXX).
The main difference is that the addressing of beam decoding and segment addressing is different. The addressing
order of V1 version is first segment and then word, and the addressing order of V2 version is
The word is followed by the paragraph, and the function and temperature range of the V2 version is better than that
of the V1 version. This manual only applies to V2 version.
4. Pin
4.1. Standard common pins
SOP28 DIP24S
Pin number Pin number Pin name Types of Pin description
23 2 VCC power supply Positive power supply, continuous current is not less
than 150mA
9, 10 15 GND power supply Common ground, continuous current is not less than
150mA
22~15 1,24~18 SEG7 Three-state Segment drive of nixie tube, high level effective,
~SEG0 output and input Keyboard scan input, high level active, built-in pull-
down
1~8 7~14 DIG7 Output The word drive of the nixie tube, active low,
~DIG0 Keyboard scan output, valid at high level,
DIG6 and DIG7 can be used for GPO general output
14 17 H3L2 enter Serial interface mode selection, built-in pull-up
resistor, High level select 4-wire interface, low level
select 2-wire interface
12 16 RST Output Power-on reset output, active high
13 not support RST# Output Power-on reset output, active low
28 not support RSTI enter Manual reset input, active high, built-in pull-down
11 not support NC. / GPI enter Can be used for GPI general input
4.2. 4-wire interface pins
28-pin package 24-pin package Pin Name Types of Pin description
CH452 works in non-decoding mode by default, at this time, bit 7~bit 0 of word data in 8 data registers correspond
to 8 data respectively
The decimal point and segment G to segment A of the nixie tube. For the LED array, the data bit of each word data
uniquely corresponds to a LED
Grade tube. When the data bit is 1, the corresponding digital tube segment or LED will light up; when the data bit is
0, the corresponding digital tube
The segment or LED will go out. For example, the bit 0 of the third data register is 1, so the corresponding segment
A point of the third digital tube
bright. By setting, CH452 can also work in BCD decoding mode. This mode is mainly used for digital tube drive.
The binary number BCD code is decoded by CH452 and directly drives the digital tube to display the corresponding
character. The BCD decoding method refers to the
Bit 4~bit 0 of the word data in the memory are decoded by BCD, and the output of the segment drive pins
SEG6~SEG0 is controlled, corresponding to the segment G~ of the digital tube
Segment A, while using bit 7 of word data to control the output of segment drive pin SEG7, corresponding to the
decimal point of the digital tube, bit 6 of word data and
Bit 5 does not affect BCD decoding. The following table shows the corresponding segment G to segment after BCD
decoding of bit 4 to bit 0 of the word data in the data register
A and the characters displayed by the digital tube. Refer to the following table, if you need to display the character 0
on the digital tube, just insert the data 0xx00000B or
Or 00H; need to display the character 0. (0 with a decimal point), just put the data 1xx00000B or 80H; similarly, the
data 1xx01000B
Or 88H corresponds to character 8. (8 with decimal point); data 0xx10011B or 13H corresponds to character =; data
0xx11010B or
1AH corresponds to the character. (decimal point); data 0xx10000B or 10H corresponds to the character (space, the
digital tube does not display); data
0xx11110B or 1EH corresponds to custom special characters, which are defined by the "custom BCD code"
command.
The figure below is the segment name of the digital tube
The following table is the BCD decoding table
Bit 4 to bit 0 Seg G~Seg A Characters Bit 4 to bit 0 Seg G~Seg A Characters
displayed displayed
Space
-| -1 or plus sign
-Minus sign minus sign
= Equal sign
[ Left bracket
] Right square bracket
_ Underscore
H letter H
L letter L
P letter P
. Decimal point
Custom character
Space
The following figure is the internal circuit diagram of the segment drive pins SEG7~SEG0 of CH452.
The following figure is the internal circuit diagram of the word drive pins DIG7~DIG0 of CH452.
The above figure shows the waveform of the MCU sending 12-bit data to CH452 through the 4-wire serial interface
when the keyboard scan function is not enabled
In the figure, the data is 001000000001B, and the low-level pulse of LOAD can be wider, which is represented by a
dotted line in the figure.
When the keyboard scan function is enabled, DOUT is used for keyboard interrupt and data output, and the default
is high. When CH452 is detected as valid
When a key is pressed, DOUT outputs a low-level valid keyboard interrupt; after the MCU is interrupted, a
command to read the key code is issued, and CH452 is in LOAD
After the rising edge of DOUT, the lowest 7 bits of the key code are output from DOUT, the highest bit 7; the
microcontroller continues to output the serial clock, at each lower DCLK
On falling edge, CH452 outputs the remaining 6 digits of the lower 7-bit key code from DOUT in sequence, the
order is high digit first, low digit last; low 7 digits
After the key code is output, no matter how DCLK changes, CH452 will restore DOUT to the default high level.
Refer to the figure below, MCU
The process of obtaining the key code from CH452 is:
① Output one bit of data, that is, output the lowest bit data B0 of the key code command to DIN, and output low-
level pulse to DCLK
Punch
② In the same way, output the bit data B1~B11 of the command to read the key code;
③ Output a low-level pulse to LOAD, including a rising edge to make CH452 load serial data. CH452 analyzes that
it is reading
Take the key code command, and immediately output the most significant data K6 of the key code in DOUT;
④ Read one bit of data, that is, input the highest bit data K6 of the key code from DOUT, and output a low-level
pulse to DCLK;
⑤ In the same way, input the bit data K5~K0 of the key code.
In fact, only the bit data B8~B11 are valid for the read key code command of CH452, so the MCU does not need to
issue the read key
B0~B7 of key code command. For example, if the key code is 63H, the simplified description of the above process
is 1^1^1^0^↑H^H^L^L^L^H^H^,
That is, first send the key code reading command 0111xxxxxxxxB to CH452, and then receive the key code
110011B from DOUT. The picture above is
The waveform diagram of the MCU sending commands to CH452 and receiving key codes. MCU refers to the
working status of the MCU.
If INTM is set to 1 in the "set system parameter" command, select the key interrupt output mode as low-level pulse
(in the edge
When CH452 detects a valid key, the keyboard interrupt output by DOUT is a low-level pulse with a width of
several microseconds.
5.6. 2-wire serial interface
CH452 has an economical 2-wire serial interface, including 2 main signal lines: serial data clock input line SCL,
serial data output
Input and output line SDA; and 2 auxiliary signal lines: address selection line ADDR of serial interface, interrupt
output line INT# of serial interface.
Among them, SCL and ADDR are input signal lines with pull-ups, and the default is high; SDA is a quasi-
bidirectional signal line with pull-ups, and the default is high
Level; INT# is an open-drain output with a pull-up. After the keyboard scan function is enabled, it is used as a
keyboard interrupt output line. The default is high level.
SDA is used for serial data input and output. The high level represents bit data 1, and the low level represents bit
data 0. The sequence of serial data input
The order is high order first and low order last.
SCL is used to provide serial clock. CH452 inputs data from SDA during the high level period after its rising edge,
and the low level after its falling edge.
Data is output from SDA during the level period.
ADDR is used to statically select the device address of CH452. In order to save the I/O pins of the MCU, two
CH452 chips can be connected
Connected to the same set of SCL and SDA signal lines is called parallel mode. In order to distinguish two CH452s,
one of the CH452's ADDR
The pin is connected to low level, and the ADDR of the other CH452 is connected to high level (or left floating), so
that the two have different device addresses.
The falling edge of SDA that occurs during the high level of SCL is defined as the start signal of the serial interface.
CH452 only detects the start signal
Only then receive and analyze the command. Therefore, when the I/O pin resources of the microcontroller are tight,
not only can the INT# pin be omitted and the SDA pin can be used instead
The SCL pin can also be shared with other interface circuits while keeping the state of the SDA pin unchanged.
The process of MCU outputting serial data to CH452 is (not the only process, there can be many changes):
① SDA outputs high level, SCL outputs high level, ready to start signal;
② SDA outputs low level to generate a start signal;
③ SCL outputs low level and start-up is complete;
④ Output one bit of data, that is, output the highest bit data DA0 (always 0) to SDA, and output a high level pulse
to SCL (from low
The level changes to high and then returns to low), including a rising edge and high level to enable CH452 to input
bit data;
⑤ In the same way, output bit data DA1 (always 1), ADDR (address selection), B11~B8;
⑥ In the same way, output bit data R/-W, low level 0 represents a write operation, that is, bit data will continue to
be output;
⑦ In the same way, output bit data 1, that is, not output, so that the I 2 C device sends back the response bit. Note
that by default
CH452 does not send back the response bit, but it will send back the response bit after executing the effective "2-
wire interface ACK" command;
⑧ In the same way, output bit data B7~B0;
⑨ End directly, but it is recommended to restore SCL to high level, and it is recommended to restore SDA to high
level.
The figure above is the waveform diagram of the MCU sending 12-bit data to CH452 through the 2-wire serial
interface, the data is 001000000001B,
ADDR is used to select the device address, which is represented by a dotted line in the figure.
INT# is used for keyboard interrupt output, the default is high level. When CH452 detects a valid key, INT# outputs
low-level valid
The keyboard is interrupted; after the MCU is interrupted, the command to read the key code is issued, and CH452
restores the INT# to the high level, and outputs the key from the SDA
Key code. Refer to the figure below, the process of MCU obtaining key codes from CH452 is:
① SDA outputs high level, SCL outputs high level, ready to start signal;
② SDA outputs low level to generate a start signal;
③ SCL outputs low level and start-up is complete;
④ Output one bit of data, that is, output the highest bit data DA0 (always 0) to SDA, and output a high level pulse
to SCL (from low
The level changes to high and then returns to low), including a rising edge and high level to enable CH452 to input
bit data;
⑤ In the same way, output bit data DA1 (always 1), ADDR (address selection), B11~B8;
⑥ In the same way, output bit data R/-W, high level 1 represents read operation, that is, CH452 is required to
output bit data;
⑦ In the same way, output bit data 1, that is, not output, so that the I 2 C device sends back the response bit. Note
that by default
CH452 does not send back the response bit, but it will send back the response bit after executing the effective "2-
wire interface ACK" command;
⑧ During the low-level period of SCL, CH452 outputs bit data K7 to SDA, and the microcontroller outputs high-
level pulses to SCL, and
Read bit data from SDA during SCL high level;
⑨ In the same way, CH452 outputs bit data K6~K0, and MCU inputs bit data as key codes;
⑩ End directly, but it is recommended to restore SCL to high level, and it is recommended to restore SDA to high
level.
The figure above is the waveform diagram of the MCU sending commands to CH452 and receiving key codes, the
command data is 0111xxxxxxxxB, then
The received key code is 01100011B.
If INTM is set to 1 in the "set system parameter" command, select the key interrupt output mode as low-level pulse
(in the edge
When CH452 detects a valid button, it will wait until SCL and SDA are idle (SCL and SDA remain high for 40
microseconds)
Above), and then output a few microseconds low-level pulse from SDA as a keyboard interrupt, and then still output
low-level from INT# valid
The keyboard is interrupted. This interrupt mode is used to save the I/O pins of the microcontroller. It only needs to
connect SCL and SDA instead of INT#.
When idle, the MCU keeps SCL and SDA at a high level, and CH452 notifies the MCU of the keyboard interrupt
through the low-level pulse of SDA.
Operation Direction bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
Command bit
No operation write
Load beam value write LEVEL
Segment addressing write BIT_ADDR
is cleared to 0
Segment addressing write BIT_ADDR
is set to 1
Chip internal reset write
Go to sleep write
Set auxiliary parameter write
Word data shift left write
Word data shift right write
Word data write left circularly
Word data right cycle write
Custom BCD code write/read SELF_BCD
Set system parameters write/read 0 GPOE INTM SSPD DPLR WDOG KEYB DISP
Set display parameter write/read MODE LIMIT INTENSITY
Set flashing control write/read D7S D6S D5S D4S D3S D2S D1S D0S
Load word data 0 Write/read DIG_DATA, word data corresponding to DIG0
Load word data 1 Write/read DIG_DATA, word data corresponding to DIG1
Load word data 2 Write/read DIG_DATA, word data corresponding to DIG2
Load word data 3 Write/read DIG_DATA, word data corresponding to DIG3
Load word data 4 Write/read DIG_DATA, word data corresponding to DIG4
Load word data 5 Write/read DIG_DATA, word data corresponding to DIG5
Load word data 6 Write/read DIG_DATA, word data corresponding to DIG6
Load word data 7 Write/read DIG_DATA, word data corresponding to DIG7
Read chip version 2 line read
Read SEG pin 2 line read SEG7 SEG6 SEG5 SEG4 SEG3 SEG2 SEG1 SEG0
Read key code read KEY7 KEY6 KEY5 KEY4 KEY3 KEY2 KEY1 KEY0
2-wire interface ACK 2-wire write
6.1. No operation: 0000xxxxxxxxB
The no-op command has no effect on CH452. This command can be used in applications where multiple CH452s
are cascaded through the front-end CH452
Send operation commands to the next stage CH452 without affecting the state of the previous stage. For example, to
send the operation command 001000000001B to two levels
Connect the subsequent stage CH452 in the circuit (the DIN of the subsequent stage CH452 is connected to the
DOUT of the previous stage CH452), as long as the no-operation command is added after the command
Let 000000000000B send again, the simplified description is 1^0^0^0^0^0^0^0^0^1^0^0^0^0^0^0^0^0^0^0^0^
0^0^0^↑,
Then, the operation command will pass through the previous stage CH452 to the subsequent stage CH452, while the
no-operation command is left to the previous stage CH452. In addition, in Africa
In cascading applications, no-operation commands can only send valid data B8~B11, and the simplified description
is 0^0^0^0^↑. No operation can also be used
To wake up the CH452 in the low-power sleep state, avoid other commands from affecting the working state of the
CH452.
6.2. Load beam value: 00010[LEVEL]B
The load beam value command is used to specify the new beam value LEVEL, and the valid beam value is 00H to
40H. This command makes addressing less than light
The luminous tube with the column value lights up, and the luminous tube with the column value is greater than or
equal to the light column value is off. For example, the command data 000100000000B means loading
The light beam value is 00H, then all LEDs are off; the command data 000100010110B means that the light beam
value 16H is loaded, then the address is 00H to 15H
LED is on (a total of 16H LEDs are on), while the LEDs addressing 16H to 3FH are off; command data
000101000000B means loading light beam
Value is 40H, then all LEDs are on.
0 Display drive function enable DISP Turn off the display driver Allow display driver
1 Enable keyboard scan function KEYB Turn off keyboard scan Enable keyboard scan
2 Enable watchdog function WDOG Close watchdog Enable watchdog
3 Word drive DIG output polarity DPLR Active low Active high
4 Flashing speed/frequency SSPD Low speed (about 1.5Hz) Fast (about 3Hz)
5 Button interrupt output mode INTM Active low (Level or edge interrupt)
Low-level pulse
(Edge interrupt)
6 General-purpose output pin enable GPOE Used to display drive word output When the scan limit is 1~6,
(Only DIG6 and DIG7 pins) Disable general output Extra DIG6 and DIG7 pins
Used for general output, respectively by
Blinking bit D6S and D7S control
8. Application
8.1. Connect the 4-wire interface to the MCU (the following figure)
The H3L2 pin of U2 (CH452A) is high (or left floating), CH452 communicates with MCU U1 (MCS51
Series 89C2051) are connected. Capacitors C2 and C3 are arranged near the power supply pin of U2 for power
supply decoupling and reduce the driving current
The interference produced. When the keyboard function is not needed, the KEY signal line can be omitted, and only
the three signal lines DCLK, DIN, LOAD are used;
When using the keyboard function, the KEY signal line of the DOUT pin of CH452 can be connected to the
interrupt input pin of the MCU.
To the common I/O pin, then the query method should be used to determine whether CH452 detects a valid key.
CH452 can also provide
For power-on reset signal RESET.
Because part of the I/O pins of the standard MCS51 single-chip microcomputer are quasi-bidirectional ports with
weak pull-ups, they are connected to CH452 at a long distance
In the circuit, it is recommended to add pull-up resistors to DIN, DCLK, LOAD, and DOUT to reduce interference.
8.2. The 2-wire interface is connected to the MCU (the figure below)
The H3L2 pin of U2 (CH452A) is low level, and CH452 is connected to MCU U1 through a 2-wire serial interface.
When keys are not needed
When the keyboard function is used, the KEY signal line can be omitted, and only the two signal lines SCL and
SDA are used; when the keyboard function is used, the INT# of CH452
The KEY signal line of the pin can be connected to the interrupt input pin or ordinary I/O pin of the MCU for query.
When the mode selects "low level pulse", you can also use SDA instead of INT# to provide keyboard interrupts to
the microcontroller.
8.3. Drive the common cathode digital tube (below)
CH452 can dynamically drive 8 common cathode nixie tubes, and the same segment pins of all nixie tubes (segment
A to segment G and decimal point) are connected in parallel
Then connect the segment drive pins SEG0~SEG7 of CH452 through the current-limiting resistor R1 (or R12)
connected in series.
DIG0~DIG7 pins of CH452 are driven.
If the segment current limiting LMTC function of CH452 is enabled, the segment current limiting resistor R1 (or
R12, the same below) can be omitted; No
Then, a resistor R1 needs to be connected in series to the segment drive pins to limit and balance the drive current of
each segment. The resistance value of the series current limiting resistor R1
The larger the segment drive current, the lower the display brightness of the digital tube. The resistance of R1 is
generally between 60Ω and 1KΩ, and other conditions are the same.
In the case of high resistance, a larger resistance value should be selected first. Under the 5V power supply voltage,
the series connection of a 270Ω resistor usually corresponds to a segment current of 10mA.
In the panel layout of the digital tube, it is recommended that the order of the digital tube from left to right is N1 to
the left and N8 to the right to match the words left and right.
Move command and word left and right circular movement command. If there are less than 8 digital tubes, you can
first remove the numbers such as N1, N2, N3 on the left
Code tube, and set the corresponding scan limit to obtain a larger dynamic drive current to improve display
brightness. When the number of digital tubes is less than 7 and scanning
When the limit is less than 7, setting GPOE to 1 can use the extra DIG6 and DIG7 pins as general-purpose output
pins.
8.4. Drive the common anode digital tube (below)
If the segment drive signals SEG0~SEG7 and the word drive signals DIG0~DIG7 are respectively inverted, the
common anode digital tube can be driven.
In the figure below, the segment signals SEG0~SEG7 are driven by the U22 Darlington tube array in inverted
phase. It can also use 8 bases in series with current limiting resistors.
Instead of the triode, the word signals DIG0~DIG7 are driven by 8 PNP triodes T1 and other inverted phases. If
U22 does not support constant current drive,
Then use resistor R13 to limit and equalize the segment current. The driving current of this circuit is several times
larger than that of CH452 directly driving the common cathode digital tube.
The resistances R13 and R14 should be selected according to the actual drive current.
In order to save cost, U22 in the figure below can also be removed, and the segment pins can be driven directly by
CH452, but only the non-decoding method can be used
The loaded word data must be inverted by bit (0 is on and 1 is off). It is recommended to load all the word data
0FFH before turning on the display.
For large-size digital tubes composed of multiple LEDs connected in series, due to the large voltage drop, the 5V
power supply voltage cannot be directly driven.
An external high-voltage drive circuit is often required. In the figure below, set the output polarity of the word drive
DIG of CH452 to "active high", and then pass the NPN
The triode T2 and the PNP triode T3 output 24V drive voltage after being inverted twice. With the segment
inverting drive circuit U22 in the figure above, you can
Drive high-voltage large-size common anode digital tube. The resistance R16 in the figure should be selected
according to the actual drive current.
In the figure, the single-chip microcomputer U2 drives 8 common cathode digital tubes to display through CH452,
and scans 64 keys at the same time. Because some digital tubes
There is a reverse leakage phenomenon at a higher working voltage, which is easy to be mistaken by CH452 as a
button that has been pressed all the time, so it is recommended to use the secondary
Tubes D1-D8 prevent reverse leakage of the digital tube, and increase the level of the input signal of SEG0~SEG7
during keyboard scanning to ensure that the keyboard scanning is more reliable
by. When the power supply voltage is low (for example, VCC=3.3V), these diodes should be removed to avoid
affecting the display brightness.
8.7. Multi-chip cascading expansion
When there are more than 8 digital tubes or more than 64 buttons, multiple CH452s can be used to drive.
There are two ways to connect multiple CH452s to the single-chip microcomputer via 4-wire interface: one is
parallel, the single-chip microcomputer provides one for each CH452
An independent LOAD signal line, but DIN and DCLK signal lines are provided to all CH452 at the same time, that
is, each LOAD signal
The line is equivalent to the chip select line of each CH452; the second is in series, the microcontroller provides the
DCLK and LOAD signal lines to all CH452 at the same time,
The single-chip microcomputer only provides DIN to the front-end CH452, and the DIN of the later-stage CH452 is
connected to the DOUT pin of the front-end CH452.
There are two schemes for connecting multiple CH452s to the single-chip microcomputer through a 2-wire
interface: one is independent parallel connection, and the single-chip microcomputer provides a separate connection
for each CH452.
Provide an independent SCL or SDA signal line, and independent or share another signal line; the other is direct
parallel connection, two CH452
Use ADDR to select different device addresses, and two CH452s fully share SCL and SDA signal lines to connect
with the microcontroller.
When multi-chip cascade expansion, the working current is larger, so pay more attention to prevent mutual
interference. Please refer to section 8.8 Anti-interference.
8.7.1. Parallel application of 4-wire interface (below)
In the figure, 24 digital tubes are driven in parallel cascade mode with 4-wire interface, U8 (MCS51 series single-
chip microcomputer) provides all CH452
A group of common DIN and DCLK signals, and a LOAD signal line is provided to each CH452. When you need to
operate U9,
The microcontroller can output serial data through DIN and DCLK, and then output a load signal to U9 through
LD1 to make it perform operations, while U10
And U11 does not receive the LOAD signal, so it does not operate. In the parallel mode, each CH452 can enable the
keyboard function and operate
The operation process is simpler than the series method.
8.7.2. Application of 4-wire interface in series (Figure below)
In the figure, the light-emitting diode LED dot matrix is driven by a 4-wire interface serial cascade mode. The
single-chip microcomputer U3 passes DIN1, DCLK and LOAD three
One signal line controls all CH452. Refer to the 16×16 layout, 4 8×8 LED arrays L1~L4 form a 16×16 dot matrix
Module, if you want to display a Chinese character, you only need to send the 32-byte dot matrix data to CH452
through 8 48-bit load word data commands.
That's it. Because 4 CH452s are cascaded, each operation command must be 48-bit data, followed by U7, U6, U5
and
The command data of U4 is finally output by the rising edge of the LOAD signal line to notify all CH452 to load
their own command data. In series mode,
There is no limit to the number of CH452 cascaded, and it only occupies 3 I/O pins. DIN and DCLK can also be
shared with other interface circuits.
The disadvantage is that only the last stage of CH452 can enable the keyboard function, and it needs to be turned on
one by one. The operation process is more complicated than the parallel mode.
8.7.3. Direct parallel application of 2-wire interface (Figure below)
In the figure, 16 digital tubes are driven directly in parallel with a 2-wire interface, and two CH452s can respectively
enable the keyboard function. MCU U12
Provide a set of common SCL and SDA signals to two CH452s and other devices compatible with I 2 C bus timing,
and two ADDRs of CH452
The pin connections are different, so that different device addresses are selected to facilitate the single-chip
differentiation.
For external interference when the signal line is long, refer to the following figure to solve:
①. Add capacitors C21, C22, C23, C25 and C26 at the end of the signal line close to the CH452 pin, the
capacitance value can be 47pF
To 470pF, the larger the capacitance, the slower the transmission speed of the communication interface with the
microcontroller;
②. Optionally add resistors R24, R25, R26, R33 and R34, the resistance value can be 100Ω to 470Ω;
③. Reduce the transmission speed between the MCU and CH452 (because of the increase of resistance and
capacitance);
④. If it is driven by quasi-bidirectional I/O pins (such as standard MCS51 microcontroller), it is recommended to
add resistors R21, R22, R23,
R31 and R32, the resistance value can be 500Ω to 10KΩ to strengthen the pull-up of the quasi-bidirectional I/O pin
of MCS-51 MCU
Ability to maintain a better digital signal waveform during long-distance transmission; when the signal line is short,
the pull-up resistors R21, R22,
R23, R31 and R32, for totem-pole drive bidirectional I/O pins, no pull-up resistors R21, R22, R23, R31 are required
And R32.
⑤ It is recommended to connect input pins such as H3L2 and ADDR to a fixed level instead of floating.
In addition, for strong interference application environment, it is recommended to refresh CH452 regularly: ①,
reset system parameters; ②, reset
Set the display parameters; ③, reset the flicker control; ④, reload each display data. This method does not have
any side effects.
8.9. MCU interface program
The C language and ASM assembly interface programs of commonly used single-chip microcomputers are provided
on the website.