Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For tot problem, list all reference used or students consulted (Use ECU 118 Coll

ID: 3841704 • Letter: F

Question

For tot problem, list all reference used or students consulted (Use ECU 118 Collaboration Policy on Blackboard) Turn this homework in digitally through Blackboard as a tingle PDF file. Feel free to either use a word processing system to create your PDF, write on the paper, and then scan or take a picture to create a PDF to turn into Blackboard. What is an interrupt? Briefly explain how the PIC16 responds to an interrupt. Write the interrupt vector tack code which will execute a subroutine called TMR0_ISR if the interrupt was caused by a time to overflow interrupt, execute a subroutine called TXU_ISR if the interrupt was caused by the USART transmit interrupt, and return from the interrupt if neither of these two interrupts caused the interrupt. What is the address of the first instruction of your interrupt vector table code? Write a complete initialization subroutine which will correctly set and PORT C2 and PORT as an input and PORT C7 as an output, as well as enabling the oscillator fail peripheral interrupt. What is the purpose of the Latch Register? Briefly explain how it works and when it is used. Write the configuration directives to sc*. CONF1G1 and CONF1G2 to the default settings discussed in lecture 15, but modify it to enable the software WDT, disable clock-out, enable reset on stack over/under-flow, and use the low power oscillator as the system dock. Lose hex for your answer, and make sure to show your work. Briefly explain what the Watchdog Timer is, and give an example of why a programmer night want to use it.

Explanation / Answer

1. When a Process is executed by the CPU and a user Request for another process then this will create disturbance for the Running Process. This is called as
the Interrupt. These can be generated by user, some error conditions and also by software’s and the hardware’s. It allows to respond to certain events by
interrupting the current running code. PIC16 micro controller handles interrupts originating both internally and externally. Whenever an interrupt occurs it responds
by following the sequence of events when the PIC16 recognizes an interrupt request and then understand the principle of latency.It have an understanding of the
concept of the global interrupt mask and at last it understands the operation of the local interrupt mask and flag pairs and how this is implemented in the INTCON
and EECON1 file registers corresponding to the various source of interrupts.

4. Latch register is used to stop the Read-Modify-Write "feature" when carrying out direct operations on the I/O ports.

6. It is a timing device that it is set for a preset time interval and an event must occur during that interval else the device will generate the timeout signal on failure to get
that event in the watched time interval. Let us consider an example:- Assume that we anticipate that a set of tasks must finish in 100 ms interval.
•The watchdog timer is disabled and stopped by the program instruction in case the tasks finish within 100 ms interval.
• In case task does not finish (not disabled by the program instruction), watchdog timer generates interrupts after 100 ms and executes a routine, which is
programmed to run because there is failure of finishing the task in anticipated interval.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote