Exercise 3: Toggle all 4 LEDs on the K60 Tower using the PIT0 as ROM version

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

Exercise 3: Toggle all 4 LEDs on the K60 Tower using the PIT0 as ROM version

Exercise 3: Toggle all 4 LEDs on the K60 Tower using the PIT0 as ROM version

To do:

Implement a program that lets the 4 LEDs on the Tower toggle all together using the PIT Interrupt.

This time, let the program run in the Flash.

* toggle period 0.5 s

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

* Change the linker command file 'ldscript_flash'

* Take care of the 16 Byte security settings from $400-$410 in the Flash. Do not overwrite!!!

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_Flash.zip

Tags (3)
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1120297%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExercise%203%3A%20Toggle%20all%204%20LEDs%20on%20the%20K60%20Tower%20using%20the%20PIT0%20as%20ROM%20version%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1120297%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.%3C%2FP%3E%3CP%3EThis%20time%2C%20let%20the%20program%20run%20in%20the%20Flash.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E*%20toggle%20period%200.5%20s%3C%2FP%3E%3CP%3E*%20extract%20vector%20table%20and%20service%20routines%20in%20'vector.c'%3C%2FP%3E%3CP%3E*%20Change%20the%20linker%20command%20file%20'ldscript_flash'%3C%2FP%3E%3CP%3E*%20Take%20care%20of%20the%2016%20Byte%20security%20settings%20from%20%24400-%24410%20in%20the%20Flash.%20Do%20not%20overwrite!!!%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%3EResult%3A%20TWR_K60_PIT0_Flash.zip%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎03-17-2014 08:45 AM
Updated by: