The following is some of my understanding of the microcontroller reset circuit: 1. Why does the microcontroller need to be reset? To restore the microcontroller to its initial state, and start execu...
I recently used a wince machine for development. During the development process, I found that each time I saved about 800 bytes of data to a file, the speed slowed down after saving about 100, and inc...
1. Delay Program AnalysisIn the last class, we already know that the symbols R7 and R6 in the program represent RAM units, which are used to store some data. Now let's take a look at the meaning of ot...
#include#define uint unsigned int #define uchar unsigned char sbit IN1=P3^1;//Connect to IN1 to control forward rotation sbit IN2=P3^2;//Connect to IN2 to control reverse rotation sbit IN3=P3^3; sbit ...
When learning how to write temperature, I sawbit tmpreadbit(void)
{youint i; bit that;DS=0; i++; //Small delayDS=1; i++;i++;dat=DS; i=8;while(i0)i--;return (that);
}How to use return (dat) here; why d...