Question: Choose the correct C code that sets Bit 1, Bit 3 and Bit 5 of the TRISB register, while clearing the other bits (in binary,

Choose the correct C code that sets Bit 1, Bit 3 and Bit 5 of the TRISB register, while clearing the other bits (in binary, hexadecimal and decimal formats). Your answer: PORTB = 0; TRISB =Ob00101010; TRISB=0x2A: TRISB =42; PORTB=0; TRISB =0b00101010; TRISB=0X2A; TRISB=44; PORTB=0; TRISB=0b00101010; TRISB=0x4A; TRISB =42; o PORTB=0; TRISB=0b00010101; TRISB =0X2A; TRISB =42
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
