Generate Delay with Raspberry Pi Pico Timers using MicroPython

Generate Delay with Raspberry Pi Pico Timers using MicroPython

In this tutorial, we learn to use the system timer peripheral of Raspberry Pi Pico. As we mentioned earlier, This development board comes with RP2040’s microcontrollers. This RP2040 MCU has a system timer peripheral that provides a global microsecond timebase and generates interrupts for it. In this tutorial, we will focus learn to configure Raspberry … Read more

STM32 Nucleo Timer in Counter Mode with STM32CubeIDE and HAL Libraries

STM32 Nucleo Timer in Counter Mode with STM32Cube IDE and HAL Libraries

In this user guide, we will discuss how to configure STM32 Nucleo timer module in counter mode. To use the timer as a counter, we will configure it in input-edge counter mode. In input edge capture counter mode, timers of stm32 start to count whenever an external event occurs on the input edge capture GPIO … Read more

STM32 Blue Pill Timer in PWM Mode with LED Dimmer Example

STM32 Blue Pill Timer PWM Mode with LED Dimmer Example

In this tutorial, we will learn to use STM32 Blue Pill timer PWM mode and how to configure them to generate signals with different duty cycle and frequency. We will use an LED dimmer example to demonstrate how to setup the timer in PWM mode using STM32Cube IDE and HAL libraries along with a comprehensive … Read more

STM32 Blue Pill Timer in Counter Mode with STM32Cube IDE and HAL Libraries

STM32 Blue Pill Timer in Counter Mode with STM32Cube IDE and HAL Libraries

In this user guide, we will discuss how to configure STM32 Blue Pill timer module in counter mode. To use the timer as a counter, we will configure it in input-edge counter mode. In input edge capture counter mode, timers of stm32 start to count whenever an external event occurs on the input-edge capture GPIO … Read more

STM32 Blue Pill Timer Encoder Mode with Rotary Encoder Example

STM32 Blue Pill Timer Encoder Mode with Rotary Encoder Example

In this Blue Pill tutorial, we will discuss how to configure STM32 timer module in encoder mode. We will use a rotary encoder to demonstrate that how to read the encoder ticks using STM32Cube IDE and HAL libraries. In the first example, we will display encoder ticks on a serial terminal, and in the second … Read more

STM32 Blue Pill Timer Input Capture Mode with Frequency Measurement Example

STM32 Blue Pill Timer Input Capture Mode with Frequency Measurement Example

In this STM32 Blue Pill user guide, we will discuss how to configure timer module in input capture mode to measure the frequency of an input signal. We will program our STM32 Blue Pill in STM32 Cube IDE and build a frequency counter whereby one input capture channel will be enabled to capture an external … Read more

STM32 Blue Pill Timer Interrupt with STM32Cube IDE and HAL Libraries

STM32 Blue Pill Timer Interrupt with STM32Cube IDE and HAL Libraries

In this STM32 Blue Pill tutorial, we will learn how to configure and handle timer interrupts using HAL Library in STM32Cube IDE. We will demonstrate this through an example by toggling an LED after a set number of time. Timer interrupts in STM32 pause the sequential execution of a program loop() function for a predefined … Read more

Arduino Timer Interrupts – Explained with Timer1 and Timer2 Examples

Arduino UNO LED blink time interrupts

Interrupts are used to handle events that do not happen during the sequential execution of a program. There are two types of interrupts for the Arduino microcontroller. Hardware or external interrupt and Timer interrupt. In a previous tutorial, we looked at Arduino external interrupt where the interrupt was caused by is caused by the external … Read more

ESP8266 Interrupts and Timers Arduino IDE – PIR Motion Sensor Example

detect motion ESP8266 interrupts and timers

In this tutorial, we will learn to use interrupts and timers of ESP8266 NodeMCU using Arduino IDE. By using ESP8266 interrupt, we will be able to detect changes on GPIO pins without the need to continuously poll GPIO pins. Whenever an interrupt occurs, we can execute a certain function that should execute on state change … Read more

8051 Microcontroller Timers: How to Generate Delay Example

8051 timers calculations

In this tutorial, we will learn how to use timers on the 8051 microcontroller to generate a delay. The 8051 microcontroller has two 16-bit built-in timers. We can program each timer individually and configure them as either timers (to generate time delays) or counters (to count events occurring outside the microcontroller). The 8051 timer has … Read more