I am trying to initiate an SPI transmission over these ports:
SCLK: PTC15
MISO: PTE16
MOSI: PTC1
CS: PTC14
but the CS isn't working at all. But if I change CS to PCS3 then it works, which is not cool because I already have my PCB pinout to PTC14.
Another Problem is that I cant seem to see any data on MISO: PTE16. Should I be considering another art of port initialization when I have 2 Ports?
I init them like this:
PCC->PCCn[PCC_PORTE_INDEX ]|=PCC_PCCn_CGC_MASK; /* Enable clock for PORTE */
PCC->PCCn[PCC_PORTC_INDEX ]|=PCC_PCCn_CGC_MASK; /* Enable clock for PORTC */