Question: (a) Write some C code which will do the following: If bits 3, 2, 1 and 0 of PTH have the value 1001 (binary), write

(a) Write some C code which will do the following: If bits 3, 2, 1 and 0 of PTH have the value 1001 (binary), write a Oxff to PORTB. Otherwise, write a 0x00 to PORTB. (Assume that all bits of PTH have been set up for input, and all bits of PORTB have been set up for output.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
