-
(1) Introduction to DS18B20 DS18B20 is a digital single bus device launched by DALLAS Semiconductor Company in the United States. It is a new generation of improved intelligent temperature sensor ada...[Details]
-
0 Introduction
DNC is the abbreviation of Direct Numerical Control or Distributed Numerical Control, which means direct digital control or distributed digital control. DNA integrates the equipment ...[Details]
-
Code: #include reg51.h typedef unsigned char u8; typedef unsigned int u16; sbit LED=P2^0; sbit KEY=P3^3; void delay(u16 i) { while(i--); } void EXIT1_Init(void) //External interrupt ini...[Details]
-
1 Introduction
In the design of RISC CPU, the processing of transfer instructions has a critical impact on the performance of the processor. Transfer instructions determine the execution orde...[Details]
-
This is a simple program written to test timer 0: the goal is to have the first and second LED lights light up in a cycle, and the third light lights up once every one second. The lighting time of th...[Details]
-
1.7.1 Change UART2 to a normal serial port driver The S3C2440 chip has 3 serial ports: UART0, 1, 2. The Linux-2.6.32.2 we downloaded already has a complete driver for UART0, 1, but it uses infrared...[Details]
-
1. Don't say "Give me a code!" as the first sentence after seeing someone else's reply. You should think about why. When you figure it out yourself and refer to other people's tips, you will know the ...[Details]
-
12864+DS1302 +DS18B20 large character clock for everyone to learn. Electronic smart clock program Microcontroller: STC89C52RC Crystal oscillator: 12MHz Clock chip: DS1302 LCD screen: LCM-12864-S...[Details]
-
In C++, there is also such a switch, that is, the switch statement. It can simply describe the situation of multiple forks. The specific syntax format is:
switch (expression)
{
case constant ex...[Details]
-
Computer communication is divided into: serial communication and parallel communication Serial communication is divided into: asynchronous communication and synchronous communication Asynchronous...[Details]
-
The DS18B20 digital temperature sensor is easy to wire and can be used in a variety of occasions after packaging, such as pipeline type, threaded type, magnet adsorption type, stainless steel package...[Details]
-
counter Let's start with an example in daily life: a basin is under a faucet, but the faucet is not closed tightly, and water drips into the basin. The water drops continue to fall, and the capacity ...[Details]
-
1. When plugging and unplugging the power frequently, the PIC microcontroller is prone to crash. Use a 10K resistor and connect the 5V output of the LM7805 to the ground. 2. The capacitance of the ...[Details]
-
#include msp430x22x4.h #define SDA BIT1 #define SCL BIT2 #define SEG_A 0xA0 //0x0200---0x027F #define SEG_B 0xB0 //0x0280---0x02FF #define SEG_C 0xC0...[Details]
-
I found that the compiler that comes with Keil sometimes has optimization problems, and runs completely differently than when it is not optimized. I used GCC before, and now I naturally want to use GC...[Details]