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

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

Use Push Button to Control LED with TM4C123G Tiva LaunchPad

Push button interfacing with tiva launchPad

In this tutorial, we will learn how to use general purpose input-output pins of TM4C123 as a digital input pins. For demo, we will see how to control and LED with on-board Push buttons of TM4C123G TIVA launchpad. Firstly, you should know how to use GPIO pins of TM4C123G6PM microcontroller as digital output pins. In … Read more