Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4- Please inspect to given mikroC code and circuit schematic. MikroC code LFSCREEN U1 R3 D1 EDU LED-GREEN 470 D2 R1 108 R4 CH LED-GREEN
4- Please inspect to given mikroC code and circuit schematic. MikroC code LFSCREEN U1 R3 D1 EDU LED-GREEN 470 D2 R1 108 R4 CH LED-GREEN OBCHICKIN RBYWY ODOLNDUT ROLAND RBON RATANT 4 RAZAVREF-ICVREF RAS RABANSV REF RAPO RITICKOUT RBM POD MASNOUT ROOTS30T1C 15 REGNSRD RCTICSICCP2 RELANDWR ROBIOCP 12 REZANCE RCUSCHSCH MO CASOSDA CIRUPATHU RCSO RCSTICK RCERROT R5 01 void main() 02 { 03 TRISC = 0; 04 OPTION_REG.INTEDG = 1; 05 INTCON.GIE = 1; INTCON.INTE - 1; 07 while (1) 08 { 09 PORTC = OxEF; 10 } 11 ) 12 13 void interrupt() 14 { 15 INTCON.INTF=1; 16 PORTC=PORTC; 17 Delay_ms (2000); 18 ] 470 D LED-GREEN 14 RG 470 B1 LED-GREEN ROUPS ROUPS ROOPS ROUPSP3 ROUPS PROSP 24 ROUPS ROUPSP D5 R7 470 LED-GREEN PREVIA DG RR 470 LED-GREEN D7 R9 470 LED-ORIEN a) According to given MikroC code decide that which port is used for output? (Sp) INTCON register RAVO RM RW RW.0 PEIE RWO TOIE RW.0 INTE RANO RBIE TOEF INTE GIE bt 7 RAW. RBIF bto Answer: GIE enable/disable unmasked interrupts PEIE enable/disable unmasked perferal interrupts TOIE enable/disable Tmro interrupts INTE enable/disable RBD nt interrupt RBIE enable/disable RB port change interrupt TOIF Tmro register overflow INTE RBOnt interrupt occurred RBIF one of the PORTB (rb4.rb7) has changed state 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: OPTION REG register RW-1 RW.1 RBPU RN1 INTEDG RW-1 TOCS RW-1 TOSE RW-1 P32 RM1 PS1 PSA R/8-1 PSO be INTEDG rising edge or falling edge c) What does this code do? Your answer must include what is the input and output of this circuit. (p) 4- Please inspect to given mikroC code and circuit schematic. MikroC code LFSCREEN U1 R3 D1 EDU LED-GREEN 470 D2 R1 108 R4 CH LED-GREEN OBCHICKIN RBYWY ODOLNDUT ROLAND RBON RATANT 4 RAZAVREF-ICVREF RAS RABANSV REF RAPO RITICKOUT RBM POD MASNOUT ROOTS30T1C 15 REGNSRD RCTICSICCP2 RELANDWR ROBIOCP 12 REZANCE RCUSCHSCH MO CASOSDA CIRUPATHU RCSO RCSTICK RCERROT R5 01 void main() 02 { 03 TRISC = 0; 04 OPTION_REG.INTEDG = 1; 05 INTCON.GIE = 1; INTCON.INTE - 1; 07 while (1) 08 { 09 PORTC = OxEF; 10 } 11 ) 12 13 void interrupt() 14 { 15 INTCON.INTF=1; 16 PORTC=PORTC; 17 Delay_ms (2000); 18 ] 470 D LED-GREEN 14 RG 470 B1 LED-GREEN ROUPS ROUPS ROOPS ROUPSP3 ROUPS PROSP 24 ROUPS ROUPSP D5 R7 470 LED-GREEN PREVIA DG RR 470 LED-GREEN D7 R9 470 LED-ORIEN a) According to given MikroC code decide that which port is used for output? (Sp) INTCON register RAVO RM RW RW.0 PEIE RWO TOIE RW.0 INTE RANO RBIE TOEF INTE GIE bt 7 RAW. RBIF bto Answer: GIE enable/disable unmasked interrupts PEIE enable/disable unmasked perferal interrupts TOIE enable/disable Tmro interrupts INTE enable/disable RBD nt interrupt RBIE enable/disable RB port change interrupt TOIF Tmro register overflow INTE RBOnt interrupt occurred RBIF one of the PORTB (rb4.rb7) has changed state 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: OPTION REG register RW-1 RW.1 RBPU RN1 INTEDG RW-1 TOCS RW-1 TOSE RW-1 P32 RM1 PS1 PSA R/8-1 PSO be INTEDG rising edge or falling edge c) What does this code do? Your answer must include what is the input and output of this circuit. (p)
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