When running your processor as a master you can freely use the SS pin AS LONG AS it's an OUTPUT You can use it for driving slave SS pins or anything else. Regards lasse _____ From: Don Kinzer [mailto:dkinzer@easystreet.com] Sent: 3. februar 2005 17:05 To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] Re: Mega16 SPI master, can the SS pin be used for other stuff? --- In AVR-Chat@yahoogroups.com, "Stefan Trethan" <stefan_trethan@g...> wrote: > simple question, i want to use the SPI on the mega16 in DIL40. > Normally if i want a device to be master only i'd tie SS_not high. > > Now, i'm kind of tight on pins already, so i would like to use > SS_not as a digital IO pin, i just want to be sure i can do that. . > Please tell me if SPI will work correctly without using this pin > for it. As I read the documentation, you can use PB4 as a general output while using SPI in master mode. Of course, you still need some way to drive the slave's SS/ input. It also says, "If SS/ is configured as an input, it must be held high to ensure SPI Master operation." This is from the 12/03 version of the Mega16 PDF, page 138. _____ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/AVR-Chat/ * To unsubscribe from this group, send an email to: AVR-Chat-unsubscribe@yahoogroups.com <mailto:AVR-Chat-unsubscribe@yahoogroups.com?subject=Unsubscribe> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .
Message
RE: [AVR-Chat] Re: Mega16 SPI master, can the SS pin be used for other stuff?
2005-02-03 by Lasse Madsen
Attachments
- No local attachments were found for this message.