change frequency on lpspi

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

change frequency on lpspi

530 Views
adi2Intel
Contributor III

Hi !

i am using a program based on the lpspi_polling_btb_transfer_master SDK example to communicate a flash device and is working ok.

the issue is the frequency

adi2Intel_0-1686816993396.png

its unstable and maximum reaching 920KHz

we need to reach 12.5 MHz like on this transaction which microchip device :

adi2Intel_1-1686817113991.png

in addition we would like to cancel the gap between every byte like in the photo above, make the clock continuous

any help will be blessed

thank you!

Labels (1)
0 Kudos
Reply
1 Reply

500 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello
I hope you are well.

Which clock have you configured as root clock for LPSPI? It is important to ensure it is at least double the frequency from the desired baudrate.
Are you configuring the baudrate with the SDK function? Is it possible to debug that part of LPSPI_Master_SetBaudRate() so you can point me the value of the variable realBaudrate?

How are the pins configured?

Best regards,
Omar

0 Kudos
Reply