MC5000_DevKit

An hardware puzzle that teaches the basics of programming.

View on GitHub

home « prev level next level »

Level 2

Our sales guy did not pay attention when talking to Blinky Inc. - they want the LED to blink only if a button is pressed. Please change the code!

Specification

Help

Cable connections
  • MCU1_P0 -> Green LED
  • MCU1_P1 -> Button 1

Hints
  • Use the TEQ instruction

Solution

MCU1

teq p1 100
+ mov 100 p0
+ slp 5
+ mov 0 p0
slp 5