change frequency on lpspi

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

change frequency on lpspi

469件の閲覧回数
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 返信

439件の閲覧回数
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 件の賞賛
返信