Difference between revisions of "Timers On Explore M3"
(Created page with "Category:Explore M3 Bare Metal In this tutorial we are going to discuss the Timer module of Explore M3.<br> LPC1768 has four 32-bit timers, We will use Timer0 and Timer1 t...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Explore M3 Bare Metal]] | [[Category:Explore M3 Bare Metal]] | ||
In this tutorial we are going to discuss the Timer module of Explore M3.<br> | In this tutorial we are going to discuss the Timer module of Explore M3.<br> | ||
− | LPC1768 has four 32-bit timers, We will use Timer0 and Timer1 to generate a delay of 100ms | + | LPC1768 has four 32-bit timers, We will use Timer0 and Timer1 to generate a delay of 100ms and 500ms for blinking the LEDs. |
<br><br><br> | <br><br><br> | ||
Line 15: | Line 15: | ||
=Hardware Connection= | =Hardware Connection= | ||
− | LEDs are Connected to | + | LEDs are Connected to pin 13 and 14.<br><br><br> |
=Code= | =Code= |
Latest revision as of 15:42, 29 April 2016
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.
Contents
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.
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.