-
1. The first project We are going to create the first project, which is mainly for project analysis, so that we can understand how CubeMX works and how to trace the code logic. Okay, no more nonsense...[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]
-
Recently, the "Smart Photovoltaic Industry Development Action Plan (2018-2020)" jointly issued by six departments has put this concept on the forefront. Photovoltaic smart solutions will become the ne...[Details]
-
The photovoltaic inverter is the core equipment of the photovoltaic system. Its main function is to convert the direct current generated by the photovoltaic modules into alternating current that meets...[Details]
-
On May 8,
Google
I/O 2018 Developer Conference was held as scheduled in Mountain View, California. In the second year of the full promotion of the "AI first" strategy, artificial intelligen...[Details]
-
//Observe the difference between feeding the dog and not feeding the dog, and use the LED indicator of the PB port for status indication. //Switch the LED indicator enable switch of the PB po...[Details]
-
I used the bit definition in my 51 program: bit flag. After defining it this way, I ran the program and downloaded it to the circuit board. I found that the flag was not the value I set, which led to...[Details]
-
The Vatican Secret Archives is one of the world's greatest historical collections, but many of its documents have never been transcribed. Recently, a project called Codice Ratio used a
combination...[Details]
-
The storage media corresponding to the three boot modes of STM32 are built-in to the chip, they are: 1. User Flash = Flash built into the chip 2.SRAM = RAM area built into the chip, which is the m...[Details]
-
Interrupts and timers implement a 24-hour clock. The program is as follows: #include reg52.h #define PORTLEN P0 sbit bit_select = P2^0; sbit seg_select = P2^1; unsigned char src = {0x3f,0x06,0...[Details]
-
When the program starts running, light A turns on for 5 seconds, then turns off, light B turns on for 5 seconds, light B turns off, light C turns on for 5 seconds, light C turns off, the program ends...[Details]
-
The frequency calculation formula of the PWM wave generated by the output comparison mode of the timer is: 72M/((2*(arr+1))*(psc+1) ) For example, if you set: PWM_Init(1000-1,72-1); (PWM_Init(arr,psc...[Details]
-
/*----------------------------------------------- Name: IIC protocol PCF8591 AD/DA conversion Content: Use DA input, digital tube display output digital quantity, LED display analog voltage size ...[Details]
-
/*----------------------------------------------- Name: Two-color dot matrix Forum: www.doflye.net Written by: shifang Modification: None Content: Using hc595 to drive two-color d...[Details]
-
;The hardware connection circuit of the 51 single-chip microcomputer is as follows: ;P1.3 and P1.4 are each connected to a button; ;P0.0 and P0.3 are each connected to a light-emitting diode; ;P2.0~P...[Details]