How to Generate Accurate Delays with New Tang Microcontrollers

How to Generate Accurate Delays with New Tang Microcontrollers

Recently, I’ve been working with New Tang microcontrollers, so I’m documenting this part of the content. Previous related articles Hey, do you know how to achieve accurate delays with the 51 microcontroller? If the user wants to generate precise delay times, it is recommended to use the __nop() function in combination. The __nop() function can … Read more

FreeRTOS Learning Notes (Part 10) — System Delays

FreeRTOS Learning Notes (Part 10) — System Delays

🎀 Article Author: Ertu Electronics🌸 Follow the public account at the end of the article for more materials and project files!🐸 Looking forward to learning and exchanging ideas together! Article Cover 1. Concepts of Relative Delay and Absolute Delay First, let’s understand the concepts of relative delay and absolute delay. • Relative Delay refers to … Read more

Accurate Delay Methods for 51 Microcontroller

Accurate Delay Methods for 51 Microcontroller

There are generally two methods for implementing precise delays in the 51 microcontroller: one is hardware delay, which requires the use of timers/counters. This method can improve CPU efficiency and achieve precise delays; the other is software delay, which mainly uses loops. 1 Using Timer/Counter for Precise Delay The microcontroller system typically selects an 11.0592 … 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

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

Microsecond-Level Delay Solutions in RTOS

Microsecond-Level Delay Solutions in RTOS

Follow+Star Public Account Number, don’t miss the wonderful content Source | MultiMCU EDU Typically, the RTOS system tick is 1KHz, of course, there are cases of 100Hz or 10KHz. At 1KHz, the shortest system delay is 1ms, and in real-time control, there are situations that require microsecond (us) level delays. What should we do? There … Read more