Question: 8051 Microcontroller - Assembly Language (based on the textbook - The 8051 Microcontroller A Systems Approach Mazidi McKinlay Mazidi First Edition) 3. An engineer wants
8051 Microcontroller - Assembly Language (based on the textbook - The 8051 Microcontroller A Systems Approach Mazidi McKinlay Mazidi First Edition)

3. An engineer wants a system that can count the number of bottles passing a check point in the manufacturing plant. The packaging system counts the number of bottles to be packaged and give indications about the status of the package. If the number of bottles is les 12, the grade is incomplete and RED LED must be on. If the number of bottles is 12, the grade is full and the Green LED must be ON. If the bottles are more than 12, Both LEDs must ne on to indicate the. The system operation is defined the truth table below. Write a program that will execute this truth table to archive the packaging operation in the plant. Trigger Comment P2.0 = 1 Condition Bottles from P1 = 12 Bottles from PI 10 Grade complete Grade Not complete P2.1 = 1 P2.2 = 1 Bottle overflow [10 Marks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
