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 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
Get step-by-step solutions from verified subject matter experts
