the PIC seems to hang.. is there something I'm not seeing??
Any help appreciated. Thanks.
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
Posted: Sun Oct 04, 2009 9:26 am
Basically, performing spi_read() on the slave side doesn't synchronize receipt of multiple bytes. If you consult the CCS examples, they perform something like
Code:
while(!spi_data_is_in());
data = spi_read();
Utilisation of SPI receive interrupt would be the most versatile option in my opinion.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum