Where you able to use the ChipSelect-feature too? I set all the PCS bits in PUSHR but it never touches the CS state. This is my actual code:
inline uint16_t RF12_T3::rf12_xfer(uint16_t data) {
// digitalWriteFast(10, LOW);
SPI0_PUSHR = (1<<26) | (B11111 << 16) | data; // send data (clear transfer counter, select all CS)
while (! SPI0_TCR) ; // loop until transfer is complete
// digitalWriteFast(10, HIGH);
return SPI0_POPR;
}
Configuration is like this:
// enables and configures SPI module
// 16MHz 16bit transfers on CTAR0
SPI0_CTAR0 = 0xF8010000;
Sorry for being a bit off-topic...