#include #include #include "LCD.H" #include "18B20.H" #include "delay.h" sbit k1=P3^5; sbit k2=P3^6; sbit csb=P2^5; sbit csbint=P3^2; sbit bg=P2^6; sbit fmq=P3^3; unsigned char aa[]={' ',' ','D','i','s','t','a','n','c','e',':'}; //Distance unsigned char bb[11]={' ',' ',' ',' ','.',' ',' ',' ',' ',' ',}; unsigned char cc[]={'A','.','A','A','m'}; unsigned char zf,a1,a2,a3,xs,e,n,m,z; //zf is the positive and negative temperature flag; a1,a2,a3, the key setting program sets the meter, decimeter, centimeter temporary storage variables //xs, e is used to set the variable of flashing display in the key program; flag, unused, n, is the backlight control flag variable; m, z; unsigned int dz,k,s,j,bgz,k; int temp; float temperature,csbc,wdz; bit wh; main() { TH0=0; TL0=0; TMOD=0X11; //T1, T0 are 16-bit timers EA=0;
Previous article:Design of constant temperature control system based on single chip microcomputer PID
Next article:How to use a single chip microcomputer to receive a string sent from a computer
- 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
- EEWORLD University ---- Find products and add to shopping cart quickly
- Altium Designer 18.1.5 How to change Mechanical1 back to Keepout layer
- BK3432 SDK Development and Use GuideBK3432 SDK Development and Use Guide
- Does anyone know where I can buy a mechanical switch like this?
- Should copper be applied to the ground under the inductor?
- [NXP Rapid IoT Review] UART0 Debug Serial Port-Debug Print Demo
- Layout line width spacing routing teardrop vias [6 details to quickly improve the quality of PCB board layout]
- Qorvo RF Fusion Successfully Adopted in Multiple New Smartphone Designs
- TMS320F28004x microcontroller configurable logic block input and output
- 【Perf-V Review】Power on & Firmware Burning