About Closed Microcontrollers (ACM)

Case study

Create a closed control program on the Z80 (Zilog80) microprocessor program as follows:

1. Port A LED display will count up if, S1 is pressed / ON and port A LED display will stop if S0 is pressed / OFF.

2. Closed control program to display the up and down relationship on port A:

  • If S0 and S1 = off, the LED on port A stops counting.
  • If S0=0, and S1=0, the LED on port A counts up.
  • If S0=0, S1=1, the LED on port A counts down.

Solution 1


Closed Control Program

Solution 2


Flow Chart Program Control

Information:

  • S0 = 1, up
  • S0 = 0, stop
  • S1 = 1, down
  • S1 = 0, stop

Post a Comment

Previous Next

نموذج الاتصال