This doesn't really answer your question, but have you thought of not using the HW SPI and just bit banging the stuff you need for your startup? -----Original Message----- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Jeff Blaine Sent: Sunday, August 08, 2010 7:42 PM To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] disable SPI? Mega162 My SPI is working fine. But I just want to use it for part of a startup routeene. And then disable it so that the MOSI line is available for other uses. I did not see anything in the data sheet preventing this but that blasted MOSI line wants to stay high even after I disable the SPI via setting SPE=0. Wondered if there is some other "trick" to turning the SPI module off. Or maybe it's on until reset, once initalized? I must be overlooking something simple. Seems setting SPE low should disable the SPI. And designating MOSI as an output should reenable it''s use as a standard I/O pin... 73/jeff/ac0c www.ac0c.com [Non-text portions of this message have been removed] ------------------------------------ Yahoo! Groups Links
Message
RE: [AVR-Chat] disable SPI? Mega162
2010-08-09 by Philippe Habib
Attachments
- No local attachments were found for this message.