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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

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

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

Tags (3)
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1099397%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExercise%202%3A%20Toggle%20all%204%20LEDs%20on%20the%20K60%20Tower%20using%20the%20PIT0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1099397%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ETo%20do%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EImplement%20a%20program%20that%20lets%20the%204%20LEDs%20on%20the%20Tower%20toggle%20all%20together%20using%20the%20PIT%20Interrupt.%3CBR%20%2F%3EFor%20easy%20debugging%2C%20let%20the%20program%20run%20in%20the%20RAM.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E*%20toggle%20period%200.5%20s%2C%3C%2FP%3E%3CP%3E*%20extract%20vector%20table%20and%20service%20routines%20in%20'vector.c.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EHint%3A%20Use%20the%20'arm_cm4.c%20and%20'arm_cm4.h'%20from%20the%20freescale%20kinetis%20homepage%2C%20which%20include%20access%20functions%20for%20the%20NVIC.%3C%2FP%3E%3CP%3EFor%20ease%20of%20use%2C%20these%20routines%20are%20included%20in%20the%20result%20file.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EResult%3A%20TWR_K60_PIT0.zip%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎03-17-2014 08:33 AM
Updated by: