PROGRAMMABLE LOGIC PACKAGE
null Edition
ISBN: 9781260900620
Author: Petruzella
Publisher: MCG
expand_more
expand_more
format_list_bulleted
Question
Chapter 7, Problem 8RQ
Program Plan Intro
Timer:
- Timer is mainly used to keep an output ON for a specific length of time.
- It provides a preset delay to the control actions.
- In a timer, the output will be energized when the preset value becomes equal to the accumulated value.
- Three different types of timers include Delay-OFF timer, Delay-ON timer and Delay-ON-Retentive timer.
Timer On Delay (TON):
- TON refers to an on-delay timer.
- The on-delay timer is the most commonly used timer.
- TON counts the time-based intervals as soon as the instruction becomes true.
- Here, the output changes its state from low to high when the timer provides time delay (instruction goes from OFF to ON state).
Explanation of Solution
b.
Timer-timing bit of a timer instruction:
- When the accumulated value of a timer changes, the timer-timing bit becomes true.
- The accumulated value refers to the current delay of the timer.
- The timer instruction becomes true when the control line of the timer is energized by the power s...
Explanation of Solution
c.
Done bit of a timer:
- The accumulated value refers to the current delay of the timer.
- The preset value refers to the delay period of the timer...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
As figure shows, please filling the blank to finish the program to turn on the LEDSas following: “D0D2—D1D3—D4D6—D5D7—D0D2D4D6—D1D3D5D7—ALL ON—ALL OFF”, each state lasts 1 second, assuming the oscillator frequency is12MHz, timer1 and timer interrupt must be used.
What would cause the current instruction to be reset if there was a problem?
What would cause the current instruction to be reset if there was a malfunction?
Chapter 7 Solutions
PROGRAMMABLE LOGIC PACKAGE
Ch. 7 - Prob. 1RQCh. 7 - Prob. 2RQCh. 7 - Prob. 3RQCh. 7 - Prob. 4RQCh. 7 - a. What are the two methods commonly used to...Ch. 7 - Prob. 6RQCh. 7 - Prob. 7RQCh. 7 - Prob. 8RQCh. 7 - For a TOF timer: a. When is the enable bit of a...Ch. 7 - Explain what each of the following quantities...
Ch. 7 - State the method used to reset the accumulated...Ch. 7 - Study the ladder logic program in Figure 7-40 and...Ch. 7 - Study the ladder logic program in Figure 7-42, and...Ch. 7 - Prob. 6PCh. 7 - Prob. 7PCh. 7 - Prob. 8PCh. 7 - Prob. 9PCh. 7 - Prob. 10PCh. 7 - Prob. 11PCh. 7 - Prob. 13PCh. 7 - When the lights are turned off in a building, an...
Knowledge Booster
Similar questions
- What is Timer 0 reload value for 1 millisecond timer overflow interrupt interval, and what is the frequency of sound from the speaker if it is toggled at every interrupt?arrow_forward(a) Taking Timer_A as an example, please describe briefly how the capture and compare module works; (b) How many interrupt vectors and several interrupt sources for Timer_A, what is the correspondence between them?v.arrow_forwardWhich index register is used by the STOSD instruction?arrow_forward
- Select the specialized uses of the EFLAGS register. which is the correct answer? you can choose more than one correct answer. A) contains status and control flags B) each flag is a single binary bit C) includes the instruction pointer D) each flag contains 32 bitsarrow_forwardUsing Assembly language, write the instruction that adjusts the issue with the BCD addition?arrow_forwardWhen compared to the OFFSET operator, what advantages does the LEA instruction have?arrow_forward
- Which register is utilized as a counter by the LOOP instruction when it is executed in real-address mode?arrow_forwardAssume that an external clock signal is being fed into pin T0CKI. Write a program to useTimer0 in 16-bit mode to count the pulses and display the TMR0H and TMR0L registers onPORTB and PORTD, respectively (be sure to read the low register of the timer first). Startthe count at 0x0000 and stop the count at 0xFFFF+1. Use the MPLAB simulator to verifythe proper operation of the program. You may need to use the Watch window to view thecontents of TMR0H and TRM0L as it may not be obvious using the Logic Analyzer, that thecontents of TRM0H are incrementingarrow_forwardWhat is the minimum size of a register named 'counter' if you need to set it to 50,000,000 count? Number declaration in Verilog can be in any of the four number systems, namely, decimal, octal, binary, and hexadecimal. True False Assuming that your FPGA is connected to a 10MHz clock, what should be the maximum counter to set if you need a blinking interval of half second?arrow_forward
- 196. An interrupt occurs when the timer count reaches to a. 0 b. 1 c. 2 d. 3arrow_forwardEnter the decimal equivalent to output "res" value in the following Verilog code after three rising edge of the clock with dir = 1, followed by two rising edge of the clock with dir = 0. module TesQ (clk, dir, res);input wire clk, dir;output reg [7:0] res ;integer i; initial begin res = 8'b10000; end always @ (posedge clk) begin if (dir) begin res = res + 8'b101; end else begin res = res - 8'b11; end endendmodulearrow_forwardWhy would a fault return to the current instruction?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education