Exercise 1: Walking LEDs on the K60 Tower

Document created by peterurbanek on Mar 17, 2014Last modified by peterurbanek on Sep 8, 2015
Version 2Show Document
  • View in full screen mode

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

Attachments

Outcomes