I need to use an MDO pin to read an write gpio for diagnostic purposes. How to achieve it can someone help.
Hi,
to use MDO0 (PCR 220) as input configure:
SIU.PCR[220].B.IBE = 1; //enable input buffer
read_data = SIU.GPDI[220].R;
To use as output:
SIU.PCR[220].B.OBE = 1; //enable output buffer
SIU.GPDO[220].R = data_out; //write 0 or 1 to output pin
Regards,
Lukas
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