(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Explore M3 Bare Metal]]
 
[[Category:Explore M3 Bare Metal]]
 
In this tutorial we will see how to blink the LED using the explore Embedded bare metal libraries.<br>
 
In this tutorial we will see how to blink the LED using the explore Embedded bare metal libraries.<br>
Please check the below link for detailed explanation on LPC1768 GPIO's configuration.<br>
+
The libraries can be used on different platforms like Keil, ARM GCC, GCC And Eclipse etc.<br><br>
[[LPC1768: Register Configuration(lpc17xx.h)|LPC1768 GPIO Configuration]]
+
 
<br><br><br>
+
  
=Project Setup=
+
=Prerequisites=
Check the below links to setup the project for generating the .bin file.
+
Please check [[LPC1768: Register Configuration(lpc17xx.h)|this tutorial]] for detailed explanation on lpc1768 Gpio configuration.<br>
 +
If you are doing it for the first time, then check the below links to setup the project for generating the .bin file.
 
#[[LPC1768: Keil Project For Bin File|Keil4 Setup]]  
 
#[[LPC1768: Keil Project For Bin File|Keil4 Setup]]  
 
#[[Setting Up Keil5 For ExploreM3|Keil5 Setup]]  
 
#[[Setting Up Keil5 For ExploreM3|Keil5 Setup]]  
Line 14: Line 14:
  
 
=Hardware Connection=
 
=Hardware Connection=
Similar to arduino the LED is connected to pin number 13.
+
ExploreM3 comes with on board led connected to pin 13.
 
<br><br><br>
 
<br><br><br>
  
 
=Code=
 
=Code=
Below is the sample code the blink the LED connected at pin 13.
+
Below is the sample code the blink the LED connected to pin 13.
 
<html>
 
<html>
 
<script src="https://gist.github.com/SaheblalBagwan/22b56f0eb7a4ccad41411b8fad0ad435.js"></script>
 
<script src="https://gist.github.com/SaheblalBagwan/22b56f0eb7a4ccad41411b8fad0ad435.js"></script>
 
</html>
 
</html>
 
+
<br><br>
 
+
[[File:Lpc1768 LED.gif]]
=Demo=
+
=Video Tutorial=
 +
<html>
 +
<div class="embed-responsive embed-responsive-16by9">
 +
    <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/8mFIKMPgMQY?list=PLRuRKN7_FVguJdF-riEXE542lVSJLhDk2"></iframe>
 +
</div>
 +
</html>

Latest revision as of 12:49, 15 June 2016

In this tutorial we will see how to blink the LED using the explore Embedded bare metal libraries.
The libraries can be used on different platforms like Keil, ARM GCC, GCC And Eclipse etc.


Prerequisites

Please check this tutorial for detailed explanation on lpc1768 Gpio configuration.
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

ExploreM3 comes with on board led connected to pin 13.


Code

Below is the sample code the blink the LED connected to pin 13.

Lpc1768 LED.gif

Video Tutorial