I need to use an MDO pin to read an write gpio for diagnostic purposes. How to achieve it can someone help.
to use MDO0 (PCR 220) as input configure:
SIU.PCR.B.IBE = 1; //enable input buffer
read_data = SIU.GPDI.R;
To use as output:
SIU.PCR.B.OBE = 1; //enable output buffer
SIU.GPDO.R = data_out; //write 0 or 1 to output pin
Thanks enable both i can give like obe orred with ibe right..
And one more query how to use a emios pin
1.as gpio i/o
2. For seting a frequency say 5HZ
Retrieving data ...