Multiple Port LSPSPI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multiple Port LSPSPI

600 Views
Khaledag
Contributor II

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 */



0 Kudos
Reply
1 Reply

568 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if a PTC14 pin is configured to select LPSPI2 PCS0 function and LPSPI2 TCR is selecting PCS0, then you should see signal on it.

If PTE16 is used as SIN then PTE port clock have to be enabled too.

BR, Petr

0 Kudos
Reply