-
The update interrupt initialization configuration of the stm32 advanced timer TIM1 is not much different from that of the ordinary timer. What needs to be paid attention to is the configuration of TI...[Details]
-
The goal of this article is to build a TCP client based on the previous project that can ping the PC, and can actively send data to the PC, and can also send and receive data with the PC, and display...[Details]
-
The article is written for LPC2148, but it is also applicable to Samsung's 44B0 chip. You only need to select S3C44B0 as the corresponding CPU when selecting it. JLINK debugging experience un...[Details]
-
The implementation of CAN driver under embedded operating system Android requires not only adding CAN driver device in Linux kernel, but also implementing the call of Android HAL layer. Taking S5...[Details]
-
pre name="code" class="cpp" uint32_t ADC_Detect(uint32_t AD_Channel) { hadc.Instance- CHSELR = 0; ADC_ChannelConfTypeDef sConfig; sConfig.Channel = AD_Channel; sConf...[Details]
-
The pins of stm32 have two uses: GPIO (general purpose io) and AFIO (alternate function io) For some pins (depending on the chip), neither of these two uses exists. For example, in 64-pin products, O...[Details]
-
Pin Definition FSMC configuration steps 1. Enable the corresponding pin GPIO clock 2. Configure the GPIO pin mode 3. Enable the FSMC clock 4. FSMC initialization 5. Memory block enable Examp...[Details]
-
I have encountered many problems when tinkering with LD driver recently. I will record them one by one below. Otherwise, who will remember who in five hundred years? 1. Configuration issues of multi-...[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]
-
Using AT89S51 microcontroller, modify the original one to turn the LED on for 4s and off for 2s. Thank you. Use a timer. (The program is written in the answer, omitted here - just a note) The origi...[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]
-
#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]
-
Each I/O port of the AVR microcontroller corresponds to three registers: DDRx, PORTx and PINx, where DDRx is the data direction, i.e. input or output; PORTx is the state of the internal pull-up r...[Details]
-
#ifndef _I2C_H #define _I2C_H #define SDA_1 P4OUT|=0x02 //SDA = 1 #define SDA_0 P4OUT&=~0x02 //SDA = 0 #define SCL_1 P4OUT|=0x01 //SCL = 1 #define SCL_0 P4OUT&=~0x01 //SCL = ...[Details]
-
MSP430 MCU Stepper Motor Program #include "msp430x22x4.h" #define uchar unsigned char #define uint unsigned int uchar i=0; // Scanning 4x4 keyboard #define keyin (P2IN&0x0F) //digital tube v...[Details]