1. SAA1064 pin function
① VDD, VEE: power supply, ground terminal. Power supply 4.5~15V;
② P1~P16: Segment drive output terminal. Divided into two 8-bit ports:
P1~P8;P9~P16. P8 and P16 are high. The port latch has an inverting function. When it is set to 1, the port outputs 0.
③ MX1, MX2: Bit code drive end. In static display drive, one SAA1064 can drive a two-digit LED digital tube; in dynamic display drive, according to the connection method in Figure 9-10, one SAA1064 can drive a four-digit LED digital tube;
④ SDA, SCL: I2C bus data terminal, clock terminal;
⑤ CEXT: Clock oscillator external capacitor, typical value 2700pF
⑥ ADR: address pin. SAA1064 pin addresses A1 and A0 are addressed using ADR analog voltage comparison. When the ADR pin level is 0, 3VDD/8, 5VDD/8, VDD, the corresponding pin addresses A2, A1, A0 are 000, 001, 010, 011 respectively;
2. Hardware circuit design
3. On-chip programmable functions
CO: static and dynamic control, C0=1, dynamic display, when dynamic display, data1 and data2 are output from P8~P1 in turn, and data3 and data4 are output from P16~P9 in turn;
C1: Display position 1, 3 light or dark selection, C1=1, select light;
C2: Display position 2, 4 light or dark selection, C2=1, select light;
C3: test bit, C3=1, all segments are on;
C4, C5, C6: drive current control bits. When C4, C5, C6 are 1 respectively, the drive current is 3mA, 6mA, 12mA respectively. When C4, C5, C6 are all 1, the drive current is the maximum, which can reach 21mA.
⑶ Write data operation format
The red part is sent by 80C51 and received by SAA1064; the black part is sent by SAA1064 and received by 80C51.
SLAW is the addressing byte for writing SAA1064.
Connect the circuit as shown in the figure: SAA1064 (1) SLAW = 01110000B; SAA1064 (2) SLAW = 01110110B. Among them, 0111 (D7~4) is the SAA1064 device address, D3~1 is the A2A1A0 addressing byte, the last bit D0 is R/W; SADR is the on-chip register address; COM is the control command.
4. Programming
Example: Given that the 8-bit display symbol (common negative code) has been stored in RAM 51H to 58H in sequence, try to program it according to Figure 9-10 and input it into SAA1064 (1), (2) for dynamic display, with a drive current of 12mA. Assume that the VIIC software package has been loaded into ROM, and VSDA.VSCL.SLA.NUMB.MTD.MRD have all been defined according to the protocol in 8.3.2 Software Package Summary.
VSAA: MOV MTD, #00H; Set the SAA1064 control command register COM chip sub-address
MOV 31H, #01000111B; set control command word, dynamic display, drive current 12mA
MOV NUMB,#6; Set the number of data to be sent: SADR+COM+data1~4=6
SAA1: MOV RO,#51H ; Move the display data from 51H to 54H to 32H to 35H
LCALL MOVB ;
MOV SLA,#01110000B; Set SAA1064(1) to write the addressing byte SLAW
LCALL WRNB ; send to SAA1064 (1)
SAA2: MOV R0,#55H ; Move the display character data from 55H to 58H to 32H to 35H
LCALL MOVB ;
MOV SLA,#01110110B; Set SAA1064 (2) address byte SLAW
LCALL WRNB ; send to SAA1064 (2)
RET ;
MOVB: MOV R1,#32H ; Display character data is moved to 32H~35H subroutine
MOVB1:MOV A,@R0 ; read
MOV @R1,A ; store
INC RO; points to the next read unit
INC R1 ; point to the next storage unit
CJNE R1,#36H,MOVB1; Check if the 4 data have been moved. If not, continue.
RET ;
Previous article:Design of data storage system based on SST25VF020
Next article:Comprehensive analysis of mobile storage
Recommended ReadingLatest update time:2024-11-16 16:36
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- 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
- MSP430 analog-to-digital conversion module--ADC12
- TPA3245 series amplifier problem
- EEWORLD University Hall----Live Replay: Application of TI Sitara? Products in Smart Grid
- [LDO common terms 1] line regulation and load regulation
- So cool! Flexible screen concept smart watch
- A chart shows how 5G is better than 4G, with a challenge
- How does FPGA adjust the volume of the buzzer?
- How long will the battle between community owners and communication base stations last?
- Please tell me the winding method and other parameters of the EE8 transformer that can increase 0.7V to 7V
- Conversion between CC2640R2F projects