Coding Style: The Use of Indentation, Spaces, and Braces in C Language

Coding Style: The Use of Indentation, Spaces, and Braces in C Language

Coding Style: The Use of Indentation, Spaces, and Braces in C Language When writing C programs, a good coding style not only enhances the readability of the code but also aids in team collaboration and future maintenance. This article will detail the specifications for using indentation, spaces, and braces in C language, along with corresponding … Read more

Developing a Simple Graphical User Interface Program in C

Developing a Simple Graphical User Interface Program in C

Developing a Simple Graphical User Interface Program in C In modern application development, users require an intuitive and friendly graphical interface to better interact with programs. Although C is typically used for system-level programming, we can also create simple graphical user interface (GUI) programs with the help of certain libraries. In this article, we will … Read more

Week 8: Embedded Programming [FabNotes016]

Week 8: Embedded Programming [FabNotes016]

This week we will learn embedded programming. Let’s continue to experience the classroom notes filled with new terminology! Microprocessors/Microcontrollers Memory: registers, SRAM (Static Random Access Memory), DRAM (Dynamic Random Access Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), FLASH, fuse Peripherals: A/D (Analog to Digital), comparator, D/A, timer/counter/PWM (Pulse Width Modulation), USART (Universal Synchronous/Asynchronous Receiver-Transmitter), USB … Read more

The Importance of Programming Standards in Embedded Software Development

The Importance of Programming Standards in Embedded Software Development

Introduction Have you ever felt this way: when you see unstructured (messy) code, you instantly lose the desire to continue reading? Everyone should understand from the title how crucial programming standards and principles are for every software development engineer. Beginners writing test programs or small modules may not feel its importance; however, those with experience … Read more

Programming Options in the Embedded Chip Development Environment

Programming Options in the Embedded Chip Development Environment

The programming options in MPLAB XIDE are used frequently, but are you clear about the various functions of this button? Some friends may not have noticed. Here, we briefly explain the meanings of the main options within this button. Figure 1 Explanation of the Programming Button in MPLAB XIDE The programming button is divided into … Read more

Practical Operations for Nested Structures and Unions in Embedded C Programming

Practical Operations for Nested Structures and Unions in Embedded C Programming

Content Structures and unions are composite types in the C language, and we often use structures. However, some beginners may not use unions frequently and may even feel unfamiliar with them. Let’s take a brief look at unions: The keyword for defining a union in C is union. The general form for defining a union … Read more

Essential Knowledge Summary for Embedded C Programming

Essential Knowledge Summary for Embedded C Programming

1. A pipeline can achieve maximum efficiency only when it is filled with instructions, meaning that one instruction is executed per clock cycle (this refers only to single-cycle instructions). If a jump occurs in the program, the pipeline will be cleared, and it will take several clock cycles to refill the pipeline. Therefore, minimizing the … Read more

Embedded Programming Standards from an Expert’s Perspective

Embedded Programming Standards from an Expert's Perspective

Content Hello everyone, I am Bug Jun! Today, I found a coding standard to share with you, which can help avoid many bugs~ “ Introduction: This article analyzes the embedded C coding standards shared by a foreigner on GitHub (recommended for careful reading): Embedded Mixed Bag.Keywords: Embedded, C Statements, Coding Standards ” Sharing the embedded … 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 insights from … Read more

Methods and Three Steps to Master Microcontroller Programming Design

Methods and Three Steps to Master Microcontroller Programming Design

Step 1: Learning Basic Theoretical KnowledgeBasic theoretical knowledge includes analog circuits, digital circuits, and C language knowledge. Analog and digital circuits are abstract subjects, and mastering them requires considerable effort. Before you start learning microcontrollers, if you feel your foundation in analog and digital circuits is weak, do not rush into learning microcontrollers; instead, review … Read more