Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Slide 13 Slide 14 Slide 15 Slide 16 Slide 17 Product List
DMAC-Slide16

The addition of another bus master within an embedded system always introduces new debugging challenges. The PIC33F and PIC24H DMA controller includes some special debug assist registers to improve user visibility foremost during system debug, however, they are user accessible from any mode. There are two pieces of information captured during every DMA data transfer. The first is the address in dual port SRAM of the most recent transfer completed by the DMA controller. The second is the channel number of the most recently active DMA channel. This data can be used to establish what the DMA was doing at, or at some time prior to, the point when the debugger halted execution. The existing user registers within the DMA controller and its channels can be used to establish the state of each channel. The ‘ping-pong’ mode status bit is used to indicate which of the 2 buffers is currently active. It may also find uses in both system debug and user application.

PTM Published on: 2011-11-03