eDMA & LPSPI

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

eDMA & LPSPI

2,484 Views
panda_fei
Contributor II

How to configure eDMA and LPSPI to enable LPSPI to transmit and receive data over the eDMA?

可否提供一些例子,

Can you give us some examples?

THX

0 Kudos
Reply
5 Replies

2,056 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi,

That delay is caused by the high clock frequency used in your application. This behavior is expected because the IRQ handlers doesn't have enough time to re-fill the buffers.

You can easily convert your example to work with DMA:

1. In DMA component add 2 channels. Let's say that we use channel 0 and channel 1

pastedImage_1.png

2. Configure the LPSPI component to work with channels 0 an 1.

pastedImage_2.png

3. Configure DMA in your application:

  EDMA_DRV_Init(&dmaController1_State, &dmaController1_InitConfig0, edmaChnStateArray, edmaChnConfigArray, EDMA_CONFIGURED_CHANNELS_COUNT);

If you have problems on receiving side for master device please set SAMPLE bit from CFGR1. This issue will be fixed on our next release.

Best regards,

Razvan

0 Kudos
Reply

2,056 Views
panda_fei
Contributor II

thx

0 Kudos
Reply

2,056 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi,

Please check this thread: https://community.nxp.com/message/926395?commentID=926395#comment-926395.

Best regards,

Razvan

0 Kudos
Reply

2,056 Views
panda_fei
Contributor II

can not open the web

0 Kudos
Reply

2,056 Views
panda_fei
Contributor II

Unauthorized

This place or content does not exist or access to it is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here.

0 Kudos
Reply