I am using the Moteino Mega in a project, and I note that its SPI pins are also designated as dedicated to the onboard transceiver. and it appears to use D4 as the slave select line to the radio. According to the SPI spec, I assume I can also use that interface to talk to a CC3000 provided I pick a separate chip select line. If anyone has information to the contrary, or has done this successfully, I would appreciate your insights.
jrdoner:
I am using the Moteino Mega in a project, and I note that its SPI pins are also designated as dedicated to the onboard transceiver. and it appears to use D4 as the slave select line to the radio. According to the SPI spec, I assume I can also use that interface to talk to a CC3000 provided I pick a separate chip select line. If anyone has information to the contrary, or has done this successfully, I would appreciate your insights.
Thanks.
That is a correct explanation of the SPI bus usage. The three shared Pins MISO, MOSI, SCK and one unique pin for each device. This unique pin (CS) tells the device when to listen to SCK, MOSI, and when it is safe to transmit data on MISO. Remeber MOSI, SCK, MISO are assigned to two sets of pins on most Arduinos, On the UNO, 11,12,13 and the ISP connector, on the Mega2560 50,51,52 and ISP. When you are using SPI from the ISP connector you cannot use the numbered pins for some other function.