Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ungraded homework assignment for practice. Please help QUESTION 3 Assume that th

ID: 3746965 • Letter: U

Question

ungraded homework assignment for practice. Please help

QUESTION 3 Assume that the following statements have already been defined. PORTB EQU S0001 DDRB EQU S0003 PTP EQU S0258 DDRP EQU $025A PTH EQU S0260 DDRH EQU $0262 The following statement configure pins 6,4,2, and 1 pf port H to outputs and the others to inputs. What is the BPATT? Write BPATT as a string of binary number G.e precisely 8 bits, each bit a 1 or 0) MOB #%BPATT, $0262 QUESTION 4 For the previous problem, the following statement configures the lower 4 pins of port P (PTP) to output. BSET DDRP. 96BPATT Write BPATT as a binary number (8 bits) QUESTION 5 For the previous problem the following statement set pins 7, 6, and 2 of Port B (PORTB) to 1 BSET PORTB, %BPATT Write BPATT as an 8 bit number.

Explanation / Answer

(1) 0452

(4) 00101101 ( 8 bit number)

(5) 10110110 (8 bit number)

(6) 11101011 (8 bit binnary number)

(7) 10010100