In this tutorial we are going to discuss the Timer module of Explore M3.
LPC1768 has four 32-bit timers, We will use Timer0 and Timer1 to generate a delay of 100ms and 500ms for blinking the LEDs.


Prerequisites

Please check this tutorial for detailed explanation on inbuilt Lpc1768 RTC module.
If you are doing it for the first time, then check the below links to setup the project for generating the .bin file.

  1. Keil4 Setup
  2. Keil5 Setup
  3. ARM GCC Setup
  4. Eclipse & ARM GCC Setup




Hardware Connection

LEDs are Connected to pin 13 and 14.


Code

Below is the sample code to blink the LED's with 100ms and 500ms delay using timers.


Demo

Timer Delay measured using CRO. Lpc1768 Timers.png

00 Lpc1768 Timer.jpg