INTRODUCTION To dsPIC30F2010 MICROCONTROLLER (original) (raw)

I have already posted a article on introduction to dspic microcontrollers. Today’s our subject will be about dsPIC30f2010 Microcontroller, where we discuss its basic introduction, feature and pin out as well.In it, the core always has 24 bit instructional word. PC (Program Counter) is 23 bits extensive with LSb (least significant bit) and the MSb (most significant bit) is always ignored during the normal running of program except for some certain conditions or instructions. Then the PC addresses up to 4M instructional words. There it uses an instructional mechanism just to maintain a throughput. Program loop uses the DO and REPEAT instructions. These both are interruptible at any point of program. 16 x 16 bit register act as data, address and offset register.When we talk about data space which is 64 Kbytes (32K words) and split into 2 blocks referred as X and Y data memory. Both of these blocks has its own Address Generation Unit (AGU).

There is a specification of X and Y in dsPIC30f2010 Microcontroller that these are device specific and could not be altered by their users. While overhead free circular buffer are supported in both X and Y address space.The core maintenance Inherent, Relative, Literal, Register Offset, Register Direct, Register Indirect, Literal Offset Addressing Modes. Most of the instructions are related to the predefined Addressing modes and depending upon their functional specifications.In most of the instructions, core is clever enough to run a program data memory read, a data memory write, and an instruction memory read per its instruction cycle.And core does not backing or support a multi-stage data pipeline but a single stage data prefetch mechanism is used here, which partially decodes instructions a cycle ahead of running, just to increase available running time. Most of the data/instructions run in a single cycle, with certain exceptions.

Programmer’s Model of dsPIC30f2010 Microcontroller mostly consists of 16 x 16 bit working registers. Some registers as like Status Register (SR), DO and REPEAT register, Program Space Visibility Page registers (PSVPAG), Data Table Page register (TBLPAG) and Program Counter (PC) act as address, data or offset registers. These all are memory mapped. Some of them has a shadow register with each of these registers. Actually the shadow register is used temporarily and these can move its data or contents from its host register on the occurrence of an event. But there is a specific condition occurs that shadow register could not access directly. At working register when a byte operation is performed, at that time just the Least Significant Byte (LSB) of the specific register is affected.

In dsPIC DSC devices, SOFTWARE STACK POINTER or FRAME POINTER are used. W15 is software Stack Pointer (SP), which has the ability to modify automatically by processing , calls and returns. However, W15 could be referenced through any order but in the same manner as like all other W registers. It simplifies the reading, writing and many other manipulations of the Stack Pointer. During a Reset ,W15 is initialized to 0x0800. You may reprogram the SP (Stack Pointer) during initialization to any position within data space. W14 register has been devoted as a Stack Frame Pointer (SP) as defined by the ULNK and LNK instructions.

Pin Layout of Dspic30f2010

pin layout of dspic30f2010

PIN # (n) PIN NAME + DESCRIPTION Port
1 MCLR Master Clear (Reset) input or programming voltage input.
2 EMUD3/AN0/VREF+/CN2/RB0 B
3 EMUC3/AN1/VREF-/CN3/RB1 B
4 AN2/SS1/CN4/RB2 B
5 AN3/INDX/CN6/RB3 B
6 AN4/QEA/IC7/CN6/RB4 B
7 AN5/QEB/IC8/CN7/RB5 B
8 Vss Ground reference for analogue module
9 OSC1/CLKI Oscillator Input
10 OSC2/CLKO/RC15 Oscillator
11 EMUD1/SOSCI/T2CK/U1ATX/CN1/RC13 C
12 EMUC1/SOSCO/T1CK/U1ARX/CN0/RC14 C
13 RC2/CCP1/VDD1A C
14 EMUD2/OSC2/IC2/INT2/RD1 D
15 EMUC2/OC1/IC1/INT1/RD0 D
16 FLTA/INT0/SCK1/OCFA/RE8 E
17 PGD/EMUD/U1TX/SDO1/SCL/RF3 F
18 PGC/EMUC/U1RX/SDI1/SDA/RF2 F
19 Vss Ground
20 VDD Positive Power Supply for analogue module
21 PWM3H/RE5 E
22 PWM3L/RE4 E
23 PWM2H/RE3 E
24 PWM2L/RE2 E
25 PWM1H/RE1 E
26 PWM1L/RE0 E
27 AVSS Analogue Ground
28 AVDD Analogue Power Supply

Features

Now let us discuss the features of dsPIC30F2010 separately.

High-Performance Modified RISC CPU:

DSP Engine Features

Peripheral Features:

Motor Control PWM Module Features:

Quadrature Encoder Interface Module Features:

Analog Features:

Special Microcontroller Features:

CMOS Technology: