DSPIC30F5011-20I/PTG Microchip Technology, DSPIC30F5011-20I/PTG Datasheet - Page 45

no-image

DSPIC30F5011-20I/PTG

Manufacturer Part Number
DSPIC30F5011-20I/PTG
Description
IC, DSC, 16BIT, 66KB, 40MHZ 5.5V TQFP-64
Manufacturer
Microchip Technology
Series
DsPIC30Fr
Datasheet

Specifications of DSPIC30F5011-20I/PTG

Core Frequency
40MHz
Core Supply Voltage
5.5V
Embedded Interface Type
CAN, I2C, SPI, UART
No. Of I/o's
52
Flash Memory Size
66KB
Supply Voltage Range
2.5V To 5.5V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
5.2.1
The modulo addressing scheme requires that a starting
and an ending address be specified and loaded
into the 16-bit
XMODSRT, XMODEND, YMODSRT and YMODEND
(see Table 3-3).
The length of a circular buffer is not directly specified. It
is
corresponding start and end addresses. The maximum
possible length of the circular buffer is 32K words
(64 Kbytes).
FIGURE 5-1:
© 2008 Microchip Technology Inc.
Note:
determined
Byte
Address
0x1100
0x1163
START AND END ADDRESS
Y
calculations assume word sized data (LSb
of every EA is always clear).
Start Addr = 0x1100
End Addr = 0x1163
Length = 0x0032 words
Modulo
space
by
the
MODULO ADDRESSING OPERATION EXAMPLE
modulo
Buffer
difference
Address
addressing
between
registers:
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
DO
MOV
EA
the
#0x1100,W0
W0,XMODSRT
#0x1163,W0
W0,MODEND
#0x8001,W0
W0,MODCON
#0x0000,W0
#0x1110,W1
AGAIN,#0x31
W0,[W1++]
5.2.2
The Modulo and Bit-Reversed Addressing Control
register MODCON<15:0> contains enable flags as well
as a W register field to specify the W address registers.
The XWM and YWM fields select which registers will
operate with modulo addressing. If XWM = 15, X
RAGU and X WAGU modulo addressing is disabled.
Similarly, if YWM = 15, Y AGU modulo addressing is
disabled.
The X Address Space Pointer W register (XWM), to
which modulo addressing is to be applied, is stored in
MODCON<3:0> (see Table 3-3). Modulo addressing is
enabled for X data space when XWM is set to any value
other than ‘15’ and the XMODEN bit is set at
MODCON<15>.
The Y Address Space Pointer W register (YWM), to
which modulo addressing is to be applied, is stored in
MODCON<7:4>. Modulo addressing is enabled for Y
data space when YWM is set to any value other than
‘15’ and the YMODEN bit is set at MODCON<14>.
dsPIC30F5011/5013
;set modulo start address
;set modulo end address
;enable W1, X AGU for modulo
;W0 holds buffer fill value
;point W1 to buffer
;fill the 50 buffer locations
;fill the next location
W ADDRESS REGISTER
SELECTION
DS70116H-page 45

Related parts for DSPIC30F5011-20I/PTG