Question: Write the assembly code that can: a. Initialize PORTB: RB7, RB6, RB5, and RB4 as output pins and RB3, RB2, RB1, and RB0 as input
Write the assembly code that can:
a. Initialize PORTB: RB7, RB6, RB5, and RB4 as output pins and RB3, RB2, RB1, and RB0 as input pins in the PIC16F84A
b. Change RB4 to input and RB1 to output, others remain the same.
DON'T FORGET BANK SHIFT!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
