Advanced Embedded Programming | True Random vs Pseudo Random? The Ultimate Guide to Secure Random Number Generation in Microcontrollers

Advanced Embedded Programming | True Random vs Pseudo Random? The Ultimate Guide to Secure Random Number Generation in Microcontrollers

01Introduction: In C language for microcontrollers, due to resource limitations, pseudo-random number algorithms are usually employed. 02Common Methods 1. Standard Library Function Method (Requires Hardware Support) Note: Some microcontroller standard libraries may not support the rand() function. #include <stdlib.h> #include <time.h> // Initialize random seed (requires external variable, such as ADC noise) void init_random() { … Read more

51 Microcontroller Hardware System

51 Microcontroller Hardware System

51 Microcontroller Hardware System The 51 microcontroller (such as the Intel 8051 series and its derivatives) is a classic8bit microcontroller widely used in embedded system development. 1.Central Processing Unit (CPU) Architecture: Based on an8bitCISC (Complex Instruction Set) architecture, with the core being theMCS51 instruction set. Functional Modules: Arithmetic Logic Unit (ALU): Performs arithmetic and logical … Read more

STM32 Microcontroller #12 SPI Communication (Software Read/Write)

STM32 Microcontroller #12 SPI Communication (Software Read/Write)

Main reference materials: Bilibili @ Jiangxie Technology STM32 Beginner Tutorial – 2023 Edition Detailed Explanation with Chinese Subtitles Development material download link: https://pan.baidu.com/s/1h_UjuQKDX9IpP-U1Effbsw?pwd=dspb Microcontroller kit: STM32F103C8T6 development board microcontroller C6T6 core board experimental board minimum system board kit (available for purchase at the end of the article) SPI Communication • SPI (Serial Peripheral Interface) is … Read more

Renesas RA8 Series Tutorial | Developing RA8 Microcontroller Based on Keil

Renesas RA8 Series Tutorial | Developing RA8 Microcontroller Based on Keil

In the past two years, the microcontroller industry has also started to become competitive, with major manufacturers launching various high-performance microcontrollers.The introduction of the Cortex-M85 core microcontroller is as follows:When it comes to Arm Cortex-M core microcontrollers, the most commonly used development tool is still Arm’s own Keil. Indeed, Keil is currently the most mainstream … Read more

ACROVIEW Programmer Supports HangShun 32-bit Microcontroller HK32F103CBT

ACROVIEW Programmer Supports HangShun 32-bit Microcontroller HK32F103CBT

The chip programming leader ACROVIEW Technology recently announced the latest iteration of its programming software, along with a series of newly compatible chip models. In this update, the 32-bit microcontroller HK32F103CBT launched by HangShun has been supported by the ACROVIEW offline programmer AP8000. The HK32F103CBT features a high-performance ARM® Cortex™-M3 32-bit RISC core, with a … Read more

Microcontroller: Choosing Between DAC and PWM for Audio Output? Test Data Reveals the Answer!

Microcontroller: Choosing Between DAC and PWM for Audio Output? Test Data Reveals the Answer!

Hello everyone, I am Xiao Chen. Today, let’s discuss a practical topic: how can microcontrollers output audio signals? Currently, there are two mainstream solutions: directly using a DAC (Digital-to-Analog Converter) or using PWM (Pulse Width Modulation) for analog output. Both methods have their pros and cons, and many beginners can easily get confused. Today, I … Read more

Serial Peripheral Interface (SPI) Protocol: Principles, Architecture, and Applications

Serial Peripheral Interface (SPI) Protocol: Principles, Architecture, and Applications

Author | Confused Zhen Produced by | Automotive Electronics and Software #01Introduction to the Serial Peripheral Interface (SPI) Protocol SPI is a multi-master or master-slave, four-wire, full-duplex synchronous serial communication protocol, which means that data can be sent and received simultaneously.SPI was developed by Motorola as a protocol for synchronous serial communication, allowing full-duplex communication … Read more

How to Master STM32 and 51 Microcontrollers?

How to Master STM32 and 51 Microcontrollers?

Personal Insights The best way to learn microcontrollers is to start programming them directly in C language, which saves time, is easier to learn, and allows for rapid progress. Let’s talk about microcontrollers. The STM32 and 51 microcontrollers are commonly used today, with abundant resources and a large market. The study of microcontrollers is a … Read more

Serial Peripheral Interface (SPI) Protocol: Principles, Architecture, and Applications

Serial Peripheral Interface (SPI) Protocol: Principles, Architecture, and Applications

Author | Confused Zhen Produced by | Automotive Electronics and Software #01Introduction to Serial Peripheral Interface (SPI) Protocol SPI is a multi-master or master-slave, four-wire, full-duplex synchronous serial communication protocol, which means that data can be sent and received simultaneously.SPI was developed by Motorola as a protocol for synchronous serial communication, allowing full-duplex communication between … Read more