Page 1 of 1

1. Use Proteus to Interface a switch to RA1, another switch to RA3, a RED led to RBO, and a GREEN led to RB1. Copy and p

Posted: Sun May 15, 2022 8:02 am
by answerhappygod
1 Use Proteus To Interface A Switch To Ra1 Another Switch To Ra3 A Red Led To Rbo And A Green Led To Rb1 Copy And P 1
1 Use Proteus To Interface A Switch To Ra1 Another Switch To Ra3 A Red Led To Rbo And A Green Led To Rb1 Copy And P 1 (46.09 KiB) Viewed 67 times
1. Use Proteus to Interface a switch to RA1, another switch to RA3, a RED led to RBO, and a GREEN led to RB1. Copy and paste your design here. (20 points) 2. Write a subroutine SETPORT to set RA1 and RA3 as input pins and RBO and RB! As output pins. Copy and paste your subroutine here. (10 points) 3. Write a subroutine REDLEDON that turns-on RED led (GREEN led must be off). Copy and paste your subroutine here. (5 points) 4. Write a subroutine GREENLEDON that turns-on RED led (RED led must be off). Copy and paste your subroutine here. (5 points) 5. Write a subroutine LEDOFF that turns-off both led. Copy and paste your subroutine here. (5 points)