GPIO – ARM cortex M3

Use the blinky example as a starter for this lab

Part 1

Read the user button (PJ7) value and set the user led (PF3) appropriately

  • Enable Port J in the system control
  • Enable bit 7 in port J as digital input (you don’t need to set it as input – default value)
  • In a loop, read the value of the user switch and set the led

Part 2 – simple state machine

  • Start with a blinking LED
  • Change the blinking rate every button click – 1/0.5/0.25 sec