chipKIT® Development Platform

Inspired by Arduino™

WiFire SPI4 speed between MCU and WiFi module

Created Mon, 09 Nov 2015 08:13:21 +0000 by Demian


Mon, 09 Nov 2015 08:13:21 +0000


In the WiFire Reference Manual it says that the communication between the MCU and the WiFi module is over the SPI4 channel, and that "The WiFi module supports SPI clock speeds up to 25MHz." But I can't seem to find the place where the SPI4 clock speed is actually set. Is it 25 MHz at default? I would like to be able to set this manually.


Mon, 09 Nov 2015 11:15:17 +0000

It is set in the WiFire-MRF24WG.x file in the MRG24G library:

WiFire-MRF24WG.x:#define WF_SPI_FREQ 20000000

As you can see it's running at 20MHz. You can try cranking that up to 25MHz to see what happens...


Mon, 09 Nov 2015 15:12:00 +0000

Thanks :-) Then I know where to change it if I need to, but 20 MHz should be more than enough.