Activities Manual For Programmable Logic Controllers
Activities Manual For Programmable Logic Controllers
5th Edition
ISBN: 9781259682476
Author: Frank Petruzella
Publisher: Mcgraw-hill Higher Education (us)
Question
Book Icon
Chapter 3, Problem 2P
Program Plan Intro

a.

Converting decimal numbers to binary numbers:

  • It is given that an encoder circuit is used for converting decimal numbers into binary numbers.
  • The output status of the encoder is stated as HIGH and LOW.

The truth table for the given encoder circuit is shown below.

Decimal numbersDCBA
0LLLL
1LLLH
2LLHL
3LLHH
4LHLL
5LHLH
6LHHL
7LHHH
8HLLL
9HLLH

Explanation of Solution

b.

Output status when 5 is pressed:

  • Consider that the decimal number 5 is pressed on the keyboard.
  • From the table given above, the corresponding encoded output to decimal number 5 is given below.

Explanation of Solution

c.

Output status when 7 is pressed:

  • Consider that the decimal number 7 is pressed on the keyboard.
  • From the table given above, the corresponding encoded output to decimal number 7 is given below.

Explanation of Solution

d.

Output status when 8 is pressed:

  • Consider that the decimal number 8 is pressed on the keyboard.
  • From the table given above, the corresponding encoded output to decimal number 8 is given below.

Blurred answer
Students have asked these similar questions
In 32-bit MSAM, You were given the following negative array. write a program that converts each array element to its positive representation. Then add all these array elements and assign them to the dl register. .data    myarr sbyte -5, -6, -7, -4.code     ; Write the rest of the program and paste the fully working code in the space below.   the dl register should have the value 22 after summing up all elements in the array.
Microprocessor 8085 Lab Experiment Experiment No. 3 Logical Instructions Write programs with effects 1. B=(2Dh XOR D/2) - (E AND 2Eh+1) when E=53, D=1Dh 2. HL= (BC+HL) XOR DE (use register pair when necessary), when BC=247, HL 516, DE 12Ach 3. Reset bits 1,4,6 of A and set bits 3,5 when A=03BH Write all as table (address line.hexacode,opcede,operant.comment with flags)
In 32-bit MASM, Assume your grocery store sells three types of fruits. Apples, Oranges, and Mangos. Following are the sale numbers for the week (7 days).dataapples   dword 42, 47, 52, 63, 74, 34, 73oranges dword 78, 53, 86, 26, 46, 51, 60mangos dword 30, 39, 41, 70, 75, 84, 29Using a single LOOP instruction, write a program to add elements in all these three arrays. Then assign the total result into the eax register. The eax register should have the value 1153 after a successful execution.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
CompTIA Linux+ Guide to Linux Certification (Mind...
Computer Science
ISBN:9781305107168
Author:Jason Eckert
Publisher:Cengage Learning
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
A+ Guide to Hardware (Standalone Book) (MindTap C...
Computer Science
ISBN:9781305266452
Author:Jean Andrews
Publisher:Cengage Learning