Question: 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,
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
Get step-by-step solutions from verified subject matter experts
