I use the SPI slave function on 51422. When I send a byte(0x31) to 51422 SPI slave from master, 51422 will back a byte (0xAA - DEF byte) to master. Why?
I send 0x31 every 1 seconds, but I always get 0xAA. Why??
I use the SPI slave function on 51422. When I send a byte(0x31) to 51422 SPI slave from master, 51422 will back a byte (0xAA - DEF byte) to master. Why?
I send 0x31 every 1 seconds, but I always get 0xAA. Why??
Hi,
That indicates that an ignored transaction has occurred (DEF register is set to '0xaa' in the SDK example).
Best regards Håkon
Have you set the same SPI mode on both sides? Could you try adding a delay of some microseconds after asserting the CSN line until you clock out data on MOSI?
BR Håkon
Have you set the same SPI mode on both sides? Could you try adding a delay of some microseconds after asserting the CSN line until you clock out data on MOSI?
BR Håkon