1. Summary of basic knowledge of IIC. 1. IIC communication requires only two lines, SCL and SDA. 2. The data transmission rate of IIC is different for different ICs. The IIC data transmission rate is determined according to the delay function time of level maintenance. 3. The delay function of IIC can use the delay […]
Tag: hardware
STC8H hardware SPI control LORA SX1268 realizes simple transceiver function
After researching for several days, I just started to treat the operation code as an address. It was so funny. I adjusted it for several days and found that it didn’t work. I found it yesterday, and then after adjusting it for a long time, it still didn’t work. Today I found something called a […]
[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 […]
STM32F103C8T6+I2C+DMA read gyroscope module JY901S (hardware I2C
1.Background The author once used the 6-axis gyroscope module mpu6050 module and found that there was a serious zero drift problem. I also checked many methods on the Internet, such as delay, etc., but they could not solve the problem, so I attributed the problem to the fact that the module only has 6 axes. […]
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 […]
STM32F103STM32F103 hardware IIC reads temperature sensor EMC1314
STM32F103 hardware I2C reading temperature sensor In the previous article, I wrote about STM32F103 using hardware IIC to read the classic peripheral EEPROM. It was only designed with a process of writing data and reading data. This article mainly introduces the case of reading and writing a temperature sensor EMC1314 model. An important step in […]
[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 […]