1. Writing data and instructions needs to be done on the rising edge of LCDEN level. To achieve this, you should: ensure that LCDEN=0 when the program executes other instructions; LCDEN level must be pulled low immediately after completing the execution of read and write data and instructions; Ensure that LCDEN=0 before executing the write data instruction sub-function. For example: … LCDEN=0; … void write_dat(char a) { char e=1; while(e)e=read(); RS=1; RW=0; P0=a; LCDEN=1; for(e=127;e>0;e--); LCDEN=0; } It is not possible to only pull the LCDEN level down before pulling the LCDEN level up in the write data instruction sub-function without delay.
For example this is wrong: void write_cmd(char a) { char e=1; while(e)e=read(); LCDEN=0; RS=0; RW=0; P0=a; LCDEN=1; for(e=127;e>0;e--); } 2. If the screen scrolling mode is used, the video memory address set before writing data is the position where the cursor stops. For example Enter "QQ 814921012" Address setting: write_cmd(0x82); The screen will finally display: 12_ 3. When the program starts to initialize the screen, the clear screen command should be executed. The clear screen command should also be added in due course during the program. 4. The scrolling is to connect the first and last addresses to form a ring. After executing the scrolling command, the screen will scroll immediately, and it will scroll once each time it is executed. The two lines scroll together and cannot be separated.
Previous article:C51 MCU Programming Specifications
Next article:TLC549 analog-to-digital conversion C51 program
Recommended ReadingLatest update time:2024-11-16 16:19
- Popular Resources
- Popular amplifiers
- Single-chip microcomputer C language programming and simulation
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Principles and Applications of Single Chip Microcomputers and C51 Programming (3rd Edition) (Xie Weicheng, Yang Jiaguo)
- Multi-port and shared memory architecture for high-performance ADAS SoCs
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
- 28335 cannot connect to JTAG, urgent help!!!!!!
- Summary of pspice circuit simulation
- Playing with Zynq Serial 40——[ex59] Binocular vision image acquisition and display example based on Zynq
- Several reasons for electromagnetic flowmeter errors
- Summary and analysis of interference problems in circuit design
- Does the dummy pad have any impact on the electrical characteristics of the PCB?
- [HC32F460 Development Board Review] NO.2 Familiarity with the development process and different peripheral functions
- Classification of RFID readers and their advantages
- [Repost] Correctly select low noise amplifier
- NTC thermistor driver for MicroPython