GPIO - LED and Switch Interface

Objective

The objective of the assignment is to access microcontroller's port-pins to manipulate LEDs that are connected to a few on-board LEDs of the SJ2 board.

Please reference this article for good hints related to this assignment.

 


Part 0:

In this part, we will setup basic skeleton of the code before we access the memory map to manipulate an LED.

 


Part 1:

In this part, we will actually reference the LPC user manual and manipulate one of the on-board LEDs.

You can refer Chapter 8 - Table 94 of the user manual.

 


Part 2:

In this part, we will use the LPC memory map to manipulate the on-board LEDs. This will reduce us from cross referencing the LPC user manual.

 Use LPC40xx MCU Memory Map as reference


Part 3:

Create a comprehensive GPIO driver and manipulate the on-board LED's using the on-board switches. You could use PART1: GPIO Driver as reference.


Extra Credit:

Do something creative with your implemented GPIO driver.  You could have the LED blink three times when the switch is pressed.


 

Go above and beyond

Want to have even more fun and experience multi-tasking functionality of your board's software package? Then follow this link:

Back to top