HCMS2964 is a new generation of dot matrix display produced by AGILENT TECHNOLOGIES. This product has a built-in CMOS integrated circuit that can drive LEDs and can be directly connected to the processor in serial to achieve data transmission. Because of its convenient and fast brightness adjustment, it can be widely used in embedded systems and single-chip microcomputer-controlled instruments, instruments and flight simulation equipment. This article introduces the display principle of HCMS2964 and the driving mode of the display, brightness adjustment and the design of the basic software.
1 HCMS 2964 display
The HCMS2964 module is a dual in-line package. Each HCMS2964 has 12 pins and an internal crystal array and registers. The HCMS2964 drives four illuminated character blocks through a CMOS refresh circuit. The size of each character is 1.8 cm × 1 cm. These characters are made up of 5 columns × 8 rows, a total of 40 bit registers connected end to end. Row0 is not used and therefore does not emit light. Therefore, each character actually consists of 35 pixels.
HCMS2964 has two independent control registers, and the properties of the HCMS2964 module can be set by changing the contents of the registers. Control register 0 is used for PWM brightness pulse width adjustment, peak current intensity setting (brightness adjustment) and sleep mode control. Control register 1 is used to set the data output mode and crystal array selection mode (select the array frequency or 1/8 of the array frequency). The content of the 160-bit dot register in each display module corresponds to the driving LED and is unique, so the dot register can be directly set to 1 or 0, and the internal IC circuit can be used to control the brightness or darkness of the light pixels on the dot matrix to form the corresponding characters.
2 System Hardware Interface Settings
The input pins of HCMS2964 should be connected to the I/O port of the microcontroller after being pulled up. The main control pins are RS, CE, and CLK. When designed, they can correspond to P1.0, P1.1, and P1.2 of C8051F00x respectively. RS is used to select the dot matrix display register (L) or the command register (H). The specific timing is that CE must be pulled low before writing the display data, and the corresponding register is selected by RS. The input clock is used to write the dot matrix register or the command register, and can trigger data reading on the rising edge. During the entire process of data transmission, CE must always remain at a low level. Finally, the data display output is latched by the CLK clock being low and CE being high (dot register) or rising edge (command register).
3 Cascade
Cascading is mainly used to expand the display part of the system so that more display devices can be hung on the serial expansion interface line. During design, the chip select signal input terminal can be controlled by a single-chip microcomputer, and multiple chip select signals are usually connected together for unified control. The output pin of each display module is connected to the input pin of the next display screen, so that the cascade of multiple display modules can be realized. Generally, in a multi-module cascade display system, the first display module is used to control the four characters on the left, and the last display module is used to control the four characters on the right. The length of the data conversion register is 160 bits × N (the number of N is the number of cascades), and the position 0 of each module is (N-1) × 160 bits, and so on.
It should be noted that the control registers of multiple display modules in the cascade are independent of each other. Therefore, when setting the properties of the display modules in a unified manner, the same control word should be written into the control register of each display module.
The five control buses CE, RS, BL, RST, and CLK should eventually be connected to the I/O lines of C8051f00×. The DIN from the port line is connected to the leftmost module, and the DOUT line is connected to the DIN of the next display module. The DOUT of the last module is idle. Each module can use an internal crystal array or an external crystal array. The SEL high level of the leftmost module of this system is generated by the internal crystal array (MASTER) of the IC, and the SEL low level of other modules is received from the crystal array (SLAVE) of the leftmost module. This system can complete crystal array transmission through the OCS bus.
4 40 levels of brightness adjustment
The dot matrix HCMS2964 series IC provides two ways to change the brightness, namely 16-level and 4-level brightness adjustment, which are both achieved by changing the control register 0. Among them, PWM brightness control uses DO~D3 of control word 0 and changes the brightness of the dot matrix through real-time pulse width adjustment. Generally, PWM adjusts the pulse width by adjusting the clock cycle of crystal vibration to change the brightness. The peak pixel current control uses D4 and D5 of control word 0 and changes the brightness of the dot matrix by changing four peak pixel currents.
The above two ways of changing brightness are suitable for graded brightness adjustment, but in fact, we often encounter the situation of achieving continuous brightness adjustment by collecting the analog value of the potentiometer. At this time, since the brightness collection of the above two methods is only 16 levels or 4 levels, the current jump through the point light source in the circuit between each level is large, and the brightness step change is also more obvious. This brightness step will form an overly obvious brightness mutation visually, so the visual effect is poor. To make the brightness adjustment continuous and soft and more acceptable to the human eye, only by increasing the number of brightening levels and improving the resolution can the effect achieved by continuous brightness adjustment be simulated.
Since D4-D5 (peak pixel current) and D0-D3 (PWM brightness adjustment) occupy the lower six bits of control word 0, it is possible to consider all factors that control brightness when designing, and re-arrange them according to brightness to form 4×16=64 levels (i.e. 64 brightness levels) to improve the brightness adjustment effect. It should be noted here that since the brightness collected from 000000H to 111111H is not increasing, the analog quantity should not be collected and directly sent to the lower six bits of the control word, and the pulse width value and the pixel current peak value cannot be simply accumulated to compare the brightness. Experiments have proved that the formula MX=brightness is only valid when one of M and X is a constant and the other is a variable, and cannot be applied to the multiplication of two variables. The author has analyzed their light energy from small to large through optical instruments, and screened out mutations and similar energy values, thus forming a 40-level software dimming solution.
5 System Software Design
The software design of this system can be divided into three parts: display module, analog quantity acquisition module, and serial communication module. The dot matrix system control word and display subroutine are as follows:
|
|
|
|
6 Conclusion
The serial data transmission display system using embedded processor and dot matrix chip given in this paper has simple hardware structure, no need to increase pins, and the system is easy to expand. However, through the actual application of the system, it is found that there are two major problems with serial devices: one is that the speed of serial transmission is slower than parallel transmission, and the other is that serial transmission requires a certain communication protocol, including the communication of equipment, the format of data, and the start and stop of data transmission.
Previous article:Telephone remote communication system between single chip microcomputer and PC
Next article:Automatic alarm device composed of MODEM chip and 89C51
Recommended ReadingLatest update time:2024-11-16 17:58
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Why does the 12V push-pull circuit output 5V?
- Playing with Zynq Serial 31——[ex53] EMIO control based on Zynq PS
- Great! Tektronix oscilloscopes have been completely upgraded, come and unlock them! If you don't read it, you will miss out on 100 million!
- TMS320C6000 Basic Learning (3)——CCS v5 Software Development Environment Construction
- Microcontrollers: The Basics
- Improvement of RC series-parallel frequency-selective network oscillator in El experimental box
- Texas Instruments helps you solve the three most common problems in high-speed amplifier design!
- LNA [Low Noise Amplifier Practical Application Case]——[qorvo-TQL9092]
- 【Home Smart Dashboard】 Development and Construction of ESP-IDF under Linux
- Solutions to security issues in RF systems and Wi-Fi networks