DSPIC30F4012T-20I/ML Microchip Technology, DSPIC30F4012T-20I/ML Datasheet - Page 2

IC DSPIC MCU/DSP 48K 44QFN

DSPIC30F4012T-20I/ML

Manufacturer Part Number
DSPIC30F4012T-20I/ML
Description
IC DSPIC MCU/DSP 48K 44QFN
Manufacturer
Microchip Technology
Series
dsPIC™ 30Fr

Specifications of DSPIC30F4012T-20I/ML

Core Processor
dsPIC
Core Size
16-Bit
Speed
20 MIPS
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, Motor Control PWM, QEI, POR, PWM, WDT
Number Of I /o
20
Program Memory Size
48KB (16K x 24)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
2.5 V ~ 5.5 V
Data Converters
A/D 6x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
44-QFN
For Use With
XLT44QFN4 - SOCKET TRANS ICE 28DIP TO 44QFN
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
DSPIC30F4012T20IM
dsPIC30F4011/4012
1. Module: Data EEPROM
FIGURE 1:
EXAMPLE 1:
DS80205C-page 2
.include
.section
.align 4
.hword 0xF345
.byte
.byte
.hword 0x1234
.byte
.byte
The Most Significant bit of every fourth byte in data
EEPROM may be corrupted on any write opera-
tion. This write corruption may occur while using
either PRO MATE
Self-Programming (RTSP).
Figure 1 shows the first twelve bytes in data
EEPROM and indicates the affected bits.
Work around
Work Around 1:
Use program Flash memory instead of data
EEPROM to store constant data.
Work Around 2:
Use less than 16 bits in each word in the available
word of data EEPROM, excluding the Most
Significant bit.
Work Around 3:
Avoid using every fourth byte. Example 1 shows
how the ASM30 assembler can be used to allocate
data in the EEPROM under this constraint.
(Odd Address)
Note 1: The shaded bits labelled “B” represent the bits that may be corrupted on a write operation.
0x7FFC0B
0x7FFC01
0x7FFC03
0x7FFC05
0x7FFC07
0x7FFC09
High Byte
0x23
0xFF
0x23
0xFF
2: The memory map shown here depicts only the first twelve bytes of device EEPROM.
"p30f4012.inc"
.eedata, "r"
dsPIC30F4011/4012 DATA EEPROM
®
, MPLAB ICD 2 or Run-Time
B
B
B
15 14 13 12 11 10
;Unused byte
;Unused byte
9
8
7
6
2. Module: CPU –
EXAMPLE 2:
L0:DAW.b
L1: ....
5
The Decimal Adjust instruction, DAW.b, may
improperly clear the Carry bit, C (SR<0>), when
executed.
Work around
Check the state of the Carry bit prior to executing
the DAW.b instruction. If the Carry bit is set, set the
Carry bit again after executing the DAW.b instruc-
tion. Example 2 shows how the application should
process the Carry bit during a BCD addition
operation.
4
.include "p30f4012.inc"
.......
MOV.b
MOV.b
ADD.b
BRA
DAW.b
BSET.b SR, #C
BRA
3
2
#0x80, w0
#0x80, w1
w0, w1, w2 ;Perform addition
NC, L0
w2
L1
w2
1
0
DAW.b
© 2004 Microchip Technology Inc.
(Even Address)
;First BCD number
;Second BCD number
;If C set go to L0
;If not,do DAW and
;set the carry bit
;and exit
0x7FFC0A
0x7FFC00
0x7FFC02
0x7FFC04
0x7FFC06
0x7FFC08
Low Byte
Instruction

Related parts for DSPIC30F4012T-20I/ML