Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Some help required with SPI on Mega16

2006-02-12 by kernels_nz

Hi guys, I must admit I have not tried this, but any suggestions would
be appreciated. 

Using the Mega16 SPI module to send data seems very easy (I have done
this) . . . Put your byte in the SPDR register and the processor takes
care of clocking this byte out to the selected slave. 

My question is, what do I do when I want to clock data out of a slave
device (non AVR IC) ? Can I clock 0x00 into the slave device and once
I have clocked the byte out with the Mega as master, read the SPDR
register and this should contain a byte clocked out by the slave ?

Thanks guys
Hein B
Auckland
New Zealand.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.