Embedded Linux development—UART serial communication driver hardware programming

0. Basic preparation of serial port In embedded systems, many devices can be controlled through serial ports, such as WiFi, Bluetooth, RFID, etc., so using serial ports in embedded devices is particularly important. First, a few concepts are briefly clarified. RS232, RS485 and TTL refer to electrical level standards. Generally speaking, TTL uses 0V to […]

In embedded design, for a variable storage design with only two states, how to efficiently quantify the deviation of the tracking car…

Foreword (1) In embedded programming, we often need to store data from various sensors. Most of the time sensors, such as infrared light sensors, return data that is either 0 or 1. Therefore, only one bit is needed to store it. However, many people often use char array storage, so that only one-eighth of the […]

Embedded development plan-50—-ARM–Related syntax of ARM assembly language–ARM assembly instructions

One hundred and twenty-five, related syntax of ARM assembly language 125.1 Contents in the assembly file 1. Pseudo operation: It does not occupy storage space in the assembly program, but it can play a guiding and identifying role when the program is compiled. .text .global .glbal .if .else .endif .data .word…. 2. Assembly instructions: Each […]

Embedded Systems Week 8 Experiment: Serial Communication Based on Interrupt/DMA Mode

1 Experimental task: (1) Understand the serial port protocol and RS-232 standard (2) And the difference between RS232 level and TTL level; (3) Understand the working principle of the “USB/TTL to 232” module (taking the CH340 chip module as an example). Use the HAL library (or standard library) method to set the USART1 baud rate […]