SPI0 works flawlessly, when i try to implement SPI1 as soon as i write the first data to the PDR the status register flags an write collision. I have first thought it has something to do with the SSP, but from the debugger it is completely disabled and SPI1 is setup correctly.
Example setup:
//setup SPI1 ports PINSEL1 = 0x000002A8; //configure SPI1 S1SPCCR = 10; S1SPCR = 0x00000024; IOSET0 = 0x00000020; IOSET0 = 0x00000040;
Example Run:
//check if(S1SPSR & 0x00000080){ k = S1SPDR; k = S1SPSR; }else if(S1SPSR == 0x00000000){ //Transmit data S1SPDR = 0xAA; }
Anyone have any insights?