This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
microcontroller_annoyances [2009/10/13 17:19] ladyada |
microcontroller_annoyances [2016/01/28 18:05] (current) |
||
---|---|---|---|
Line 95: | Line 95: | ||
//Check the datasheet under "SPI Serial Programming Pin Mapping" to discover you should use the following for programming: | //Check the datasheet under "SPI Serial Programming Pin Mapping" to discover you should use the following for programming: | ||
MOSI -> PE0, MISO -> PE1, SCK -> PB1 // --- //[[http://www.avrfreaks.net/wiki/index.php/Documentation:Things_That_Are_Broken|AVR Wiki]]// | MOSI -> PE0, MISO -> PE1, SCK -> PB1 // --- //[[http://www.avrfreaks.net/wiki/index.php/Documentation:Things_That_Are_Broken|AVR Wiki]]// | ||
+ | |||
+ | ===== SPI Master mode ===== | ||
+ | On some (all?) AVRs, if the SPI slave select (SS_) pin is an input and low, then the SPI interface will go into slave mode, even if you have previously selected master mode. Hope you weren't using that pin for something else. | ||
====== PIC ====== | ====== PIC ====== |