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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!