MPC5746R   DSPI

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

MPC5746R   DSPI

跳至解决方案
1,530 次查看
shanescott
Contributor III

In the IO Signal Table some values for MSCR.SSS are blank.  For example  PK1 has a blank value for DSPI_0  SIN.

The reset value is listed as 0 (GPIO).  How should this be set to use this pin as SIN?

 

Also, There are not yet a lot of examples for the MPC5746R included with the S32 IDE so I have been using the MPC5748G examples as a reference but there are some significant differences in the SIUL.  Is there a better MPC5xxx relative to reference?  In particular I am currently setting up DSPI_0 as a master.

 

Thanks,

Shane

标签 (1)
0 项奖励
回复
1 解答
1,176 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

if you want to use PK1 as a DSPI_0 SIN_0 you have to use following settings:

SIUL2.MSCR0_255[161].R = 0x308C0000;

- OERC = 11 - Full drive strength without slew rate control

- ODC = 00 - Disabled (high impedance for turning off the pin or using it as an input)

- SMC = 1

- IBE = 1 - Input buffer enabled

- WPUE = 1 - pull-up enabled

- SSS = 0 (because there is not any value for SSS in IO Signal table, you do not change this value)

Please look at the MPC5775K DSPI example. There are more similar SIUL2 settings.

MPC5775K DSPI_with_interrupts S32DS 

If you have any other questions, please feel free to write me back.

Regards,

Martin

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,176 次查看
shanescott
Contributor III

Thanks Martin

0 项奖励
回复
1,177 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

if you want to use PK1 as a DSPI_0 SIN_0 you have to use following settings:

SIUL2.MSCR0_255[161].R = 0x308C0000;

- OERC = 11 - Full drive strength without slew rate control

- ODC = 00 - Disabled (high impedance for turning off the pin or using it as an input)

- SMC = 1

- IBE = 1 - Input buffer enabled

- WPUE = 1 - pull-up enabled

- SSS = 0 (because there is not any value for SSS in IO Signal table, you do not change this value)

Please look at the MPC5775K DSPI example. There are more similar SIUL2 settings.

MPC5775K DSPI_with_interrupts S32DS 

If you have any other questions, please feel free to write me back.

Regards,

Martin

0 项奖励
回复