How to create and code a 16-bit spi interface in Microblaze?

Status
Not open for further replies.

ya_montazar

Member level 2
Joined
Feb 24, 2014
Messages
47
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
342
Hi to all.
I have created a spi module with 8 bit width data.
Now I WANT TO change it to a 16-bit one.
To do this,I have change its property in XPS and now I should change the codes.
I use this function to transfer data.
Xspi_Transfer (&mySPI,data,NULL,1)

The spi definition is now 16 bit but the function still in 8 bit mode. What should I do?
Changing Xspi.c and *.h is enough? So what should be changed??

I would appreciate it if anyone could help.

Mshin.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…