User Tools

Site Tools


microcontroller_annoyances

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
microcontroller_annoyances [2009/10/13 17:19]
ladyada
microcontroller_annoyances [2013/01/10 02:08]
daviddavid
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 ======
/home/ladyada/public_html/wiki/data/pages/microcontroller_annoyances.txt · Last modified: 2016/01/28 18:05 (external edit)