OVERVIEW
The ECAN module works in conjunction with the DMA
controller in dsPIC33F and PIC24H devices. The DMA
controller is a very important subsystem in Microchip’s
high-performance 16-bit dsPIC33F and PIC24H
devices. The DMA controller allows data transfer from
RAM to a peripheral and vice versa without any CPU
assistance, and operates across its own data bus and
address bus with no impact on CPU operation.
The DMA subsystem supports eight independent
channels. Because each channel is unidirectional, two
channels must be allocated to read and write to the
ECAN peripheral using DMA. One channel is allocated
for reading messages from the ECAN peripheral and
the other channel is allocated for writing messages to
the ECAN peripheral.
When more than one DMA channel receives a
request to transfer data, a simple fixed-priority
scheme that is based on the channel number dictates
the specific channel that completes the transfer and
the channels that are left pending. Each channel has
a fixed priority. The channels with a lower number
have higher priority, with channel 0 having the highest
priority, and channel 7 having the lowest priority.
Each dsPIC33F or PIC24H device contains up to
2 Kbytes of Dual Port SRAM (DPSRAM), which is
adequate to concurrently support multiple buffers for
several peripherals. Figure 1 highlights the DMA
integration with the architecture of dsPIC33F and
PIC24H devices. The CPU communicates with
conventional SRAM across the data space X-bus
known as the CPU X-bus, as shown in Figure 1. It also
communicates to port 1 of the new dual port SRAM
block across the same X-bus.
The CPU communicates to the ECAN peripheral
across a separate peripheral data space bus known as
the CPU Peripheral X-bus, shown in Figure 1, which
also resides in the X data space. The DMA controller
communicates with port 2 of the dual port SRAM and
the DMA port of ECAN module across a dedicated
DMA transfer bus known as the DMA X-bus.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?