漢諾塔!!!
Simulate the movement of the Towers of Hanoi puzzle Bonus is possible for using animation
eg. if n = 2 A→B A→C B→C
if n = 3 A→C A→B C→B A→C B→A B→C A→C
A design about 8051 (running at 12MHz) based system with 3 7-Seg displays and two buttons to implement the following functions.
1. When press the + button, the display C = A+B.
2. When press the button, the display C = A - B.
“A” and “B” are 8-bit inputs when “C” is 9-bit output.