Differences Between Microcontroller and PLC Programming

Teacher Liao Changchu A university teacher told me: “Recently, while reviewing students’ graduation theses, I found that some students drew flowcharts for PLC programs just like microcontroller programs. However, when the system has analog control links, the flowcharts drawn are difficult to explain the issues, making it hard to create a comprehensive flowchart that reflects … Read more

Analysis of a Classic Microcontroller Power Supply Circuit

Today we analyze a classic microcontroller power supply circuit, the schematic diagram of the circuit is shown below: ▲ Simplified switch circuit Before powering the circuit, the switch “TEST” is open, and the microcontroller is not powered through VCC. At this point, the base of T1 is grounded through R9 (100k), putting it in the … Read more

12 Essential Knowledge Points for Microcontroller Beginners

Learning about microcontrollers is a long and somewhat painful process. Especially for beginners, it is difficult to form a systematic learning framework when various types of knowledge are incomplete in the early stages. This article aims to provide a thought process and list some essential foundational knowledge before getting into microcontrollers. 1. There are only … Read more

Analyzing Low-Cost Microcontroller Components

【2024 First Release】The Drone Giveaway Activity Returns! More Writing, More Rewards! Introduction The USB power meter is an essential tool for engineers! It’s commonly used to measure the current of phones, products, and circuits. I previously purchased a small power meter, which is very convenient for measuring the power of power banks and lamps. This … Read more

Understanding Interrupts in Microcontrollers

The microcontroller’s CPU, while processing an event A, receives a request to quickly handle another event B (interrupt occurs); the CPU temporarily interrupts its current work to process event B (interrupt response and interrupt service); upon completing event B, the CPU returns to the original point of event A that was interrupted to continue processing … Read more

Three Programming Methods for Microcontrollers: ISP, IAP, ICP

IAP Let’s start with the most relevant topic mentioned above, IAP (In Application Programming). As the name suggests, it means that user code can erase and program the flash memory area. Different MCUs have different flash memory addresses; for example, the flash memory starting address for LPC1778 is 0x0, while for STM32 it is usually … Read more

Understanding Microcontrollers: A Beginner’s Guide

This article begins by introducing microcontrollers from the perspective of integrated circuits, mainly covering the pin diagram and functions of microcontrollers, as well as basic programming. First, let’s take a look at the functional block diagram of the 80C51 microcontroller. The 80C51 microcontroller belongs to the MCS-51 series and uses a 40-pin dual in-line package … Read more

Differences Between Microcontrollers and PLCs

Since the introduction of PLCs in the 1960s in the United States to replace traditional relay control devices, PLCs have rapidly developed and been widely applied around the world. At the same time, the functions of PLCs have continuously improved. With the ongoing advancements in computer technology, signal processing technology, control technology, and network technology, … Read more

Mastering Microcontrollers: A Comprehensive Guide

1. Introduction Many beginners in microcontrollers often ask me, “I am currently a microcontroller beginner, how can I learn it faster? Where should I start?” Regarding this question, I would like to share my thoughts on how I learned microcontrollers, how to get started, and how to become proficient. First, let’s talk about microcontrollers. The … Read more

Classic Microcontroller Power Supply Circuit Analysis

Click the blue text to follow us Today, we will analyze a classic microcontroller power supply circuit. The circuit schematic is shown in the figure below: ▲ Simplified switch circuit Before powering the circuit, the switch “TEST” is open, and the microcontroller is not powered through VCC. At this time, the base of T1 is … Read more