LM016L LCD display based on Proteus simulation

tags: proteus  Single -chip machine  stm32

#include<reg51.h>
sbit e=P2^2;
sbit rw=P2^1;
sbit rs=P2^0;
void sleep(int i){
	int x;
	while(i--){
		for(x=0;x<123;x++);
	}
}
void main(){
	int x,length;
	char c[]={0x38,0x0c,0x06,0x01,0x80};
	char xs[]={"lifuhuahaoshuaia"};
	length=sizeof(xs)/sizeof(xs[0]);

	for(x=0;x<5;x++){
		e=0;rw=0;rs=0;
		P3=c[x];
		e=1;
		sleep(1);
		e=0;
	}

	for(x=0;x<length;x++){
	e = 0; rw = 0; rs = 1; // rs = 1, start displaying
		P3=xs[x];
		e=1;
		sleep(1);
		e=0;
	}
	 While (1); // Because the LCD has its own storage, the code needs to be stopped
}

running result:

Intelligent Recommendation

Proteus Simulation STM32HAL library implements drive LCD screen 1602

Proteus Simulation File The STM32HAL library implements drive LCD screen 1602. The main program is shown in the download file. Link: https://pan.baidu.com/s/1bhk04ldwkyhs7s1bvd_olq Extraction code: IM...

LCD 1602 LCD display based on FPGA

project name LCD 1602 LCD display based on FPGA Specific requirements The first line shows today’s date 2020-07-01, and the second line shows the specific time when the author finally finished i...

Proteus ADC0832 analog-to-digital conversion and LCD display voltage is always 4.89

ADC083X.DLL file cannot be found, or ADC0832 components cannot be simulated There was an error in the ADC0832 module of protues, and the ADCDLL file needs to be downloaded again. Put the ADC083X.DLL f...

Proteus-based 51 single chip computer simulation example 60, 8-digit digital tube display example

1. This example realizes the simultaneous display of multiple different characters on an 8-digit digital tube. 2. This example uses 8 integrated 7-segment common anode digital tubes (the component ide...

51 single chip microcomputer simulation examples based on proteus 59, 1-digit digital tube display example

1. The nixie tube is actually made up of 7 light-emitting diodes into a figure eight, and the other light-emitting diode is made into a dot shape, which constitutes a nixie tube. The positive or negat...

More Recommendation

51 single-chip microcomputer simulation examples based on proteus 64, character LCD1602 display string examples

1. In this example, 1602 liquid crystal is used to cycle right to display a string of strings. The display mode is set as follows 1) 16*2 display, 5*7 dot matrix, 8-bit data interface 2) Turn on the d...

Based on 51 single-chip supermarket package password cabinet lock Proteus simulation program design LCD1602 display

Preface: (End of the end) I have said password locks before, and then, I will talk about a similar supermarket package coding cabinet. The way this design is automatically randomly generates a passwor...

Temperature Proteus simulation digital tube display based on 51 single-chip electronic clock

hardware design (At the end of the simulation) Previously, I was based on the electronic clock of LCD display. This time, this time I spent the digital tube-based electronic clock. Simulation Figure 1...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top