On Feb 12, 2006, at 2:02 PM, kernels_nz wrote: > 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 ? Yes, but make sure whatever you shift into the slave device is not a command or data that the slave is going to act upon and do something undesired. 0x00 is usually safe. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.
Message
Re: [AVR-Chat] Some help required with SPI on Mega16
2006-02-13 by David Kelly