MPC5604P SPI configuration reg...

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

MPC5604P SPI configuration reg...

1,442 Views
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 Kudos
Reply
2 Replies

1,251 Views
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 Kudos
Reply

1,251 Views
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 Kudos
Reply