#include
#define uchar unsigned char
#define uint unsigned int
uchar code shuju[]={0xc0,0xf9,0xa4,0xb0, 0x99,0x92,0x82,0xf8, 0x80,0x90};voidys(uint a)
{
uint b,c;
for(b=0;b
What are you analyzing? You...
When the 51 MCU sends a string, all the characters displayed on the serial port debugger are "0\". During debugging, I display each character on LCD1602 first, and then send it to SBUF, but the comput...
MUC regularly collects temperature (epidermis), motion sensor (accelerometer) signals, and uses micro piezoelectric ceramics and rubber pads to sample the pulse vibration on the inside of the wrist. D...
[size=4]1. MCU selection [/size] [size=4] When selecting an MCU, you need to consider the functions that the MCU can perform, the price of the MCU, power consumption, power supply voltage, I/O port le...
Hello everyone: This circuit seems to be a phase detector, which can separate the real part (R) and imaginary part (Xc) of impedance Z into a DC voltage output. The following is my understanding: U4C ...
Photovoltaic inverters are the core equipment of photovoltaic systems. Their main function is to convert the direct current generated by photovoltaic modules into alternating current that meets the...[Details]
1. Principle 1. Infrared emission protocol The infrared transmission protocol has been written in the previous article , so I will not repeat it here. 2. Timer counting and input capture A timer...[Details]
The status of interrupts in developing embedded systems is absolutely unquestionable. In the era of C51 microcontrollers, there were only 5 interrupts, including 2 external interrupts, 2 timer/counte...[Details]
Function List and Notes (lower-level driver part) 1. IO port initialization: control IO and communication IO. Control includes power control, reset and low power mode. Communication is the serial po...[Details]
In 1949, after three years of civil war, the Nationalist government was defeated and retreated to Taiwan. The political and academic circles launched a large-scale reflection on why they failed in ...[Details]
STM32 has two watchdogs: independent watchdog and window watchdog. This article mainly introduces the use of independent watchdog. Independent watchdog (IDWG): driven by an independent 40KHZ low-sp...[Details]
This is a "cooperation" that is related to the future development of China's semiconductor industry. Let's follow the embedded editor to learn more about the relevant content.
Last week, a...[Details]
The code for using timer 0 to implement a running light in a 51 MCU is as follows. The LED light is connected to port P1. The code is annotated below, so I won't explain it in detail. My English is n...[Details]
The single-chip microcomputer running light program requires all 32 serial ports to be used, and each serial port has eight LEDs. Question supplement: The 8051 single-chip microcomputer is used, an...[Details]
A simple experimental programming question for the microcontroller: write a 3-byte binary addition subroutine. The program entry is: addend 1: 22H, 21H, 20H three bytes, 22H is the highest bit; adden...[Details]
Assume that the crystal frequency of the microcontroller is 6MHz. It is required to use timer 1 in mode 0 to generate a continuous square wave pulse with a period of 500us, and output it from P1.0. T...[Details]
Design a program for the 51 single-chip microcomputer. It is known that the crystal oscillator frequency of the 89C51 single-chip microcomputer is 12MHz, and it is required to use T1 timing to output...[Details]
Requirements: Set timer T1 as an external event counter, count 500 pulses every time, then switch T1 to timing mode and output a positive pulse with a width of 10ms at P1.2. Over and over again. A...[Details]
1. Pin: 0 in 1 out Set Status Output status IO register setting DDR×A certain bit is set to 1, and the corresponding bit IO is set to output; PORT×A certain position is 1/0, and t...[Details]