The right sequence of starting PDCA of peripherals in UC3B

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

Just wanna ask how to start the PDCA of peripherals?

Should I always enable PDCA first and then start peripheral transfer?

For example, should I setup the PDCA of SPI and then enable the PDCA and then write to TDR of SPI to start the process?

Cheng

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

For example, should I setup the PDCA of SPI and then enable the PDCA and then write to TDR of SPI to start the process?

Yes, that will do it.

In a general way, I prefer configuring the peripheral first, then enable the DMA channel to start the transfer.

-sma

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

so you means it's ok to start the first byte (or word) SPI transfer first and then enable its DMA, then the DMA will continue automatically?