Exercise 4: Kinetis Random Number Generator

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Exercise 4: Kinetis Random Number Generator

Exercise 4: Kinetis Random Number Generator

To do:

The development platform is Eclipse. The EVAL Board is the Kinetis Tower TWR K60. On the Tower, you find 2 pushbuttons and 4 LEDs.

a) Generate a hexadecimal random number from 0x0 to 0xF as long as pushbutton1 is pressed. Display the result with the 4 LEDs for about 3 seconds.

b) Replace the code for recognizing a pressed key by a macro "KEY1_PRESSED".

c) Replace the access to the 4 LEDs by a macro "LEDx_TOGGLE" with x = 0...3".

Use active wait loops instead of the timer in this Kinetis exercise.

Result: TWR_K60_RANDOM.zip

附件
无评分
版本历史
最后更新:
‎05-14-2014 08:21 AM
更新人: