-
1. Problem When developing STM32 with IAR, I found that I could not print floating point numbers by redirecting printf to the serial port. The code is as follows: The output is as follows: It can...[Details]
-
What is SYSTICK: This is a 24-bit system tick timer, SysTick, with automatic reload and overflow interrupt functions. All microcontrollers based on the Cortex_M3 processor can obtain a certain time ...[Details]
-
As cryptocurrency continues to gain popularity, a technology hidden behind it has attracted more attention from the world, that is the now hotly debated
blockchain
. Let's follow the embedd...[Details]
-
In 2018, the National Development and Reform Commission issued a new photovoltaic subsidy policy. The benchmark on-grid electricity price was significantly reduced, the return on investment decreased,...[Details]
-
Mobile communication resale business means that enterprises can contract part of the communication network usage rights from basic telecommunications operators, repackage them into their own brands...[Details]
-
Household photovoltaic power stations mainly utilize idle resources on existing household buildings, such as roofs, wall facades, balconies, courtyards, etc., to install and use distributed photovo...[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]
-
The clock system of STM32 can be directly summarized in a diagram (from the STM32F10X reference manual). The following is an analysis of this diagram 1. STM32 input clock source 1.1 Function of cl...[Details]
-
/*---------------------------------------------------------------------- TMOD (89H) T1 T0 GATE C/T` M1 M0 GATE C/T` M1 M0 -----------------------...[Details]
-
Manually assemble the following program machine code and analyze the execution function of the program segment. CLR A MOV R2, A MOV R7, #4 LOOP: CLR C MOV A, R0 RLC...[Details]
-
It is required to use timer/counter 1 for timing, with a timing of 1 second; timer/counter 0 for counter, and the external pulse to be counted is connected from P3.4 (T0). The microcontroller will co...[Details]
-
The clock frequency of the 80C51 microcontroller is 12MHz, and the timer T1 and P1.0 are used to output rectangular pulses. The waveform only shows two segments: one segment is 100us and the other se...[Details]
-
Assume that the MCS-51 microcontroller uses a 12MHz crystal oscillator, and wants to use a timer to generate a pulse with a duty cycle of about 30% and a period of 60ms at port P1.0. ;==============...[Details]
-
#include #include #define uchar unsigned char #define uint unsigned int uchar int_flag; uint qian,bai,shi,ge; uint i; float distance; // Alphanumeric LCD Module functions #asm .equ __lcd_port...[Details]
-
The STC12C5412AD microcontroller is an enhanced 8051 standard 51 series microcontroller. It is 12 times faster than the ordinary 8051 and can be programmed on a home computer without an emulator. ...[Details]