How to Handle Clock Rate List for SPIMaster_LDD

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

How to Handle Clock Rate List for SPIMaster_LDD

435 Views
Vagni
Contributor IV

I am using SPIMaster_LDD embedded component for my project with CodeWarrior 10.2 and Processor Expert 5.3 on a Kinetis K10DX256VLH7 mcu.

SPIMaster_LDD is set with polling mode and one attribute set.

I defined a list of clock rates, because in my application I need to switch in run-time from a clock rate to another, (mainly from a low clock rate to a higher one).

I cannot see what is the right component method for switching in run-time among the clock rates of my list.

Can you please tell me how can I do that clock rate switch?

Thank you!

Labels (1)
0 Kudos
1 Reply

265 Views
BlackNight
NXP Employee
NXP Employee

I have used the SynchroMaster component which is easier to use.

There you can set up as well a list of clock rates, and then switch it with SetBaudRateMode().

That worked very well for me (e.g. with SD card interface which needs different speed modes.

0 Kudos