MPC5748G SPI_2 pin configuration in Master MODE

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

MPC5748G SPI_2 pin configuration in Master MODE

1,157 Views
p070042
Contributor III

Hi all, 

         I have took this table from excel sheet of MPC5748G "Input Muxing" sheet. In this table I can see that SPI_2 will work as input as disable low if IMCR[306]=0;

work as input as PG[14] if IMCR[306]=1;

while I am  confused for the case of PP[15]. because for this there is no IMCR register value there in the table. 

Note: 306 value is merged only for upper two configuration, its confusing for me. 

pastedImage_1.png

Also, I am working on SPI_2 in master mode but its not working, I am using only PORT P based SPI. 

PP[14]--->Clock configured as output with SSS value 1.

PP[13]--->Dout pin configured as output with SSS value 1

PP[15]---> SIN pin configured as input with SSS value 2 while IMCR[306] and SSS 2 as per above table.

Note: I have tried this pin in both ways without writing anything in IMCR register.

PP[12]--->SC_0--->configured as output with SSS value 1.

Please do let me know If I have done anything wrong to configure SPI_2 as Master mode.b55689petervlna

Labels (1)
2 Replies

862 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

this excel sheet is little bit confusing. If you want to use pin PP[15] as a SIN, you must configure IMCR[306] SSS register with value 2 (PP[15] selected).

This is equivalent to the table below:

pastedImage_1.png

Value 818 is value for IMCR + 512. Value 512 must be deducted because of header file array definition. This array is defined as 512 long (818-512=306).

Hope it helps.

Martin

862 Views
p070042
Contributor III

Hi, 

    Thanks for update, Can you please attach the actual excel sheet.

0 Kudos
Reply