Multiple Port LSPSPI

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Multiple Port LSPSPI

592件の閲覧回数
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 返信

560件の閲覧回数
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 件の賞賛
返信