[STM32] AT24C256 hardware I2C reading and writing, based on HAL library

Table of Contents 1. Brief introduction 2. Configuration project Open CubeMX, configure clock, debugging interface, project name, directory, etc. Configure iic Configure the serial port to display information 3. Hardware connection 4. Code writing 1. Write a byte randomly test code The waveform is as follows Code writing 2. Continuous writing code show as below […]

Hardware beyond the openmp common core

Table of Contents NUMA: non-identical memory access Control thread affinity: Nested parallel construction: Check thread affinity: SIMD: Host-device mode: NUMA: non-identical memory access Data locality: Figure 12-6: With and without first contact //Step 1.a Initialization by initial thread only for (j = 0; j < VectorSize; j + + ) { a[j] = 1.0; b[j] […]

2.9 In-depth understanding of GPU hardware architecture and operating mechanism

5. Key points of GPU technology 1.SMID and SIMT SIMD (Single Instruction Multiple Data) is single instruction multiple data. In the GPU’s ALU (in the Core) unit, one instruction can process multi-dimensional vector (usually 4D) data. For example, there are the following shader instructions: float4 c = a + b; // a, b are both […]

GD32F103 hardware SPI communication

1. Communication principle of SPI SPI can be used as both a master and a slave. When acting as a host. MOSI, SCK, and CS are all used as outputs. And as a slave. MOSI, SCK, and CS are all used as input. So the SPI hardware circuit should implement such a function. 2. SPI […]

Automatically obtain computer hardware configuration information into csv files, supporting batch operations on multiple computers

The following code is modified from qop_dob’s sharing. It has been partially modified based on the original author’s work. It can be exported as a csv file and supports batch operations on multiple computers to improve work efficiency. Thanks to the original author for sharing. To respect the original author, the modified code still retains […]

[Hardware related] Switch configuration instructions

1. Huawei switch The example is Huawei switch (S6720-54C-EI-48S-AC) 1. Configuration instructions The laptop is connected to the switch COM port through the Console cable, and connected to the debugging session through xshell Note: 1. You can check the COM port number through the device manager 2. The transmission protocol is SERIAL, the baud rate […]