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
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)