Question

A high-speed machine requires the number of parts to be counted before changing the dies for the next part. The number o...

A high-speed machine requires the number of parts to be counted before changing the dies for the next part. The number of parts is 83,200. Construct a counter program that will operate a buzzer and stop the process when the number of parts is reached. [Note: Make sure that you use values which are not out of range.]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

I m writing the program for assembly level language of 8051

ORG 0000H

MOV R1,#2

RPT: MOV TMOD,#15H ;TIMER 1 AS TIMER AND TIMER 0 AS COUNTER

SETB P3.4 ;MAKE IT AS AN INPUT PORT

AGN: MOV TL0,#00H ;SET VALUES

MOV TH0,#00H

SETB TR0 ;START COUNTER

    MOV R0,#28 ;TAKING THE TIME INTERVAL OF 1 SEC

AGAIN: MOV TL1 ,#00H

MOV TH1,#00H

SETB TR1 ;START THE TIMER

BACK: JNB TF1 ,BACK

CLR TF1

CLR TR1

DJNZ R0,AGAIN

MOV A,TL0

MOV P2,A

MOV A,TH0

MOV P1,A

CJNE TL0,#80H,HERE

CJNE TH0,#A2H,HERE1

DJNZ R1, AGN

SETB P3.7 ;BUZZER

CLR P3.4 ;STOP THE MACHINE

HERE: SJMP RPT

HERE1:SJMP RPT

Add a comment
Know the answer?
Add Answer to:
A high-speed machine requires the number of parts to be counted before changing the dies for the next part. The number o...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • All Ladder Logic and connection diagrams should be valid for the OMRON CP1L-M30DT PLC A high-speed machine requires the...

    All Ladder Logic and connection diagrams should be valid for the OMRON CP1L-M30DT PLC A high-speed machine requires the number of parts to be counted before changing the dies for the next part. The number of parts is 83,200. Construct a counter program that will operate a buzzer and stop the process when the number of parts is reached. [Note: Make sure that you use values which are not out of range.]

  • Resistors for electronic circuits are manufactured on a high-speed automated machine. The machine is set up...

    Resistors for electronic circuits are manufactured on a high-speed automated machine. The machine is set up to produce a large run of resistors of 1,000 ohms each. Use Exhibit 10.13 To set up the machine and to create a control chart to be used throughout the run, 15 samples were taken with four resistors in each sample. The complete list of samples and their measured values are as follows: Use three-sigma control limits. SAMPLE NUMBER NOEM READINGS (IN OHMS) 1000...

  • Resistors for electronic circuits are manufactured on a high-speed automated machine. The machine is set up...

    Resistors for electronic circuits are manufactured on a high-speed automated machine. The machine is set up to produce a large run of resistors of 1,000 ohms each. Use Exhibit 10.13. To set up the machine and to create a control chart to be used throughout the run, 15 samples were taken with four resistors in each sample. The complete list of samples and their measured values are as follows: Use three-sigma control limits. a. Calculate the mean and range for...

  • Resistors for electronic circuits are manufactured on a high-speed automated machine. The machine is set up...

    Resistors for electronic circuits are manufactured on a high-speed automated machine. The machine is set up to produce a large run of resistors of 1,000 ohms each. Use Exhibit 10.13.      To set up the machine and to create a control chart to be used throughout the run, 15 samples were taken with four resistors in each sample. The complete list of samples and their measured values are as follows: Use three-sigma control limits. SAMPLE NUMBER READINGS (IN OHMS) 1 1000...

  • Resistors for electronic circuits are manufactured on a high-speed automated machine. The machine is set up...

    Resistors for electronic circuits are manufactured on a high-speed automated machine. The machine is set up to produce a large run of resistors of 1,000 ohms each. Use Exhibit 10.13. To set up the machine and to create a control chart to be used throughout the run, 15 samples were taken with four resistors in each sample. The complete list of samples and their measured values are as follows: Use three-sigma control limits. SAMPLE NUMBER READINGS (IN OHMS) 1 992...

  • Problem 10-25 Resistors for electronic circuits are manufactured on a high-speed automated machine. The machine is...

    Problem 10-25 Resistors for electronic circuits are manufactured on a high-speed automated machine. The machine is set up to produce a large run of resistors of 1,000 ohms each. Use Exhibit 10.13 To set up the machine and to create a control chart to be used throughout the run, 15 samples were taken with four resistors in each sample. The complete list of samples and their measured values are as follows: Use three-sigma control limits. SAMPLE NUMBER 1 2 3...

  • Problem 10-25 Resistors for electronic circuits are manufactured on a high-speed automated machin...

    Problem 10-25 Resistors for electronic circuits are manufactured on a high-speed automated machine. The machine is set up to produce a large run of resistors of 1,000 ohms each. Use Exhibit 10.13. To set up the machine and to create a control chart to be used throughout the run, 15 samples were taken with four resistors in each sample. The complete list of samples and their measured values are as follows: Use three-sigma control limits READINGS (IN OHMS) 1014 1019...

  • Python 3 coding with AWS/IDLE. DDI&T a Python program to input, store, and process hourly temperatures for each hour...

    Python 3 coding with AWS/IDLE. DDI&T a Python program to input, store, and process hourly temperatures for each hour of the day (i.e., 24 temperatures). Your program should be divided logically into the following parts: In function main() declare an empty List container:          HourlyTemperatures = []     Pass the empty HourlyTemperatures list to a function, GetTemperatures(HourlyTemperatures)          This function must interactively prompt for and input temperatures for each of the 24 hours in a day (0 through 23). For each temperature that...

  • Part 1: Goal Seek Pampa Parts produces a single product, the NF-9. The product has a...

    Part 1: Goal Seek Pampa Parts produces a single product, the NF-9. The product has a unit variable cost of $70 and annual fixed costs of $343,200. Pampa is subject to a 20 percent tax rate. Suppose the NF-0 sells for $110 per unit. Using the Goal Seek function in Microsoft Excel, how many units of NF-9 must Pampa sell to earn an annual operating profit after taxes of $38,400? Now, suppose Pampa expects to sell 8,150 units of NF-9...

  • Question2 uses structured design implemented in C. Array of records (structs) with file I/O is needed....

    Question2 uses structured design implemented in C. Array of records (structs) with file I/O is needed. The program takes two inputs at a time. The name of a person, and, the coin value as an integer in the range 5 to 95. Input coin values should always be divisible by 5 (integer division). Names are one word strings. An example input is: Jane 30 This input line indicates that 30 cents change is to be given to Jane. Output change...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT