study method:
The more advanced and complex the device looks, the more it will have its own driver program, which is often provided by the manufacturer! So in the later stage of improvement, you need to learn how to use these driver functions! Just like when you learn a higher-level ARM system in the future, it has its own library function, and you only need to change the parameters when using it (of course, on the surface)! The price will be proficient in the later stage.
bit
unsigned int
unsigned char idata temp_buff[9]; //Store the read bytes, read scratchpad is 9 bytes, read rom ID is 8 bytes
unsigned char idata id_buff[8];
unsigned char idata *p,TIM;
unsigned char idata crc_data;
unsigned char code CrcTable [256]={
0,
157 ,
35,
190,
70,
219,
101,
248,
140,
17,
175,
50,
202,
87,
233,
116,
};
//
void TempDelay (unsigned char idata us)
{
}
void Init18b20 (void)
{
}
void WriteByte (unsigned char idata wr)
{
}
unsigned char ReadByte (void)
{
}
void read_bytes (unsigned char idata j)
{
}
unsigned char CRC (unsigned char j)
{
}
void GemTemp (void)
{
//
}
void Config18b20 (void)
{
}
void ReadID (void) // read device ID
{
}
void TemperatuerResult(void)
{
}
void GetTemp()
{
}
void T1zd(void) interrupt 3
{
}
#include
#include "tem.H"
extern GetTemp();
extern unsigned int
void delay(unsigned int i);
//else IO
sbit
sbit
sbit
//This table is the font of LED, common cathode digital tube 0-9
unsigned char code Disp_Tab[] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x40};
unsigned long
void system_Ini()
{
}
main()
{ unsigned char i;
}
void delay(unsigned int i)
{
}
Previous article:Timing application methods and techniques
Next article:12864 Drivers for actual applications
Recommended ReadingLatest update time:2024-11-17 10:03
- Popular Resources
- Popular amplifiers
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- Modern Product Design Guide
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
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
- New breakthrough! Ultra-fast memory accelerates Intel Xeon 6-core processors
- New breakthrough! Ultra-fast memory accelerates Intel Xeon 6-core processors
- Consolidating vRAN sites onto a single server helps operators reduce total cost of ownership
- Consolidating vRAN sites onto a single server helps operators reduce total cost of ownership
- 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!
- This is the seminar material.
- PWM output of MSP430 library timer TA
- [RVB2601-demo analysis] CH2601_UART
- Selection of MLCC in Bypass-Decoupling Applications
- Easter egg at the end of the event: Tektronix answers 9 questions from netizens in the USB theme event
- Barcode classification
- Feiling embedded FET1052-C solution realizes 7.1 channel FLAC player
- Discuss the voltage problem at a certain point in an op amp circuit
- MSP430F5438A clock settings
- Ideal Auto says it will open source its self-developed AEB system code