Once you have successfully compiled the C program, it creates an executable file. You execute/run the program. The question arises is “How does this program gets run on the target?”. Target can be both a Microprocessor or Microcontroller. In order to understand this, we need to first understand little bit about the Central Processing UnitContinue reading “Execution of a C Program”
Tag Archives: embeddedforall
Dissecting a Simple C Program
What constitutes a simple C program? Let’s understand bit more in detail. Comments Comment is not actually part of the program code, in that it is not telling the computer to do anything. It is simply a comment, and it is there to remind you, or someone else reading your code, what the program does.Continue reading “Dissecting a Simple C Program”
Creating C Programs
There are three fundamental stages, or processes, in the creation of any C program: Editing Editing is the process of creating and modifying C source code — the name given to the program instructions you write. You can use any integrated development environment (IDE) such as Eclipse or Visual Studio Code for writing, managing, developing,Continue reading “Creating C Programs”
Why learning C is important for Embedded Systems?
Learning C is particularly important for embedded systems for several compelling reasons: In conclusion, learning C is crucial for embedded systems development because it provides the necessary tools to interact with hardware, optimize code for limited resources, and meet the real-time requirements often associated with embedded applications. Whether you’re working on IoT devices, microcontrollers, orContinue reading “Why learning C is important for Embedded Systems?”
Introduction to ARM Architecture
After getting to know different microcontroller architectures, its time to explore the ARM architecture as we are going to use STM32 microcontroller in this course which is of ARM architecture. ARM (Advanced RISC Machines) is a family of processor architectures developed by ARM. It is one of the most widely used and popular processor architecturesContinue reading ” Introduction to ARM Architecture”
Debouncing considerations when reading input from switch
Mechanical switches and buttons can have bouncing or chatter when they are pressed or released. During this time, the electrical contacts inside the switch make and break contact rapidly before settling into a stable state. This bouncing can generate multiple pulses or transitions in a short period.
Debouncing is an essential consideration when reading digital input from switches, buttons, or other mechanical contacts in embedded systems or digital circuits. Failing to debounce inputs properly can lead to erratic behavior and false readings.
Project 1.2: Read status of push button switch and write to LED (on/off) on STM32F407G-DISC1 Board
In this sub-project we are going to:
Read the status(on/off) of push button switch
Reflect the status of the switch to the LED on STM32F407G-DISC1 Board.
Upon completion of this project, you will learn.
To identify the Correct GPIO pin connect to the push button switch
How push button switch is connected to Microcontroller.
To refer datasheet and user manual when required.
To work with GPIO registers.
To work with C programming.
Project 1.1: Controlling LED on the STM32F407G-DISC1 Board
In this sub-project we are going to control one of the LEDs present on STM32F407G-DISC1 Board.
Upon completion of this project, you will learn.
To identify the Correct GPIO pin connect to the LED
How LED is connected to Microcontroller.
To refer datasheet and user manual when required.
What is Hardware Abstraction.
To work with GPIO registers.
To work with C programming.
Exploring General-Purpose Input/Output (GPIO) pins on the STM32F407VGT6 microcontroller
GPIO (General-Purpose Input/Output) pins are an essential feature of microcontrollers like the STM32F407VGT6, allowing you to interface with various external devices and circuits. Here’s an overview of the GPIO pins on the STM32F407VGT6: When we work with GPIO pins for controlling LEDs and read Switch status on the 3_STM32F407G-DISC1 Board we will refer to theContinue reading “Exploring General-Purpose Input/Output (GPIO) pins on the STM32F407VGT6 microcontroller”
Why LED blinking is so important in embedded systems?
Why LED blinking is so important in embedded systems?
LED blinking is a fundamental and essential project in embedded systems for several reasons: