In C5510 DSK
First I configure McBSP0 as GPIO, I can write the DX0 pin high and measure its high voltage,
MCBSP_FSETH(hMcbsp0,PCR,DXSTAT,1);
DB7 = MCBSP_FGETH(hMcbsp0, PCR,DXSTAT);
if (DB7==1)
DSK5510_LED_on(2);
but I can't write the FSX0 using the same way, the voltage of FSX0 is always 0???
MCBSP_FSETH(hMcbsp0,PCR,FSXP,1);
DB7 = MCBSP_FGETH(hMcbsp0, PCR, FSXP);
if (DB7==1)
DSK5510_LED_on(2);
I notice that McBSP datasheet states something, maybe this is the reason of my problem
"When the McBSP pins are configured as general-purpose input pins,
CLKRP, CLKXP, CLKSP, FSRP, and FSXP are not write-protected. If written, they contain the written value until they are next automatically updated with the state of the associated pins. This behavior should be considered when these bits are polled."