chipKIT® Development Platform

Inspired by Arduino™

SPI Library Mode Definitions Bug

Created Tue, 13 Sep 2011 17:48:54 +0000 by GeneApperson


GeneApperson

Tue, 13 Sep 2011 17:48:54 +0000

In the course of debugging problems with the Ethernet library, we discovered that the SPI mode definitions in the SPI library have been incorrect. It turns out that one of the mode setting bits in the PIC32 SPI controller has the opposite sense of the equivalent bit in the AVR SPI controller.

The effect is that modes 0 & 1 were reversed and 2 & 3 were reversed.

This has been corrected in the 20110907 test release.

Gene Apperson Digilent