Exercise 2: Toggle all 4 LEDs on the K60 Tower using the PIT0

Document created by peterurbanek on Mar 17, 2014Last modified by Adrian Puga Candelario on Jan 21, 2020
Version 4Show Document
  • View in full screen mode

To do:


Implement a program that lets the 4 LEDs on the Tower toggle all together using the PIT Interrupt.
For easy debugging, let the program run in the RAM.


* toggle period 0.5 s,

* extract vector table and service routines in 'vector.c.


Hint: Use the 'arm_cm4.c and 'arm_cm4.h' from the freescale kinetis homepage, which include access functions for the NVIC.

For ease of use, these routines are included in the result file.



Result: TWR_K60_PIT0.zip