I believe it applies to the break-out board.Barry914 wrote:Does this apply to the shield or to the breakout board?adafruit_support_mike wrote:We updated our boards to compensate for that problem a few months ago. If you bought your CC3000 since about February, it will share the SPI bus like if should.
CC3000 Breakout SPI Question
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mathmestres
- Posts: 12
- Joined: Mon Sep 22, 2014 12:46 pm
Re: CC3000 Breakout SPI Question
- DigitalCowboy
- Posts: 22
- Joined: Sat Apr 05, 2014 9:05 pm
Re: CC3000 Breakout SPI Question
You have the CC3000 configured to use pin 11 for both IRQ and MOSI? You don't mention what uC you are using but the typical Arduinos only have 2 IRQ pins (2, 3) and most of the tutorials I've seen (including Adafruit) use pin 3 for the IRQ. If you are using something like the Teensy you have more options but still MOSI and IRQ should not be sharing a pin.
// These are the interrupt and control pins
#define ADAFRUIT_CC3000_IRQ 11 // MUST be an interrupt pin!
// These can be any two pins
#define ADAFRUIT_CC3000_VBAT 3
#define ADAFRUIT_CC3000_CS 4
// Use hardware SPI for the remaining pins
// On an UNO, SCK = 13, MISO = 12, and MOSI = 11
Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT,
SPI_CLOCK_DIVIDER); // you can change this clock speed but DI
// These are the interrupt and control pins
#define ADAFRUIT_CC3000_IRQ 11 // MUST be an interrupt pin!
// These can be any two pins
#define ADAFRUIT_CC3000_VBAT 3
#define ADAFRUIT_CC3000_CS 4
// Use hardware SPI for the remaining pins
// On an UNO, SCK = 13, MISO = 12, and MOSI = 11
Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT,
SPI_CLOCK_DIVIDER); // you can change this clock speed but DI
- lina944
- Posts: 6
- Joined: Fri Nov 30, 2012 10:22 pm
Re: CC3000 Breakout SPI Question
In my project I am using a CC3000 breakout board and had several SPI headaches. I tried everything to figure out why the CC3000 was corrupting the bus, and I found it to be the interrupt.
Whenever I want to use other devices with SPI, I just detachInterrupt(0) - in my case it was on Pin 2. Then when I want to use Wifi again, I reinitialize the interrupts. Sidenote: I have an old revision of the board without the tri-state buffer for MOSI/MISO.
Good luck!
Whenever I want to use other devices with SPI, I just detachInterrupt(0) - in my case it was on Pin 2. Then when I want to use Wifi again, I reinitialize the interrupts. Sidenote: I have an old revision of the board without the tri-state buffer for MOSI/MISO.
Good luck!
Please be positive and constructive with your questions and comments.