Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE
hi,
I am using C2000 - F28388D chip, my project is now using CM - Core for communication UART with other device. Number of transfer data is about 100 bytes so I am using UART with DMA.
I config:
- With UART: 8bit length, no parity, 1 stop bit , no using FIFO, and declare enable interrupt for UART_DMA_TX, RX (by set 2 bits DMATXIM, DMARXIm in UARTIm registrer).
- With DMA: using 2 channel 8 for UART0_RX, channel 9: for UART0_TX, both channel is setup primary, data size : 8bit ,arbitrate size: 1 byte for each transfer, transfer size: 100 items, basic mode.
My concern: with my config for UART and DMA above When does the interrupt of DMA happen, when a transfer arbitrate size 1 byte complete or transfer total transfer size - 100 items complete?
In the referrence manual of F28388D chapter DMA has mentioned:
"
Depending on the peripheral, the μDMA can indicate transfer completion at the end of an entire transfer or
when a FIFO or buffer reaches a certain level ( Table 49-2 and the individual peripheral chapters). When a
μDMA transfer is complete, a dma_done signal is sent to the peripheral that initiated the μDMA event.
Interrupts can be enabled within the peripheral to trigger on μDMA transfer completion. For more
information on peripheral μDMA interrupts, see the individual peripheral chapters. If the transfer uses the
software μDMA channel, then the completion interrupt occurs on the dedicated software μDMA interrupt
vector (see Table 49-6) "
I understand the interrupt of DMA in this case will be handled by UART interrupt, but so confused when the interrupt signal will be sent to UART, Is that each time when 1 byte arbitrate size transfer complete - 100 interrupts corresponding 100 byte or just one interrupt when the total 100 byte transfer complete?
Thanks,
Longpt