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

Comprehensive Guide to 80 MCU Programming Examples (1-30)

Comprehensive Guide to 80 MCU Programming Examples (1-30)

Please click above for free follow… *Example 1: Use P3 port to light up 8 LEDs in sequence #include<reg51.h>//Include the header file for MCU registers / Function: Delay for a period of time void delay(void) { unsigned char i,j; for(i=0;i<250;i++) for(j=0;j<250;j++) ; } / Function: Main function void main(void) { while(1) { P3=0xfe; // First … Read more

Microchip Live | MCU Programming Made Easy with MPLAB

Microchip Live | MCU Programming Made Easy with MPLAB

Do you have numerous product prototypes in mind, but struggle to validate them quickly? In the early stages of product design, are you still worried about MCU programming and PCB design? Why not learn about Microchip’s: MPLAB® Code Configurator (MCC)? Those who have used it have commented: “I have been looking for a tool that … Read more

Transitioning from MCU to Embedded Linux Development

Transitioning from MCU to Embedded Linux Development

Follow and star our official account, to access exciting content Source: Zhihu Author: snowdream I saw the following question on Zhihu. After 6 years in MCU, how do I transition to Embedded Linux? It’s quite awkward now; the MCU products I work on always feel repetitive, and I want to learn something new but don’t … Read more

Embedded Development: Understanding MCU Power Up and Down

Embedded Development: Understanding MCU Power Up and Down

In engineering, there are many issues related to sleep and wake-up. In the vehicle’s network topology, many nodes have similar problems. For example: Reusing SPI leads to communication loss, nodes cannot sleep, node startup time exceeds the required time, nodes occasionally cannot wake up, and so on. These engineering issues are sometimes viewed as network … Read more

Essential CAN Bus Knowledge for Embedded Development

Essential CAN Bus Knowledge for Embedded Development

Welcome to join the technical exchange QQ group (2000 people): Power Electronics Technology and New Energy 905749978 High-reliability new energy industry top self-media Here you can find power electronics, new energy dry goods, industry development trend analysis, latest product introductions, many technical experts sharing experiences with you. Welcome to follow the WeChat public account: Power … Read more

Embedded Development | Methods to Improve MCU Code Compilation Speed

Embedded Development | Methods to Improve MCU Code Compilation Speed

Follow+Star Public Account, don’t miss wonderful content Author | strongerHuang WeChat Public Account | strongerHuang Programmers doing software development hate one thing, which is the slow code compilation speed. Code for one minute, compile for ten minutes, who can stand that? Today, let’s talk about some common operations or methods to improve compilation speed in … Read more

Methods for Outputting Debug and Log Information in Embedded Development

Methods for Outputting Debug and Log Information in Embedded Development

Follow+Star PublicAccount, don’t miss exciting content Author | strongerHuang WeChat Official Account | Embedded Column In MCU-based embedded software development, there may be situations where there is no extra storage space, thus failing to effectively save debug and log information locally. In this case, outputting debug (Debug) and log (Log) information through some means becomes … Read more

Using HX711 for Weight Measurement

Using HX711 for Weight Measurement

Table of Contents 1. Introduction to HX711 2. Module Operating Principle 3. Code Implementation 4. Conclusion 01 — Introduction to HX711 Kimi, start! In summary, HX711 is essentially an ADC. 02 — Module Operating Principle The internal structure diagram of HX711 is as follows: The working principle of HX711 is as follows: Inside HX711, there … Read more

Main Players and Products of Domestic Automotive MCUs

Main Players and Products of Domestic Automotive MCUs

According to reports from Electronic Enthusiasts (by Cheng Wenzhi), in recent years, with the rapid development of automotive electrification, intelligence, and connectivity, the demand for chips in automobiles has been increasing. Statistics show that traditional fuel vehicles generally require around 500 chips, electric vehicles require about 1500 chips, while high-end intelligent electric vehicles will need … Read more