Question: The following program uses bit specific addressing toaccess Port D. If Port Dhas an initial value of 0x4C, what will be the value of dataand
The following program uses bit specific addressing toaccess Port D. If Port Dhas an initial value of 0x4C, what will be the value of dataand the new value on Port D after the code fragmentis executed?
#define PD23 (*((volatile unsigned long *) 0x40007030))
data = PD23;
PD23 = 0x04
;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
