main() { int a; P1=0xff; TMOD=0x11; //Timer 0 and timer 1 work in mode 0 at the same time; ET0=1; //Turn on internal interrupt 0 ET1=1; //Turn on internal interrupt 1 led7=0; while(d) { shao_maio(); i...
On a board powered by a 3.6v battery, there is a 5-pin chip. There are only three letters "ATE" on the chip. It should be an LDO. The left 3 pins: the middle pin is grounded, and the other 2 are unuse...
Raw OS uses a special mechanism that can reduce the maximum interruption time of the entire system to as close to 0us as possible. The main implementation principle is to change the original system in...
[color=#333333]In DSP applications, it is often necessary to generate sine waves. If you use the mathematical function sin in C directly, you can certainly generate sine waves, but because the efficie...
Designing for automotive LCD displays larger than 5" can be complex. The display source driver requires a supply rail called analog voltage device drain (AVDD) in the 10V to 15V range and two supply ...[Details]
In our common sense, the word technology often has two definitions. The first is the technology sealed in the laboratory. They are like flowers on the mountain top. Only a few people on the mountai...[Details]
In order to strengthen the management of new energy vehicle charging facilities in our city, prevent and reduce accidents, protect the lives and property of the people, and improve the public safet...[Details]
In the actual project development process, it is common to encounter modifications to the hardware circuit, and then the modified part requires the modification of the driver. Thinking about the comi...[Details]
1. Initial understanding of FSMC: FSMC consists of 4 modules: (1) AHB interface (including FSMC configuration register) (2) NOR flash memory and PSRAM controller (when driving LCD, LCD is like a PSRA...[Details]
In most countries, the military is a fairly large group, and the health of soldiers is particularly important to the combat effectiveness of the army. The US Department of Defense's Advanced Resear...[Details]
From the functional classification, it can be divided into: 1. Active control ADAS: ACC/AEB/LKS, etc. 2. Warning ADAS: FCW/LDW/PCW, etc. 3. Other auxiliary ADAS: BSD/ADB/panora...[Details]
Independent watchdog (IWDG) and low power mode are often used in STM32 development. The watchdog is to detect and solve faults caused by software errors, and the low power mode is to enter sleep mode...[Details]
A crystal oscillator can be electrically equivalent to a two-terminal network consisting of a capacitor and a resistor in parallel and a capacitor in series. In electrical engineering, this network h...[Details]
The first one is a DMA mode of multiple channel acquisition void ADC_DMA_Config(void) { ADC_InitTypeDef ADC_InitStructure; RCC_HSICmd(ENABLE); while (RCC_GetFlagStatus(RCC_FLAG_HSIRDY) == RESET); ...[Details]
Timer Interrupt The timer function of STM32 is very powerful. There are advanced timers such as TIME1 and TIME8, general timers such as TIME2~TIME5, and basic timers such as TIME6 and TIME7. In th...[Details]
MCU Programming: Find the average value of 8 unsigned numbers. There are 8 unsigned numbers stored in 8 units of the internal RAM starting at 20H. It is required to save their average value in R2. ;-...[Details]
In the 51 single-chip microcomputer's on-chip data memory units 20H and 21H, the data 9 and 2 are stored respectively. Write a program to calculate the difference and product between the two. The d...[Details]