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

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

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!