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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 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 p
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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!