Yahoo Groups archive

AVR-Chat

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

Message

Question about multi-master SPI

2006-01-11 by James Washer

I'm starting to play with the SPI, an I'm a bit confused.

If I'm in Master Mode, with SS as an input, interrupts enabled, and SPIE set in SPSR, when another Master slave selects me, I'll go into Slave mode.. that's all fine... However the databook "The SPIF Flag in the SPSR is set"... I hope they mean the SPIF flag is set AFTER the byte is transferred... but it does not read that way.


I guess I could build a little test system to pull SS low and NOT clock any data to see what happens... but I thought I'd get your opinion on the timing of the interrupt.

The "databook I'm referring to is the current Mega8 book, page 126

thanks

 - jim

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.