change frequency on lpspi

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

change frequency on lpspi

573 次查看
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!

标签 (1)
0 项奖励
回复
1 回复

543 次查看
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 项奖励
回复