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 […]

C# reads and writes ECRAM hardware information based on inpoutx64

inpoutx64.dll sharing path: Link: https://pan.baidu.com/s/1rOt0xtt9EcsrFQtf7S91ag Extraction code: 7om1 1.InpOutManager: using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace TestLEDWinFrm { public class InpOutManager { public bool IsInpOutDriverOpen { get; set; }//Whether the port is open public short PORT_INDEX { get; } = 0x66;//Port number public short EC_COMMAND_WRITE { get; } = […]

STM32F407-Discovery’s hardware FPU

Table of Contents 1. Introduction to FPU of STM32F407 2. Configuration 3. Comparative testing 3.1 Example 1 3.2 Example 2 4. Summary This article is based on the STM32 HAL library version: STM32Cube_FW_F4_V1.27.0 1. Introduction to FPU of STM32F407 FPU: Float Point Unit, which is the floating point operation unit. If a fixed-point CPU (CPU […]

?Unity + LeapMotion gesture recognition + hardware serial port interaction

Interactive test effect 1. Prepare the development environment 1. Download and install LeapMotion SDK (you can download it yourself) 2. The Unity editor I chose is 2018.4.32f1 2. Functional part 1. Determine the serial port number and baud rate to be connected. The program directly enters the code. using KoboldCom; using System; using System.Collections; using […]

Quartus II (13.1) How to create a new project + simulation + hardware and load the counter asynchronously as an example

There are too many softwares required for EDA courses. I am afraid that my memory will be fuzzy when I use them in the future, so I decided to simply write a (very detailed) process of creating a new project and simulation. This is also my first blog, maybe There are many problems, please point […]

Betaflight regarding the electrical characteristics of STM32F405 SBUS protocol compatible hardware

Betaflight regarding the electrical characteristics of STM32F405 SBUS protocol compatible hardware 1. Origin 2. Reserve knowledge 2.1 Tri-state Logic 2.1 Pull-up 2.2 Pull-down 2.3 Current Sink 2.4 Current Source 2.5 GPIO input mode 2.6 GPIO output mode 3. Introduction to FPV system protocol 3.1 TX Protocols – communication between radio transmitter (TX) and radio receiver […]

Linux hardware time (RTC time), system time (UTC time, Universal time), local time (Local time), time zone (Time zone) and daylight saving time (DST) analysis

Article directory Understand time: hardware time, system time (UTC time), local time, time zone and daylight saving time 1. Hardware time (RTC time) 1.1 Introduction to hardware time 1.2 How to use hardware time 2. System time (UTC time) (Universal time) 2.1 Introduction to system time 2.2 UTC time 3. Local time 3.1 Introduction to […]

Looking at the life of interruption from the perspective of software and hardware interaction

Perface Hi ALL! Recently, I have been locating a problem about interrupts. In the past, these issues were treated separately. It was either how the software designed the interrupts or how the hardware designed the interrupts. I just took this opportunity to sort out the knowledge about interruption from the perspective of software and hardware […]

[Python third-party package] Quickly obtain hardware information and usage (psutil, platform)

Article directory Preface 1. psutil package 1.1 Install psutil package 1.2 How to use psutil Get CPU usage Get memory usage Change memory usage into GB and MB Get disk usage Disk memory for conversion Get network information Network info 2. platform 2.1 Introduction to platform 2.2 How to use platform Get the name of […]