Simulating Standard UART Serial Port Using General I/O Ports

Simulating Standard UART Serial Port Using General I/O Ports

Frame The UART communication standard uses an 8-bit binary number as a frame, with the least significant bit first, transmitted bit by bit. To distinguish each frame, a 0 is used as a start marker before each frame, followed by a 1 as a stop marker. Before the stop marker, an optional “parity bit” can … Read more

How to Effectively Program an MCU Active Buzzer Driver

How to Effectively Program an MCU Active Buzzer Driver

The buzzer is a common device, which can be divided into passive and active types. Choose different types of buzzers based on project requirements. In a recent project, we used an active buzzer. As usual, we first designed the circuit board and then proceeded to programming. The schematic in the project is as follows: If … Read more

Configuring DAC Output for Fixed Voltage and Square Wave on STM32

Configuring DAC Output for Fixed Voltage and Square Wave on STM32

The STM32F103VCT6 features two 12-bit DACs. The conversion speed of the DAC has not been confirmed, but some online sources suggest a frequency of 1MHz, which means 1us. The ADC conversion time at a working frequency of 56MHz is 1us, and at 72MHz it is 1.17us. If there is a symmetrical relationship between AD and … Read more

Step-By-Step Guide to STM32 General Timers (Part 1)

Step-By-Step Guide to STM32 General Timers (Part 1)

● General Timer (TM2~TM5) The general timer is managed by the chip and can perform up counting, down counting, or both simultaneously. Additionally, these timers have other functionalities: input capture, output compare, PWM, and single pulse. ● From Manual to Flow The main module of the timer consists of a 16/32-bit counter and its related … Read more

How to Achieve Sequential Control with PLC: A Beginner’s Guide

How to Achieve Sequential Control with PLC: A Beginner's Guide

Click the blue text to follow us How to Achieve Sequential Control with PLC? A Beginner’s Guide In industrial automation, sequential control is a very common task, such as product assembly on an assembly line or multi-step operation control of packaging machines. Today we will discuss how to achieve sequential control using PLC, guiding you … Read more

Essential PLC Traffic Light Program

Essential PLC Traffic Light Program

Hello everyone, today we are going to learn a classic and practical PLC program – traffic light control. Although it seems simple, it contains a lot of basic PLC programming skills. Once you master this, you will be able to handle many similar sequential control tasks with ease. Working Principle of Traffic Lights Let’s first … Read more

Ultimate Secrets of MCU Programming: Delays

Ultimate Secrets of MCU Programming: Delays

/*** Direct Hit to the Essence ***/ 1) A certain time delay is required when powering up the entire chip The main reason is that during the power-up process, the power supply is not stable enough, which may interfere with the internal initialization of the chip, causing abnormal operation of peripheral devices; at the same … Read more

51 Microcontroller Traffic Light Controller Tutorial

51 Microcontroller Traffic Light Controller Tutorial

AD Package Library Component Library Collection:Package Library Resource Directory: This design is based on the 51 microcontroller traffic light controller, with control, start, and yellow light flashing (Proteus simulation + program). Simulation: Proteus 7.8 Program Compiler: Keil 4/Keil 5 Programming Language: C Language Number J012 Function Description: Timing control of LED lights; display and flashing … Read more

Implementing Multi-Tasking Operations with Microcontrollers

Implementing Multi-Tasking Operations with Microcontrollers

Limited Time Resource Download:Reply “Tutorial” to get the microcontroller eBook, reply “Simulation” to get Proteus simulation materials, Baidu Disk group share link update time: 2016-05-2,if expired, please leave a message at the end of the article, do not leave a message in the background,you can also search for more resources you want in the background … Read more

Microsecond-Level Delay Solutions on RTOS

Microsecond-Level Delay Solutions on RTOS

Microsecond-Level Delay Design Solutions Generally, in an RTOS system with a clock of 1KHz, the minimum time for thread_sleep() is 1ms. In real-time control, there are situations where microsecond (us) level delays are required. What should we do in this case? There are two implementation approaches for microsecond-level delays: one is to increase the system … Read more