Question

a-Are internal interrupts peripheral interrupts? Explain and give examples in regardstothe PIC16F877A microcontroller. b-If the GIE...

a-Are internal interrupts peripheral interrupts? Explain and give examples in regardstothe PIC16F877A microcontroller.
b-If the GIE bit (Global Interrupt Enable) is not activated, can we still enable aninterrupt, and have it function properly? Explain.
c-Is there a restriction on the initialization value of the TMR0 register? Explain.

Homework Answers

Answer #1

A) Micro controllers are providing external and internal interrupts. Internal interrupts are occuring inside the microcontroller for performing a particular task.Examples for these types of interrupts are Timer interrupts(Timer0 and Timer1) ,A/D converter interrupts etc.In the case of these type of interrupts ,it is triggered by software.For example, timer interrupts are triggered by a software to complete the timer operation.Similarly in the case of A/D converter for completing analog to digital conversion one interrupt can be triggered. But in the case of external interrupts it is triggered by user.

B) There are various flags in INTCON Register like peripheral interrupt enable,external interrupt enable etc.Individual interrupts can be enabled or disabled through the individual enable bits in the INTCON register.

C ) Timer0 has software programmed clock source.It can be initialized through internal(timer mode) or external (counter mode)clock source.

Know the answer?
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
Similar Questions
Identify which of the following are examples of y as function of x, and give a...
Identify which of the following are examples of y as function of x, and give a brief explanation either analytically or graphically. For those that are not functions provide a specific value of x where two or more values of y can be assigned. a. 3x2-y=5 b. X2+y2=4 c. Y=5e-3x d. X=√Y-1
Identify which of the following are examples of y as function of x, and give a...
Identify which of the following are examples of y as function of x, and give a brief explanation either analytically or graphically. For those that are not functions, provide a specific value of x where two (or more) values of y can be assigned. a) 3x2-y=5 b) x2+y2=4 c) y=5e-3x d) x=square root y-1 e) sin y=x
The net present value, internal rate of return, and the profitability index methods can give different...
The net present value, internal rate of return, and the profitability index methods can give different rankings to mutually exclusive projects in certain cases. Which of the following is one of the possible reasons that causes contradictory rankings? A. Project lives of different durations B. Projects have similar costs C. Projects have a similar trend of cash flows D. Projects have different accounting rates of return
1) Explain the difference between: Array of characters like char c[] = {'A', 'B', 'C'}; AND...
1) Explain the difference between: Array of characters like char c[] = {'A', 'B', 'C'}; AND c-string like string = "ABC"; 2) We can have two pointers that point to one memory location such as: int *intPtr1, *intPtr2; intPtr1 = &x; intPtr2 = &x; a) What method we have to make sure only one pointer points to a variable? b) Give an example. 3) a) Can a pointer to a constant receive an address of a constant item and/or non-constant...
Problem Two: a. Derive or explain the condition for total internal reflection b. A beam of...
Problem Two: a. Derive or explain the condition for total internal reflection b. A beam of monochromatic light is put into a fiber optic cable. The fiber has index of refraction of 1.55 . It is surrounded by a “cladding” with index of refraction 1.36 and then an absorbing protective black layer. At what minimum angle of incidence is the light reflected back into the fiber ? c. We now have two ways to transmit digital information a distance of...
Problem 1 You are an internal audit manager in a central government department that pays subsidies...
Problem 1 You are an internal audit manager in a central government department that pays subsidies to agricultural businesses involved in the production of basic foodstuffs. You will soon be undertaking an internal audit of the claims processing unit in your department. In preparation for the assignment you are reviewing the audit file on the previous audit carried out three years earlier. You find the following extract from one of the previous internal audit’s planning schedules: • “The unit receives...
1. Explain and give examples of the 5 existing business model patterns. 2. Can the business...
1. Explain and give examples of the 5 existing business model patterns. 2. Can the business below use that business model pattern? Explain. Overview- We are going to start a bakery business as I have my interest in bakery. This is going to be start-up business plan. The name of our Bakery would be “Bake It or Make It”. It would be managed by me along with my team of new bakers around the city. Opening a bakery at initial...
1. The internal rate of return identifies: A. the minimum acceptable discount rate. B. the cost-benefit...
1. The internal rate of return identifies: A. the minimum acceptable discount rate. B. the cost-benefit ratio. C. the average profit from a project. D. none of the given answers. 2. The net present value rule states that you should accept a project if the NPV: A. is equal to zero or negative. B. exceeds the required rate. C. is less than 1.0. D. is positive. 3. A net present value of zero implies that an investment: A. has an...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following commands do: dd, y3, p, :set cindent (1 pt) VIM exercises These exercises on the computer need to be repeated by each student in the pair. This is to ensure that both students understand how to get around in Linux!!! For this part of the lab, you will create a .vimrc file that will help you develop your C++ programs using VIM. First, we...
1. Explain two main reasons why we need to study public finance 2. Distinguish between the...
1. Explain two main reasons why we need to study public finance 2. Distinguish between the “organic view” and “mechanistic view” of the existence of government 3. Explain the concept of market failure and discuss five reasons why there is market failure 4. What is meant by market failure? Identify and discuss four conditions under which the market fails to optimally allocate resources. 5. What is meant by the term government failure and explain five reasons why there may be...