Comparison of two LED display applications

Publisher:玉树琼花Latest update time:2011-08-22 Source: 维库电子Keywords:LED Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
introduction

This paper studies the use of MAX7219 and BC7281 control chips to achieve different display and control of LEDs.

1.MAX7219 display mode application

1.1 MAX7219 Introduction

MAX7219 is an 8-bit 7-segment LED serial input/output common cathode display driver chip produced by MAXIM. Currently, there are many introductions to its applications [1,2]. MAX7219 provides many registers, allowing users to control many aspects such as decoding display, display brightness, scanning limit, etc.

1.2 System Hardware Connection

MAX7219 is connected to the microcontroller through three leads: DIN, CLK and LOAD. DIN is the serial data input terminal, CLK is the clock frequency, and LOAD is used to latch the signal.

The microcontroller sends the binary number bit by bit to the DIN terminal in the form of a 16-bit data packet, and shifts one bit of data into the shift register of the MAX7219 at each rising edge of CLK. During the 16-bit data transmission process, LOAD must maintain a low level. When the 16-bit data is shifted in, LOAD must become high at or after the 16th CLK rising edge, but before the next CLK rising edge, to load the data into the corresponding internal register, otherwise the data will be lost. When multiple MAX7219s are cascaded, the DOUT pin of the previous chip must be connected to the DIN of the next chip, and the CLK and LOAD pins are shared.

The 16-bit data format is as follows:

The display circuit connections are as follows (only the main pins are drawn):

1.3 Partial program code

The displayed code is as follows:

2. BC7281 display mode application

2.1 BC7281 Introduction

BC7281 is a 16-bit LED digital tube display and keyboard interface chip. Each bit can be displayed independently with different decoding or without decoding. The flashing properties and display brightness can be controlled independently, and the flashing frequency can be changed at any time.

BC7281 has 16 display registers and 15 control registers, with the address range from 00H to 1FH. The display register has an address of 00H to 0FH, and the most commonly used control register is the working mode register, with an address of 12H. The meaning of each data bit is as follows:

MOD: Shift register mode control. When MOD=0, it is applicable to general shift registers, such as 74HC164, etc.; when MOD=1, it is applicable to shift registers with secondary latches, such as 74HC595, etc.

INV: Segment drive data output polarity control. When INV=0, the data of each display register is directly output through the shift register as segment drive data; when INV=1, the content of the display register is inverted before being output from the shift register.

KMS: Keyboard working mode selection.

BMS: Blink control mode selection. When BMS=0, a blink switch control register (10H) is used to control the blinking properties of each display bit, and the 8th to 15th display bits cannot be controlled individually; when BMS=1, it works in extended mode, and the blinking properties of bits 0-7 are controlled by 10H, and the blinking properties of bits 8-15 are controlled by the extended control register 19H.

ES: Energy saving mode. When this bit is 1, the effective drive current is reduced to half of the normal state (the display brightness is reduced accordingly).

KO: Display off mode. When this bit is 1, the display scan is off, but the keyboard remains operational. (The display register contents are not deleted and can be updated).

RP: Register protection mode. When RP=1, the internal registers of BC7281 cannot be directly rewritten.

SCN: Scan enable control. When SCN=0, scanning is disabled, including display scanning and keyboard scanning; when SCN=1, scanning is enabled.

2.2 System Hardware Connection

BC7281 uses a high-speed two-wire interface to communicate with the MCU when displaying, which only occupies a small amount of I/O port resources and host time. The two lines are the data line DAT and the synchronous clock line CLK. DAT: The data terminal for serial communication with the MCU, which is a bidirectional data transmission port. When used as an output, it is an open-drain output and requires an external pull-up resistor; CLK: The clock terminal for communication with the MCU, the falling edge is valid.

When the interface is idle, the DAT pin of BC7281 is in high-impedance input state, and the pull-up resistor makes the DAT line high. When starting to transmit data, the MCU must first establish a handshake signal with the BC7281. The MCU first sends several CLK clock pulses to the BC7281 and detects the DAT line at the same time. After receiving the handshake pulse, the BC7281 will output a low level on the DAT line, indicating that it is ready to receive MCU data. After the MCU detects the DAT low level, it continues to send a CLK pulse within the specified time, prompting the BC7281 to restore the DAT pin to the high-impedance input state, so that the DAT line returns to a high level. After detecting the high level, the MCU can start sending data. At each falling edge of CLK, the data is moved into the memory.

The serial interface data width is 8 bits, and a group of two bytes constitutes a complete instruction. The instruction format is as follows:

The display circuit connections are as follows (only the main pins are drawn):

2.3 Partial Program Code

The displayed code is as follows:

3. Comparison of two display modes

The system first adopted the MAX7219 display method.

MAX7219 is much simpler than BC7281 in hardware connection, but it occasionally has unstable phenomena in use, especially when multiple MAX7219s (>=3) are cascaded, and the system freezes. Later, the display mode of BC7281 was changed, and the overall stability of the system was greatly improved. In addition, the system initialization of BC7281 chip is simpler than MAX7219, and most of its registers can be set to default values, occupying less I/O resources, and the cost is relatively advantageous.

Keywords:LED Reference address:Comparison of two LED display applications

Previous article:LED unit board fault analysis and repair
Next article:Brief description of AC power LED lighting protection

Recommended ReadingLatest update time:2024-11-16 17:44

Application of SL322 dual-channel five-digit LED level display drive circuit
Compared with SL320, SL322 level display drive circuit has the characteristics of large input impedance, high rectification efficiency and strong load capacity. SL322 consists of two identical parts, each of which has independent display functions and does not affect each other.
[Power Management]
Application of SL322 dual-channel five-digit LED level display drive circuit
LPC ARM uses SPI bus to control 8 LED lights
The following is an example of LPC ARM7 controlling 8-way pipeline through SPI bus, so that everyone can have a clear understanding of SPI bus transmission and sending data. The circuit diagram is as follows: The development board controls 74HC595 to drive 8 LED lights through the SPI bus. The program list is as fo
[Microcontroller]
Innovative ideas for realizing visible light communication using LED lighting
As society moves toward high-power LEDs based on solid-state lighting , a bold and innovative idea has emerged in the minds of some visionary engineers. Their suggestion is: why not let LEDs switch on/off fast enough that the human eye cannot distinguish, and use them to transmit data?
[Power Management]
Innovative ideas for realizing visible light communication using LED lighting
Two methods of LED sorting and their development trends
The human eye has a very high resolution for the color and brightness of light, and is particularly sensitive to differences and changes in color. The human eye has different sensitivities to light of different color wavelengths. For example, for light with a wavelength of 585nm, the human eye can sense w
[Power Management]
Analysis and Countermeasures of LED Junction Temperature Causes
1. What is the junction temperature of LED ? The basic structure of LED is a P-N junction of a semiconductor . Experiments show that when current flows through an LED element , the temperature of the P-N junction will rise. Strictly speaking, the temperature of the P-N junction area
[Power Management]
Improving the efficiency of medium voltage boost converters in LED TV backlight systems
Low voltage range boost converters are often used in mobile devices to boost the battery voltage (1.2V to 4.2V) to a higher voltage level (e.g., 1.5 to 20V) to power the application circuits. In this voltage range, conduction losses are the main consideration. There are many devices on the market that are specific
[Power Management]
Improving the efficiency of medium voltage boost converters in LED TV backlight systems
Class D amplifier and LED backlight for energy saving in black TV (Part 1)
Class D audio power amplifier * Class D amplifier is a digital amplifier based on pulse width modulation (PWM). * Its final power amplifier operates in a pulse switching state (large current and low voltage when on; high voltage and small current when off), so the efficiency is very high. * The effici
[Power Management]
Class D amplifier and LED backlight for energy saving in black TV (Part 1)
2021 Audi e-tron debuts digital matrix LED headlights that project images
According to foreign media reports, Audi has been leading the development of lighting technology. Now the company has officially launched an optional device on the 2021 e-tron and e-tron Sportback models-digital matrix LED (DML) headlights. This is also the first time that DML headlights have been used in mass-produce
[Automotive Electronics]
2021 Audi e-tron debuts digital matrix LED headlights that project images
Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号