Exercise 1: Walking LEDs on the K60 Tower

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

Exercise 1: Walking LEDs on the K60 Tower

Exercise 1: Walking LEDs on the K60 Tower

To do:

Implement a program that lets the 4 LEDs on the Tower walk like this:

* a single LED from left to right,

* then the two left ones, the two right ones,

* the two outside and at least the two LEDs in the middle.

For easy observing write a wait routine, called 'delay (unsigned int ms)', of about 1 second without using any library functions. The processor will start with the standard frequency of 20...25 MHz. Estimate the time, that a loop needs to realize the time.

Hint: Do not forget to stop the Watchdog Module at the beginning.

Result:TWR_K60_Lauflicht.zip  including a readme with the compiler options

Tags (1)
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1112620%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExercise%201%3A%20Walking%20LEDs%20on%20the%20K60%20Tower%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112620%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%20walk%20like%20this%3A%3C%2FP%3E%3CP%3E*%20a%20single%20LED%20from%20left%20to%20right%2C%3C%2FP%3E%3CP%3E*%20then%20the%20two%20left%20ones%2C%20the%20two%20right%20ones%2C%3C%2FP%3E%3CP%3E*%20the%20two%20outside%20and%20at%20least%20the%20two%20LEDs%20in%20the%20middle.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EFor%20easy%20observing%20write%20a%20wait%20routine%2C%20called%20'delay%20(unsigned%20int%20ms)'%2C%20of%20about%201%20second%20without%20using%20any%20library%20functions.%20The%20processor%20will%20start%20with%20the%20standard%20frequency%20of%2020...25%20MHz.%20Estimate%20the%20time%2C%20that%20a%20loop%20needs%20to%20realize%20the%20time.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EHint%3A%20Do%20not%20forget%20to%20stop%20the%20Watchdog%20Module%20at%20the%20beginning.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EResult%3ATWR_K60_Lauflicht.zip%26nbsp%3B%20including%20a%20readme%20with%20the%20compiler%20options%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎03-17-2014 08:08 AM
Updated by: