Author Topic: Sharing SPI bus  (Read 1445 times)

0 Members and 1 Guest are viewing this topic.

Offline SilenusTopic starter

  • Contributor
  • Posts: 48
Sharing SPI bus
« on: January 08, 2015, 12:36:01 am »
I am designing a MCU embedded system using an AVR and I need the SPI bus for a wifi module. However, I also need this bus to program the chip via ICSP headers. Will having the wifi module on the same bus cause any ill effects when I program my chip? or should I go for a MCU that has two SPI buses?
 

Offline 0xdeadbeef

  • Super Contributor
  • ***
  • Posts: 1580
  • Country: de
Re: Sharing SPI bus
« Reply #1 on: January 08, 2015, 01:19:17 am »
SPI is a master slave bus where usually the MCU is the master. A slave must not do anything on the bus if its chip select is not active. So given the CS line is deactivated during reprogramming the WiFi module should not be an issue.
Trying is the first step towards failure - Homer J. Simpson
 

Offline LukeW

  • Frequent Contributor
  • **
  • Posts: 686
Re: Sharing SPI bus
« Reply #2 on: January 08, 2015, 04:24:51 am »
In this case it can be worthwhile to put a pullup on the peripheral device !CS line, to stop it going low or getting into a funny state during microcontroller programming.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf