Question: 2. Draw a flowchart and write a routine to do the following: Recall that PORTB is mapped to memory location $0001 and DDRB is mapped

 2. Draw a flowchart and write a routine to do the

2. Draw a flowchart and write a routine to do the following: Recall that PORTB is mapped to memory location $0001 and DDRB is mapped to memory location S0003. Program the upper 4 bits of PORTB (bits 7 to 4) to be inputs, and the low 4 bits (bits 3 to 0) to be outputs. Read PORTB into register A. If Bit 5 of PORTB is HIGH (logic 1), then make bit 0 of PORTB be 0 If Bit 5 of PORTB is LOW (logic 0), then make bit 1 of PORTB be

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!