Five Considerations for Microcontroller Embedded Programming

Five Considerations for Microcontroller Embedded Programming

In the process of microcontroller programming, if a designer can master multiple programming languages simultaneously, then that designer is undoubtedly a very talented individual. However, mastering assembly, C, and C++ at the same time is quite challenging, and many beginners struggle significantly while learning just one of these languages. This article specifically compiles insights from … Read more

Overview of Common Microcontroller Programming Frameworks: Frontend, Backend, Timers, Polling, and Operating Systems

Overview of Common Microcontroller Programming Frameworks: Frontend, Backend, Timers, Polling, and Operating Systems

Source: https://blog.csdn.net/twx11213030422 Embedded Miscellaneous Layout What is a Framework? A programming framework is similar to a file outline or template. Writing a program is akin to writing an article; without an outline or template, it can be quite cumbersome. Why Have a Framework? To save time and reduce errors. For a specific type of program, … Read more

Detailed Explanation of ARMv8/ARMv9 Interrupts: Software Aspects – An Introduction to Linux Kernel Interrupts

Detailed Explanation of ARMv8/ARMv9 Interrupts: Software Aspects - An Introduction to Linux Kernel Interrupts

Table of Contents 1 Definition of the Linux Kernel ARM64 Interrupt Vector Table 2 Setting the Base Address of the Interrupt Vector Table in Linux Kernel ARM64 3 Introduction to the kernel_ventry Macro 4 Unimplemented Exception Vectors: elx_yyy_invalid 5 Introduction to el1_irq – Jumping to the Registered Handler Function 6 handle_domain_irq 7 Introduction to Interrupt … Read more

Renesas RA8 Series Tutorial | Configuring IO Interrupts for the Renesas RA8 Microcontroller

Renesas RA8 Series Tutorial | Configuring IO Interrupts for the Renesas RA8 Microcontroller

This article combines the Renesas e2 studio tool and the CPKCOR_RA8D1B evaluation board to explain how to implement IO interrupt configuration for the Renesas RA8D1 microcontroller. We will implement a simple function: configure an LED toggle (on/off) and a button (Key) interrupt, where pressing the button once toggles the LED. Preparation To develop with the … Read more

Five Considerations for Microcontroller Embedded Programming

Five Considerations for Microcontroller Embedded Programming

In the process of microcontroller programming, if a designer can master multiple programming languages simultaneously, then that designer is undoubtedly a very talented individual. However, mastering assembly, C, and C++ at the same time is quite challenging, and many beginners struggle significantly while learning just one of these languages. This article specifically compiles opinions from … Read more

How to Prevent Variable Changes Due to Interrupts in Microcontroller Programming

How to Prevent Variable Changes Due to Interrupts in Microcontroller Programming

Introduction In embedded development, have you ever encountered a scenario where the value of a global variable suddenly changes? The interrupt service routine has modified it, yet the main program continues to read the old value. Even more frustrating, these issues are often difficult to reproduce, making debugging feel like “catching ghosts.” The root cause … Read more

Goodbye 996! Essential Tips to Boost Efficiency in Microcontroller and PLC Programming

Goodbye 996! Essential Tips to Boost Efficiency in Microcontroller and PLC Programming

Hello everyone! Today, let’s talk about some essential tips in microcontroller and PLC programming that can help you boost your efficiency, allowing you to say goodbye to the 996 work culture and easily tackle your programming tasks! 1. Efficiency Improvement Techniques for Microcontrollers (1) Bit Manipulation: Programming Techniques to Make Microcontrollers Run Faster Basic Concept … Read more

Common Microcontroller Faults and Solutions

Common Microcontroller Faults and Solutions

Click the blue textFollow me! ☀The official WeChat of Jicheng Training Network is the industrial control WeChatwith the most concentratedand specializednumber of people, providing technical articles, free video tutorials, and a free communication platform. Follow Jicheng, and there will be no problem in improving your skills! Consultation Q:4001114100 Source: jcpeixun In work and life, you … Read more

Using Timer Interrupts to Implement Breathing Light Effect with CC2530

Using Timer Interrupts to Implement Breathing Light Effect with CC2530

Introduction Today, we will not cover the Zigbee protocol, but rather some operations of the timer in the CC2530 microcontroller. This article uses 8-bit Timer 3 for experimentation, and other timers can be similarly applied. Through this article: You will learn some basic knowledge about timers. You will see configuration instructions for some timer registers. … Read more

Control LED with Button Using CC2530

Control LED with Button Using CC2530

Introduction Today’s content does not involve the Zigbee protocol, but rather the use of the CC2530 microcontroller to control an LED with a button. This tutorial is divided into two parts: Polling to detect button levels for controlling the LED. Using button interrupts to control the LED. 1. Principle Analysis 1. Button Functionality The schematic … Read more