Part Number: MSPM0G3505
I'm implementing a trivial for loop and it is failing.
see debug screen shot.
I watch as I step through my for loop -
void SetDisp(volatile uint8_t mask){
volatile unsigned char i;
for(i = 0; i < 8; i++){
DL_GPIO_clearPins(DISP_GRP_PORT,DISP_GRP_SHFT_PIN);
if((mask & (0x80 >> i))==0){
DL_GPIO_clearPins(DISP_GRP_PORT,DISP_GRP_DOUT_PIN);
}
else{
DL_GPIO_setPins(DISP_GRP_PORT,DISP_GRP_DOUT_PIN);
}
DL_GPIO_setPins(DISP_GRP_PORT,DISP_GRP_SHFT_PIN);
}
}
CORTEX_M0P
