-
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]
-
1. What is PWM What is PWM? Professionally speaking, it is pulse width modulation. In layman's terms, it is the continuous output of high and low levels. For example, the microcontroller outputs...[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]
-
Program ideas and defects reference: 51 single chip microcomputer (AT89C52) matrix keyboard detection program #include iom16v.h typedef unsigned char uchar; typedef unsigned int uint; #define ...[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]
-
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]
-
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]
-
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 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]
-
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]
-
#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]
-
#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]
-
After three years of continuous decline in its mobile phone business, ZTE has finally revealed its true feelings to the outside world: the Chinese market is its weak point, and it is planning to f...[Details]
-
#include "MSP430x44x.h" void init_UART(void); void uart_start(void); void uart_send(void); void uart_receive(void); unsigned char RXDATA_BUF ,TXDATA_BUF ={0xbd,0x77,0x3d,0xc5,0xc6,0xf5,0x68,0x0d...[Details]
-
/*34864 Chinese character library*/ // Connection of MCU //******************************************************** //p3= data port //p4--control port// p4.0 = rs //p4.1= r/w //p4.2= e //...[Details]