Sorry that was a typo.
Here is an update -
The app does not crash anymore. However there is no output on portc.
Here is the relevant code
SIOSelectOption(2);
SIOInitDDRA(0x00);
SIOInitDDRC(0xff); // Configure Port C as output
SIOSetSSPTimeout(500);
while(TRUE)
{
// return to start of line each time
RETAILMSG(TRUE, (_T("\r ")));
// read data
for(int i = 0 ; i < 8 ; i++) {
RETAILMSG(TRUE, (_T("0x%04X "), SIOAnalogConversion(i)));
}
SIOWritePortC(portC);
portC ^= 0xFF;
Sleep(250);
}