Usage of MDO pins in mpc5777c

cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of MDO pins in mpc5777c

137 Views
vignesh_v
Contributor III

I need to use an MDO pin to read  an write gpio for diagnostic purposes. How to achieve it can someone help.

Labels (1)
Tags (1)
0 Kudos
2 Replies

58 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

0 Kudos

58 Views
vignesh_v
Contributor III

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 

0 Kudos