Answered step by step
Verified Expert Solution
Question
1 Approved Answer
embedend 17. soru (7.00 puan) The following program performs a counter on PortA using the external interrupt source INT/RBO. The counter counts as follows: 0,
embedend
17. soru (7.00 puan) The following program performs a counter on PortA using the external interrupt source INT/RBO. The counter counts as follows: 0, 2, 4, 6, 8, and again. But, there is some setting faults in the given codes which makes the program to not work correctly as mentioned before. Please, indicate the code lines that contain errors: [Note, there are no syntax errors in the instruction itself, but in the setting itself. Example: it is written as "porta=1", and should be written as "porta=0") 1 void interrupt 04 2 intcon.intf = 1; 3 porta++; Void main() { + trisa. E0 = 0; 8 trisb. 0 = 1; porta = 0; 10 intcon.gie = 1; 11 intcon.rbie = 1; 12 while (1) 13 If (porta = = 1) porta = 0; 14) 16) OA) No errors, the program functions correctly. O B) 7, 11, 13 C) 2, 3, 7, 11, 13 D) 2, 7, 11, 13 E) 2,7,9,11 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started