Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Strange status value of spi

Hi, all

today i used a spi master in nios to read data in my gyroscope. when i sent a "WHO_AM_I" to it, correct data was read ( through signalTap). but when i used the function "alt_avalon_spi_command()" , it read nothing. and when i use the debug tools , i found the status value is 0x2e0.

my questions:

1) why the system cannot receive data from the gyroscope? it had already sent the data back.

2)in the "NII51011-9.0.0 SPI Core" table 7-4 ,the bit “E”(bit 8) is the logical OR of bit "TOE"(bit 4) and "ROE"(bit 3),. why my status value is "0x2e0"??

thanks.
No RepliesBe the first to reply