Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 22625

AduC832 SPI interface in Slave mode does not work with SPICON=0x20 or 0x24

$
0
0

Hi !

I am using AduC 832 SPI interface to interface with and test my custom FPGA hardware with an SPI interface.

When I set up the 832 as Master (SPICON=0x37) it works properly.. However when I set up the 832 as Slave (SPICON=0x20 or 0x24) the transmissions from 832 have no relation to what I had set up as the Byte to transfer. See attached screen shot in which I had set both master and slave to send 0x88. The Master (MOSI) is sending it correctly on the rising edge. However the Slave is sending 0xDA !!

This was when SPICON=0x24. A different but incorrect output shows up when it is set to 0x20.

What is the problem ? Can you explain ? More important how to fix this ? My Master SPI is set up for 1 MHz clock speed.

Thanks.

Bhal


Viewing all articles
Browse latest Browse all 22625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>