Hi!
tested the syntax :
int input_data = REG_PIOD_PDSR;
and works ok and the command reads the D port ok with this one command, tested by changing all the input states,
will be testing the A,B and C ports and outputs tomorrow , will report more then,
Chris , thanks for info !
BR,
Seppo