TM4C123 Timer as a Counter in Input-Edge Count Mode – RPM Measurement Example

Tachometer using TM4C123 Timer as a counter in input capture mode

In this tutorial, we will design an RPM or tachometer using TM4C123 timers as a counter. To use the TM4C123 timer as a counter, we will configure it in input-edge counter mode. In input edge capture counter mode, timers of TM4C123 microcontroller start to count whenever an external event occurs on the input-edge capture GPIO … Read more

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

TM4C123 Timer in Input Edge Time Mode – Pulse Duration Measurement

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

This tutorial is on pulse width or pulse duration measurement using TM4C123 microcontroller programmable Timer block. In this tutorial, we will use the basic Timer block in input edge time mode to capture rising and falling edges of pulses. For demonstration purposes, we will provide a pulse signal to one of the capture pins of … 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

MPU6050 Gyroscope Accelerometer sensor interfacing with TM4C123G Tiva C Launchpad

MPU6050 Interfacing with TM4C123G Tiva C Launchpad and PC

In this tutorial, we will learn to interface MPU6050 gyroscope and accelerometer sensor with TM4C123G Tiva C microcontroller. MPU6050 sensor module has 6-axis motion tracking sensors integrated inside the single-chip such as 3-axis measurement for gyroscope and 3-axis measurement for acceleration. Hence, we can use this sensor to measure acceleration, velocity, displacement, and many other … Read more

UART Interrupt TM4C123G Tiva C LaunchPad – ARM Cortex M4

UART interrupt TM4C123 Tiva C launchpad

In the last tutorial, we learned to use UART communication modules of TM4C123G Tiva C Launchpad. We have seen a demo to transmit and receive data between the computer and TM4C123G Tiva C on UART5 port using a busy-wait or polling method. In this tutorial, we will see how to make the UART receiver port … Read more