Multiple Port LSPSPI

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Multiple Port LSPSPI

601 次查看
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 项奖励
回复
1 回复

569 次查看
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 项奖励
回复