Frequency Measurement using TM4C123 Timers in Input-Edge Capture Mode

pulse duration and pulse width measurement using TM4C123 Timer in input edge capture mode

Almost all modern microcontrollers come with programmable general purpose timer modules. One of the important applications of GPTM is frequency measurement of analog and digital signals. In this tutorial, we will learn to measure the frequency using TM4C123 Timers in input edge time capture mode. In the last tutorial, we have learned to measure pulse … Read more

Timer Interrupt TM4C123 – Generate Delay with GPTM Interrupt Service Routine

Timer Interrupt TM4C123 Tiva C microcontroller

In this tutorial, we will discuss TM4C123 Timer interrupt programming ARM Cortex M4 microcontrollers. Firstly, we will discuss applications of timer interrupt with one example. We will use a TM4C123 Tiva C launchpad for demonstration purposes. It comes with a TM4C123GH6PM microcontroller. The general purpose timer module TimerA module will be configured and initialized to … Read more

Interrupt Processing ARM Cortex-M Microcontrollers

ARM Cortex M4 Interrupt vector table to relocate interrupt addresses

Interrupt processing in ARM Cortex-M microcontrollers is a critical aspect of how these devices manage real-time tasks efficiently. In this tutorial, we will discuss the sequences of steps that are performed by ARM Cortex M processor during interrupt processing. In other words, how ARM Cortex-M microcontroller handles interrupt or exceptions. Recommended Components The following components … Read more

ADC TM4C123G Tiva C Launchpad – Measure Analog Voltage Signal

Analog voltage measurement using TM4C123G Tiva C Launchpad microcontroller

In this tutorial, we will learn how to use the analog to digital module (ADC) of TM4C123GH6PM Microcontroller using TM4C123G Tiva C Launchpad. Firstly, we will learn to configure ADC modules and sample sequencer of TM4C123 using configuration registers. For demonstration purposes, we will measure analog voltage by using one of the analog input pins … Read more

UART Communication TM4C123 Tiva C LaunchPad with Example Codes

UART Port pins TM4C123 Tiva C launchpad

In this tutorial, we will learn to use the UART communication module of TM4C123GH6PM microcontroller by using TM4C123G Tiva LaunchPad. This tutorial will help you understand how TM4C123G MCUs communicate with external devices or with each other over UART based serial communication protocol. First, we will discuss the UART module of TM4C123GH6PM microcontroller and its … Read more

Nested Vectored Interrupt Controller (NVIC) ARM Cortex-M Microcontrollers

Nested vectored interrupt controller NVIC ARM CortexM microcontrollers

NVIC is an on-chip controller that provides fast and low latency response to interrupt-driven events in ARM Cortex-M MCUs. In this tutorial, We will explain the role of the nested vectored interrupt controller (NVIC) in interrupt handling requests of ARM Cortex-M microcontrollers. At the start, we will explain the exception and interrupt concepts that are … Read more

What is Interrupt Vector Table?

What is interrupt vector table

In this tutorial, we will talk about the interrupt vector table. Firstly, we will define the interrupt vector table (IVT). Secondly, we will see the role of IVT for interrupts and exceptions processing in microcontrollers or microprocessors. After that, we will see the interrupt vector table of TM4C123G ARM Cortex M4 microcontroller.  Almost all modern … Read more

Systick Timer Interrupt Programming TM4C123 ARM Cortex M4

systick timer interrupt tm4c123 arm cortex m4

In this tutorial, we will learn how to generate a delay with a systick timer interrupt of TM4C123 microcontroller. We will toggle an LED with a delay of 1 second using the interrupt service routine of the systick timer handler function. In the last tutorial, we have discussed the in-depth introduction of the systick timer … Read more

Accessing Memory Mapped Peripherals Registers of Microcontrollers

TMC4C123G ARM Cortex M4 Microcontroller Peripheral memory region

In this tutorial, you will learn how to access memory mapped peripheral registers of microcontroller through their memory addresses. We will see applications of pointers in embedded systems programming and what is the role of pointers in embedded software architecture development. Furthermore, we will see how to use pointers to access (read and write) memory … Read more