Line 1: Line 1:
 
[[Category:Explore M3 Bare Metal]]
 
[[Category:Explore M3 Bare Metal]]
 +
In this tutorial we will see how to generate the PWM signals on Explore M3.<br>
  
 
[[File:0_LPC1768_PWM.gif]]
 
[[File:0_LPC1768_PWM.gif]]
 +
 +
=Prerequisites=
 +
Please check [[LPC1768: UART Programming|this tutorial]] for detailed explanation on Lpc1768 inbuilt UART module.<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]]
 +
#[[Setting Up Keil5 For ExploreM3|Keil5 Setup]]
 +
#[[Setting Up ARM GCC For ExploreM3 LPC1768|ARM GCC Setup]]
 +
#[[Setting Up ARM GCC And Eclipse For ExploreM3 LPC1768|Eclipse & ARM GCC Setup]]
 +
<br><br>
 +
 +
=Explore M3 PWM Module=
 +
Explore M3 has 6 PWM output pins(24-29) which are mapped to internal PWM module as shown below.
 +
 +
{| class="table table-striped table-hover table-condensed table-bordered"
 +
|-class="info"
 +
!Explore M3 Pin || LPC1768 Pin || PWM Channel
 +
|-
 +
|29 || P2.0  || PWM1[1]
 +
|-                                                                         
 +
|28 || P2.1  || PWM1[2]
 +
|-                                                                                       
 +
|27 || P2.2  || PWM1[3]
 +
|-                                                                         
 +
|26 || P2.3  || PWM1[4]
 +
|-                                                                                       
 +
|25 || P2.4  || PWM1[5]
 +
|-                                                                         
 +
|24 || P2.5  || PWM1[6]
 +
|}<br><br><br><br>
 +
 +
=Code=

Revision as of 11:55, 29 April 2016

In this tutorial we will see how to generate the PWM signals on Explore M3.

0 LPC1768 PWM.gif

Prerequisites

Please check this tutorial for detailed explanation on Lpc1768 inbuilt UART 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



Explore M3 PWM Module

Explore M3 has 6 PWM output pins(24-29) which are mapped to internal PWM module as shown below.

Explore M3 Pin LPC1768 Pin PWM Channel
29 P2.0 PWM1[1]
28 P2.1 PWM1[2]
27 P2.2 PWM1[3]
26 P2.3 PWM1[4]
25 P2.4 PWM1[5]
24 P2.5 PWM1[6]




Code