DSPIC30F6010T-20I/PF Microchip Technology, DSPIC30F6010T-20I/PF Datasheet - Page 4

no-image

DSPIC30F6010T-20I/PF

Manufacturer Part Number
DSPIC30F6010T-20I/PF
Description
IC PSPIC MCU/DSP 144K 80TQFP
Manufacturer
Microchip Technology
Series
dsPIC™ 30Fr

Specifications of DSPIC30F6010T-20I/PF

Core Processor
dsPIC
Core Size
16-Bit
Speed
20 MIPS
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, Motor Control PWM, QEI, POR, PWM, WDT
Number Of I /o
68
Program Memory Size
144KB (48K x 24)
Program Memory Type
FLASH
Eeprom Size
4K x 8
Ram Size
8K x 8
Voltage - Supply (vcc/vdd)
2.5 V ~ 5.5 V
Data Converters
A/D 16x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
80-TQFP, 80-VQFP
For Use With
DM300019 - BOARD DEMO DSPICDEM 80L STARTERAC164314 - MODULE SKT FOR PM3 80PFDM300020 - BOARD DEV DSPICDEM MC1 MOTORCTRLAC30F001 - MODULE SOCKET DSPIC30F 80TQFPXLT80PT2 - SOCKET TRANSITION ICE 80TQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
DSPIC30F6010T20IP

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DSPIC30F6010T-20I/PF
Manufacturer:
Microchip Technology
Quantity:
10 000
dsPIC30F6010
5. Module: Early Termination of Nested DO
EXAMPLE 4:
6. Module: Reset during RTSP of Program
EXAMPLE 5:
DS80182E-page 4
LOOP1: MOV
LOOP0:
Note:
__AddressError:
When using two DO loops in a nested fashion,
terminating the inner-level DO loop by setting the
EDT(CORCON<11>) bit will produce unexpected
results. Specifically, the device may continue
executing code within the outer DO loop forever.
This erratum does not affect the operation of the
MPLAB C30 compiler.
Work around
The application should save the DCOUNT SFR
prior to entering the inner DO loop and restore it
upon exiting the inner DO loop. This work around
is shown in Example 4.
If a device reset occurs while an RTSP operation
is ongoing, code execution after the reset may
lead to an Address Error Trap.
Work around
The user should define an Address Error Trap
service routine as shown in Example 5 in order to
allow normal code execution to continue.
bclr
bclr
reset
.include "p30fxxxx.inc"
.......
DO #CNT1, LOOP0
....
PUSH
DO
....
BTSS
BSET
....
....
POP
...
For details on the functionality of
EDT bit, see section 2.9.2.4
in the dsPIC30F Family Reference
Manual.
MOV
RCON, #TRAPR
INTCON1, #ADDRERR
Loops
Flash Memory
DCOUNT
#CNT2, LOOP1
Flag, #0
CORCON, #EDT;Terminate inner
W1, W5
DCOUNT
W5, W8
;Outer loop start
;Save DCOUNT
;starts
;DO-loop early
;Inner loop ends
;Restore DCOUNT
;Outer loop ends
;Clear the Trap
;Software reset
;Reset Flag Bit
;Address Error
;trap flag bit
;Inner loop
;Clear the
Advance Information
7. Module: Y-Space Data Dependency
EXAMPLE 6:
EXAMPLE 7:
:Unexpected Results!
:Correct Results!
When an instruction that writes to a location in the
address range of Y-data memory (addresses
between 0x1800 and 0x27FF) is immediately
followed by a MAC-type DSP instruction that reads
a location also resident in Y-data memory, the two
operations will not be executed as specified. This
is demonstrated in Example 6.
Work around
Work around 1:
Insert a NOP between the two instructions as
shown in Example 7.
Work around 2:
If work around #1 is not feasible due to application
real-time constraints, the user may take precau-
tions to ensure that a write operation performed on
a location in Y-data memory is not immediately
followed by a DSP MAC-type instruction that
performs a read operation of a location in Y-data
memory.
MOV
MOV
MOV
MAC
MOV
MOV
MOV
NOP
MAC
#0x090A, W0
#0x09B0, W10
W2, [W0++]
W4*W5, A, [W10]+=2, W5 ;Perform
#0x090A, W0
#0x09B0, W10
W2, [W0++]
W4*W5, A, [W10]+=2, W5 ;Perform
 2004 Microchip Technology Inc.
;Load address > =
;0x900 into W0
;Load address >=
;0x900 into W10
;Perform indirect
;write via W0 to
;address >= 0x900
;read operation
;using Y-AGU
;Load address > =
;0x900 into W0
;Load address >=
;0x900 into W10
;Perform indirect
;write via W0 to
;address >= 0x900
;No operation
;read operation
;using Y-AGU

Related parts for DSPIC30F6010T-20I/PF