Detailed Explanation of GPIO Operations for 32-bit Microcontrollers

Detailed Explanation of GPIO Operations for 32-bit Microcontrollers

32 Single Chip Microcontroller I O When it comes to the IO of the 32-bit microcontroller, taking the F1 series as an example, we first need to mention: 1 initialization function: void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct); 2 functions to read input levels: uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin); uint16_t GPIO_ReadInputData(GPIO_TypeDef* GPIOx); 2 functions to read output … Read more

Can Microcontrollers Truly Execute Multiple Tasks Simultaneously?

Can Microcontrollers Truly Execute Multiple Tasks Simultaneously?

Many students ask me: Why does my LED light blink while the serial port data reception gets stuck? I want to read data from two sensors simultaneously, why is it that one of them always reads incorrectly? Why can’t my program control the motor while sending data? The most classic question is: why can’t I … Read more

Microcontroller (4) | Microcontroller Bus and Memory Expansion

Microcontroller (4) | Microcontroller Bus and Memory Expansion

7. Microcontroller Bus and Memory Expansion Data Memory Expansion (SRAM) 6264 is the most commonly used. A0-A12 address lines, D0-D7 data lines. CE chip select OE read enable WE write enable Reading external data RAM timing, MOVX A, @Ri or MOVX A, @DPTR starts reading When low, the eight-bit address data enters the latch, P0 … Read more

Fundamentals and Practical Guide to Microcontroller Technology: Understanding Why Engineers Earn High Salaries

Fundamentals and Practical Guide to Microcontroller Technology: Understanding Why Engineers Earn High Salaries

1. Overview of Microcontroller Technology 1.1 Definition and Core Architecture A microcontroller is an integrated circuit that incorporates a central processing unit (CPU) with data processing capabilities, random access memory (RAM), read-only memory (ROM), various I/O ports, an interrupt system, timers/counters, and possibly additional circuits such as display drivers, pulse width modulation circuits, analog multiplexers, … Read more

Microcontroller (3) | Serial Interface

Microcontroller (3) | Serial Interface

6. Serial Interface Parallel Communication and Serial Communication Asynchronous and Synchronous Communication Asynchronous Serial Full Duplex (P3.0-RXD P3.1-TXD) Timer 1 serves as the baud rate generator to control the rhythm of opening the door, generating transmission and reception completion interrupts TI, RI Mode 0 is used for expanding IO, while Modes 1-2 are communication modes. … Read more

Which Microcontrollers are Suitable for Industrial Equipment?

Which Microcontrollers are Suitable for Industrial Equipment?

Commonly used microcontrollers for industrial-grade equipment can be broadly divided into HC32L110C6PA-TSSOP20TR and HC32L136K8T6-LQFP64, both produced by Holtek. 1. HC32L110C6PA-TSSOP20TR Core Architecture: 32-bit ARM Cortex-M0+ core Maximum Clock Frequency: 48MHz Memory: Flash 64KB, SRAM 8KB Pin Count: 20 pins (TSSOP package) Operating Voltage: 2.4V ~ 3.6V Peripheral Interfaces: UART, SPI, I2C, ADC (12-bit resolution), Timer, … Read more

The Three Pillars of Embedded Systems: MCU, DSP, and FPGA

The Three Pillars of Embedded Systems: MCU, DSP, and FPGA

In the wave of IoT and Industry 4.0, embedded systems have become the core engine of smart devices. Among them, Microcontrollers (MCU), Digital Signal Processors (DSP), and Field Programmable Gate Arrays (FPGA) form a triangular relationship, occupying three strategic positions in control, computation, and programmable acceleration. 1. Microcontroller: The Control Center of Embedded Systemsâ‘  Core … Read more

Microcontroller (MCU) Market Marketing Brief (2021)

Microcontroller (MCU) Market Marketing Brief (2021)

To facilitate communication and exchange, a “Microcontroller (MCU) Market Exchange Group” has been established, which can be joined by applying through “Read the original text“ Introduction The microcontroller (MCU) has been widely used since its inception in the 1970s, undergoing over forty years of development. The rapid growth of the Chinese market has attracted more … Read more

Event Recap | Decoding the Magic of the 51 Microcontroller

Decoding the Magic of the 51 Microcontroller— Introduction to Microcontrollers Microchip Power Association As an integrated chip that combines a CPU, memory, and peripherals, the microcontroller plays a crucial role in various applications, from precise temperature control in smart homes and rapid recognition in smart locks to real-time monitoring in industrial production lines and stable … Read more

From Idle Buttons to Smart Companions! A Complete DIY Guide to Creating Your Own ‘Button Smart Device’ from Scratch

From Idle Buttons to Smart Companions! A Complete DIY Guide to Creating Your Own 'Button Smart Device' from Scratch

Have you ever stared at the idle buttons in your drawer, wondering how they could be given new life? Today, we will unlock a super cool way to transform a small button into your very own smart device! Even if you are a programming novice or not very handy, you can easily grasp this black … Read more