Can Bus vs RS485 Bus: A Detailed Comparison

Can Bus vs RS485 Bus: A Detailed Comparison

PLC Programming Thinking for Experts How to Design Modular Upper Computers? Why is there such a big difference in the situation of engineers in China and abroad? Learn TIA Portal SCL Programming Easily: Structured Variables Understand S7-1500 PLC Reading and Writing SQL Microsoft Database in Seconds CAN (Controller Area Network) is a serial communication network … Read more

In-Depth Discussion on UART for Efficient Device Communication

In-Depth Discussion on UART for Efficient Device Communication

Click the blue text to enter ADI, and then click the upper right corner to mark it as a favorite! UART, or Universal Asynchronous Receiver/Transmitter, is one of the most commonly used communication protocols between devices. This article will explain the standard steps that should be followed when using UART as a hardware communication protocol. … Read more

Understanding UART Serial Communication

Understanding UART Serial Communication

UART stands for Universal Asynchronous Receiver/Transmitter, also known as serial communication. Unlike communication protocols like SPI and I2C, it is a physical circuit within microcontrollers or an independent IC. The main purpose of UART is to send and receive serial data, and its greatest advantage is that it uses only two wires to transmit data … Read more

In-Depth Explanation of UART Serial Communication Protocol

In-Depth Explanation of UART Serial Communication Protocol

  UART (Universal Asynchronous Receiver/Transmitter) is a widely used serial communication protocol in embedded systems. It supports full-duplex communication, allowing simultaneous data transmission and reception, making it very useful in applications that require bidirectional communication. The working principle of UART is to transmit data bit by bit, meaning each binary bit is transmitted independently through signal … Read more

C Language Network Programming: Implementing Your Own Read-Write Buffer

C Language Network Programming: Implementing Your Own Read-Write Buffer

In the field of C language network programming, the read-write buffer plays a crucial role. It acts as a “transfer station” for data flow, efficiently handling data read and write operations in network communication, optimizing program performance, and enhancing the stability of data transmission. Today, we will delve into how to implement your own read-write … Read more

Which Consumes More Battery: Mobile Data or Wi-Fi?

Which Consumes More Battery: Mobile Data or Wi-Fi?

Imagine this: after a long day at university, you’re on the subway heading home, connected to public Wi-Fi to listen to your favorite podcast, but you notice your phone’s battery is low—below 15%. At this moment, you’re torn between pausing the podcast and wanting to preserve some battery before getting home, so you turn off … Read more

Understanding CRC Principles and Applications in Microcontrollers

Understanding CRC Principles and Applications in Microcontrollers

转自 | 瑞萨嵌入式小百科 CRC:Cyclic Redundancy Check,即循环冗余校验码。 CRC是数据通信领域中最常用的一种查错校验码,其特征是信息字段和校验字段的长度可以任意选定。 循环冗余检查(CRC)是一种数据传输检错功能,对数据进行多项式计算,并将得到的结果附在帧的后面,接收设备也执行类似的算法,以保证数据传输的正确性和完整性。 —来自百度百科 学电子、计算机相关专业的同学都应该学习过CRC的基础原理。其原理说难不难,可以说就是一个公式。同时,说简单也不简单,这个公式里面包含的内容不简单。 点击查看大图 网络上关于CRC基础原理的内容比较多,可以搜索关键词“循环冗余校验”进行查询。 今天结合瑞萨RA MCU自带硬件CRC计算单元给大家讲讲其原理及监听应用。 瑞萨RA单片机硬件CRC计算单元采用固定的多项式发生器来计算8位或者32位数据的CRC校验值,对数据传输或数据存储的一致性、完整性进行验证。这篇文章重点介绍RA MCU中的CRC模块和使用方法。 RA MCU中的CRC 计算单元规格如下: 点击查看大图 注1. 该函数不能划分CRC计算中使用的数据。以8位或32位为单位写入数据。 CRC 计算单元框图如下: 那么接下来就是如何使用了,打开工程中的configuration.xlm文件,在Stacks窗口中,可以通过“New Stack → Monitoring → CRC (r_crc)”添加该模块。该模块的属性窗口如下: 点击查看大图 在应用程序中使用CRC模块的基本例程如下: void crc_example (){uint32_t length;uint32_t uint8_calculated_value;length = sizeof(g_data_8bit) / sizeof(g_data_8bit[0]);crc_input_t example_input ={.p_input_buffer = g_data_8bit,.num_bytes = length,.crc_seed = 0,};/* Open CRC module with 8 … Read more

Introduction to IoT Gateways: RTU and DTU

Introduction to IoT Gateways: RTU and DTU

The digital transformation of manufacturing enterprises has made the construction of industrial IoT platforms, wireless communication, and remote control indispensable. The essence of wireless communication lies in the collection, transmission, and feedback of information. Achieving these functions fundamentally relies on the mutual cooperation of relevant software and hardware control units, which are interdependent and form … Read more

Understanding Serial Communication in Embedded Systems

Understanding Serial Communication in Embedded Systems

Embedded electronic devices are collections of various circuits (processors or other integrated circuits). In order to exchange information between these independent circuits, they must follow the same communication protocol. To accommodate different needs, engineers have defined hundreds of thousands of communication protocols, which can generally be divided into two categories: parallel or serial. 1. Parallel … Read more

Getting Started with FreeRTOS: Detailed Queue Usage Examples

Getting Started with FreeRTOS: Detailed Queue Usage Examples

Introduction In the previous article, we explained the concept of queues and the related API functions. In this article, we will start learning how to use queues. 1. Basic Usage of Queues This example will create three tasks, two of which send data to the queue, and the other reads data from the queue. void … Read more