I have a question on port B. I am trying to set PB0 as an output. The following code is to set PB0 to output:
And I try to toggle it by:
BitWrPortI(PBDR, &PBDRShadow, 0, 0);
BitWrPortI(PBDR, &PBDRShadow, 1, 0);
However, PB0 does not toggle. Do I need set PB0CR to set a pull up resistor to PB0? If yes, what is the shadow register for PB0CR?