Author Topic: programming over SPI with multiple devices  (Read 1592 times)

0 Members and 1 Guest are viewing this topic.

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17816
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
programming over SPI with multiple devices
« on: October 14, 2015, 07:57:24 am »
I'm going to put an SPI device (ADC) in my system along side my AVR, but my AVR is programmed by SPI, presumably because my ADC needs enabling on the enable pin before it does anything there will be no conflict as the chip will just go high impedance when the AVR is put into programming mode and stops talking to it
 

Offline Mr.B

  • Supporter
  • ****
  • Posts: 1237
  • Country: nz
Re: programming over SPI with multiple devices
« Reply #1 on: October 14, 2015, 08:09:55 am »
I have done this before and not had any problems with it.
The "other device" had a pull-up resistor on the CE to ensure it was not enabled while the AVR powered up.
I approach the thinking of all of my posts using AI in the first instance. (Awkward Irregularity)
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3240
  • Country: gb
Re: programming over SPI with multiple devices
« Reply #2 on: October 14, 2015, 10:41:14 am »
You should provide a suitable pull-up resistor on the chip select lines of any SPI slave devices, but provided this is in place there should be no problem.
 

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17816
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: programming over SPI with multiple devices
« Reply #3 on: October 14, 2015, 11:58:31 am »
I'l put a 10K pullup and I've found a free pin to act as the CS line phew how long ago did i start designing this thing ?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf