MPC5604P SPI configuration reg...

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

MPC5604P SPI configuration reg...

1,439件の閲覧回数
pavan_nagamalla
Contributor I

Hello All,

 

Presently I am working on MPC5604P SPI module. I want to select the slaves through DSPIO PCSx pins usin as GPIO.

 

Can somebody help me out on this.......

 

I tried enabling and disabling the CS before each transfer...

 

when I tried with 3 byte transfer, with the same procedure, the CS is active only for the first byte and remains HIGH for the rest eventhough I am making it LOW for the next byte.

 

 

Thanks,

Pavan.

0 件の賞賛
返信
2 返答(返信)

1,248件の閲覧回数
princefiroz
Contributor I

Hello pavan,

 

If the requirement is to make the CS pin high in between byte transfers, why to select it as a GPIO pin? 

Its better to configiure the pin as DSPI0 pin the PCR register. In this way we dont have to make the CS pin high and low.

 

Regards

Firoz

0 件の賞賛
返信

1,248件の閲覧回数
pavan_nagamalla
Contributor I

Hi Firoz,

 

Thanks for the response.

 

We can use the AUTO configuration mechanism with the internal registers. I tried this and working good. But it is mentioned that we can also use the CS0,CS1 etc.. as GPIO also. So, I am trying to make use of CS0 as GPIO and asserting it before the transfer. But facing the stated problem.

 

 

Thanks,

Pavan.

0 件の賞賛
返信