Question: number 2&3&5 only For each problem, list all references used or students consulted (see ECE 118 Collaboration Policy on Blackboard) Turn this homework in digitally
number 2&3&5 only
For each problem, list all references used or students consulted (see ECE 118 Collaboration Policy on Blackboard) Turn this homework in digitally through Blackboard as a singlePDFfile. 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 aPDFto turn into Blackboard. What is an interrupt? Briefly explain how the PIC16 responds to an interrupt. Write the interrupt vector table code which will execute a subroutine called TMR0_ISR if the interrupt was caused by a timer0 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 initialize PORT C2 and PORT C1 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 set CONFIG1 and CONFIG2 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 clock. Use 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 might want to use it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
