Question: 4- Please inspect to given mikroC code and circuit schematic. LED GREEN D1 U1 OSCIUN D2 R1 ) LED GREEN OCZOUKOUT RABAND PGM RAW RADAR

 4- Please inspect to given mikroC code and circuit schematic. LED

4- Please inspect to given mikroC code and circuit schematic. LED GREEN D1 U1 OSCIUN D2 R1 ) LED GREEN OCZOUKOUT RABAND PGM RAW RADAR CARE RA RAMAN MITOCKCOUT PGD RAGISCOUT COTOT HUS RCAT SOSICIOP RETAN RCDICOPI RGARDA ROVO RCREDO MikroC code 01 void main() 021 03 TRISC = 0; 04 OPTION_REG.INTEDG = 1; 05 INTCON.GIE = 1; 06 INTCON.INTE = 1; 07 while (1) 08 09 PORTC = OxFF: 10 1 111 12 13 void interrupt() 15 INTCON. INTE=1; 16 PORTC=-PORTC; 17 Delay_ms (2000); D3 04 B: LEO OREN 14 SP ROOPS AN ROPOS 05 PUISSA DO 18 RB LED-GREEN D7 a) According to given MikroC code decide that which port is used for output? (Sp) INTCON register RW RW. RWO PEIE TOE RW. W BE RW TOS RW RW INTE Answer: b) There are one error in the code. Please compare hardware, software to find error. Which line has an error and write the correct one. (Sp) Answer: GIE enable/disable unmasked interrupts PEE enable/disable unmasked perferal interrupts TOIE enable/disable Tmro interrupts INTE enable disable RBOAn interrupt RBIE enable/disable RB port change interrupt TOIF Tmro register overflow INTE RBO/Int interrupt occurred RBIE one of the PORTB(154. rb7) has changed state OPTION_REG register RW1 RM1 RW.1 RW.1 RW.1 RW.11 RW.1 REPU INTEDGTOCS TOSE P31 PSO PSA INTEDG nising edge or falling edge c) What does this code do? Your answer must include what is the input and output of this circuit. (Tp)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!