English
Language : 

PIC24EP256GU810-I Datasheet, PDF (127/622 Pages) Electronic Film Capacitors, Inc. – 16-Bit Microcontrollers and Digital Signal Controllers with High-Speed PWM, USB and Advanced Analog
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
4.4.3
EDS ARBITRATION AND BUS
MASTER PRIORITY
EDS accesses from bus masters in the system are
arbitrated.
The arbiter for data memory (including EDS) arbitrates
between the CPU, the DMA, the USB module and the
ICD module. In the event of coincidental access to a
bus by the bus masters, the arbiter determines which
bus master access has the highest priority. The other
bus masters are suspended and processed after the
access of the bus by the bus master with the highest
priority.
By default, the CPU is Bus Master 0 (M0) with the
highest priority and the ICD is Bus Master 4 (M4) with
the lowest priority. The remaining bus masters (USB
and DMA Controllers) are allocated to M2 and M3,
respectively (M1 is reserved and cannot be used). The
user application may raise or lower the priority of the
masters to be above that of the CPU by setting the
appropriate bits in the EDS Bus Master Priority Control
(MSTRPR) register. All bus masters with raised
priorities will maintain the same priority relationship
relative to each other (i.e., M1 being highest and M3
being lowest, with M2 in between). Also, all the bus
masters with priorities below that of the CPU maintain
the same priority relationship relative to each other.
The priority schemes for bus masters with different
MSTRPR values are tabulated in Table 4-74.
This bus master priority control allows the user
application to manipulate the real-time response of the
system, either statically during initialization, or
dynamically in response to real-time events.
TABLE 4-74:
Priority
EDS BUS ARBITER PRIORITY
MSTRPR<15:0> Bit Setting(1)
0x0000
0x0008
0x0020
M0 (highest)
CPU
USB
M1
Reserved
CPU
M2
USB
Reserved
M3
DMA
DMA
M4 (lowest)
ICD
ICD
Note 1: All other values of MSTRPR<15:0> are reserved.
DMA
CPU
Reserved
USB
ICD
0x0028
USB
DMA
CPU
Reserved
ICD
FIGURE 4-8:
EDS ARBITER ARCHITECTURE
DPSRAM
DMA
USB
ICD
CPU
Reserved
MSTRPR<15:0>
M0 M1 M2 M3 M4
EDS Arbiter
 2009-2012 Microchip Technology Inc.
SRAM
DS70616G-page 127