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

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

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

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