When attempting to use SPI to communicate between our microcontroller and an onboard CC3100, the CC3100 replies with an incorrect sync word. It replies with either 0x5E6E66D5 or 0x3CDCCDAB, from what our oscilloscope tells us. We have ruled out the power supply, the fast clock crystal, the slow clock crystal, and the MOSI data to the CC3100. I have attached scope plots to backup what we are seeing. Channel 1= CC3100 Chip select, Channel 2 = MOSI, Channel 3 = MISO and Channel 4 = CLK
Figure 1: Signals during powerup.
Figure 2: Host to device Syncronization word: 0x65877856
Figure 3: Transaction of 4 packets of 0s.
Figure 4: Device to Host Sync word: 0x3CDCCDAB
We have a board with an on-board CC3100, but these plots were taken with our microcontroller connected to a CC3100BOOST board from TI and the on-board CC3100 depopulated, to attempt to eliminate any hardware issues from our end. From the MOSI transaction, it appears we are using the right SPI mode 0, and our SPI speed is below 1MHz, which does not violate maximum SPI speed numbers. An Atmel Cortex M4 processor is being used to interface with the CC3100.
Thank you for your help.
- Bob