In the last note, I learned about the ADC driver. STM32MP157 also has DAC peripherals. The IIO driver framework also used by DAC. In this chapter, we will learn how to use the DAC on STM32MP157 under Linux as follows. Introduction to DAC ADC is an analog-to-digital converter, responsible for converting external analog signals into […]
Tag: embedded
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 […]
11.3 Embedded C language
day3 1, int a[]={<!– –>0,1,2,3,4,5,6,7,8,9},*p=a,i; Among them, 0
Punctual Atomic Embedded Linux Driver Development–Linux 4G Communication
I have learned previously how to use a wired network or WIFI in Linux, but there are many restrictions on using a wired network or WIFI because wiring is required. Even WIFI must be wired first and then connected to a wireless router. There are many occasions where wiring is inconvenient. This is when 4G […]
Unity game embedded in iOS application (integrated into one application) v2.0
One game embedded in APP 1.1 Development tool version 1.1.1 iOS development tool version Xcode Version 14.2 (14C18) ? 1.1.2 The iOS project development language is Swift5 ? 1.1.3 Unity development tool version 2022.3.8f1c1 ? 1.2 Combining iOS projects and Unity projects 1.2.1 Create a new Swift language project on iOS ? In the new […]
How to rewrite C++ code into C language code in embedded system
Because the C++ interpreter takes up about 500k more storage space than the C language interpreter. In order to save limited storage space, reduce costs, and improve efficiency, it is necessary to rewrite the source program written in C++ language into C language. The biggest difference between C++ and C is the concept and characteristics […]
Embedded Peripheral Set — Display Module (LCD12864 — Serial)
Table of Contents 1. Module introduction Follow the WeChat public account – Star Aid Studio and send keywords (LCD12864) 2. Connection and driver code – serial LCD.c LCD.h main.c 3. Reference 1. Module Introduction The LCD12864 display module is a common liquid crystal display module with a size of 128×64 pixels. It uses LCD technology […]
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 […]