-
In the actual project development process, hardware circuits often need to be modified, and the modified parts need to modify the driver. Thinking about the coming and going of such requirements is t...[Details]
-
1. Function prototype In the function library officially provided by STM32, you can find functions like HAL_Delay(). This function uses a timer to achieve a more accurate time delay and provides it...[Details]
-
The program got stuck during LCD initialization. Through hardware debugging, it was found that it was stuck in the Delay_ms() function. Going to the definition, it was found to be a macro definition ...[Details]
-
0. Preparation First use st-link to connect the stm32 core board and PC for burning St-link Stm32 3.3V 3.3V GND GND SWDIO PART SWCLK DCLK Then connect with USB serial port board to v...[Details]
-
The last two blogs talked about a version problem of STM32CubeMX and the problem of hardware reset. When you solve these two problems, you will find that after the program is burned into the board, t...[Details]
-
1) Independent watchdog has no interrupt, window watchdog has interrupt 2) Independent watchdogs can be divided into hardware and software, while window watchdogs can only be controlled by software...[Details]
-
DMA: 1. When using DAC, when the converted analog signal is output through the IO port, why is the IO port also configured to input mode? PS: The stm32 manual defines that PA4 and PA5 are connected...[Details]
-
The key is the configuration of registers. The T1 timer (16 bits) of CC2530 needs to configure three registers: T1CTL, T1STAT, IRCON Here is just a brief introduction. For more details, please refer ...[Details]
-
T1 or T2 are two timers/counters of MCS-51 microcontroller. The first method can use two timers/counters to generate rectangular waves. In order to save interface resources, the second method is used...[Details]
-
For complex calculations, the speed of the microcontroller is too slow. The best way is to manually calculate all the results in advance, store them in ROM in sequence, and then directly check the re...[Details]
-
MCS-51 single-chip microcomputer timer/counter experiment programming program Programming requirements: 1. Connect a light-emitting diode LED to the P1.0 pin, light up for two seconds, turn off for o...[Details]
-
It is required to use MCS-51 microcontroller to sort data. 1. Sort the 8 data in ascending order; 2. The data to be sorted is stored in the internal data memory address units 30H-37H, which are 34H, ...[Details]
-
#include #include #include "lcd12864.h" #define uint unsigned int #define uchar unsigned char #define MISO PINB.6 #define SCK PORTB.7 #define MOSI PORTB.5 #define CSN PORTC.0 #define CE PORTC.1...[Details]
-
#include iom16v.h #include macros.h #include "key.h" #include "1602.h" #include "delay.h" unsigned char display ={0,0,0}; //display data void main(void) { unsigned char Key; LCD_init(); ...[Details]
-
MSP430 MCU 1602 LCD display program #include "msp430x22x4.h" #define uint unsigned int #define keyin (P2IN&0x0f) //Hardware connection P4 data port P3.7---E P3.6---RW P3.5----RS //P2 lower 4 bit...[Details]