Showing posts with label Device families. Show all posts
Showing posts with label Device families. Show all posts

Wednesday, July 19, 2017

Device families leson 02


PIC24 and dsPIC

For extra info on those households of microcontrollers, see % preparation listings § PIC24 and dsPIC sixteen-bit microcontrollers.
In 2001, Microchip brought the dsPIC collection of chips,[9] which entered mass production in past due 2004. they're Microchip's first inherently sixteen-bit microcontrollers. PIC24 gadgets are designed as fashionable motive microcontrollers. dsPIC devices consist of virtual signal processing skills further.

even though nevertheless similar to in advance percent architectures, there are substantial enhancements:[10]

All registers are 16 bits extensive
software counter is 22 bits (Bits 22:1; bit 0 is usually 0)
instructions are 24 bits extensive
data address area extended to 64 KiB
First 2 KiB is reserved for peripheral manage registers
information bank switching is not required except RAM exceeds 62 KiB
"f operand" direct addressing prolonged to 13 bits (8 KiB)
sixteen W registers available for sign up-check in operations.
(however operations on f operands always reference W0.)
instructions are available byte and (sixteen-bit) phrase paperwork
Stack is in RAM (with W15 as stack pointer); there is no hardware stack
W14 is the frame pointer
facts stored in ROM may be accessed immediately ("program area Visibility")
Vectored interrupts for different interrupt sources
a few features are:

(16×sixteen)-bit unmarried-cycle multiplication and other digital sign processing operations
hardware multiply–acquire (MAC)
hardware divide assist (19 cycles for 32/16-bit divide)
barrel moving
bit reversal
hardware guide for loop indexing
direct memory get admission to
dsPICs may be programmed in C the use of Microchip's XC16 compiler (formerly known as C30) which is a variant of GCC.

training ROM is 24 bits extensive. software program can access ROM in 16-bit words, where even words hold the least sizeable sixteen bits of each preparation, and strange words hold the maximum sizeable eight bits. The excessive half of ordinary phrases reads as 0. the program counter is 23 bits wide, but the least vast bit is continually 0, so there are 22 modifiable bits.

commands are available in  fundamental types, with most vital operations (add, xor, shifts, etc.) allowing both forms.

the primary is like the classic p.c instructions, with an operation among a exact f sign in (i.e. the primary 8K of RAM) and a unmarried accumulator W0, with a vacation spot pick bit selecting which is up to date with the end result. (The W registers are reminiscence-mapped. so the f operand may be any W register.)

the second one shape is more traditional, permitting three operands, which can be any of 16 W registers. The vacation spot and one of the assets additionally support addressing modes, allowing the operand to be in reminiscence pointed to by a W register.

PIC32M MIPS-based totally line[edit]
The PIC32M microcontrollers use the MIPS technologies M4K, a 32-bit MIPS32 processor.

PIC32MX

In November 2007, Microchip introduced the PIC32MX circle of relatives of 32-bit microcontrollers, based at the MIPS32 M4K middle.[11] The tool can be programmed the use of the Microchip MPLAB C Compiler for PIC32 MCUs, a variant of the GCC compiler. the first 18 models currently in production (PIC32MX3xx and PIC32MX4xx) are pin to pin well suited and proportion the same peripherals set with the PIC24FxxGA0xx circle of relatives of (sixteen-bit) gadgets permitting using not unusual libraries, software and hardware gear. these days, starting at 28 pin in small QFN packages up to excessive performance gadgets with Ethernet, CAN and USB OTG, complete family range of mid-range 32-bit microcontrollers are to be had.

The PIC32 structure added a variety of of latest capabilities to Microchip portfolio, consisting of:

the best execution speed 80 MIPS (120+[12] Dhrystone MIPS @ 80 MHz)
the biggest flash reminiscence: 512 kB
One instruction in keeping with clock cycle execution
the primary cached processor
allows execution from RAM
complete pace Host/dual position and OTG USB competencies
full JTAG and a couple of-wire programming and debugging
actual-time trace
PIC32MZ[edit]
In November 2013, Microchip added the PIC32MZ collection of microcontrollers, based on the MIPS M14K center. The PIC32MZ collection consist of:[13][14]

252 Mhz core speed, 415 DMIPS
Up to 2 MB Flash and 512KB RAM
New peripherals consisting of high-speed USB, crypto engine and sq.
In 2015, Microchip released the PIC32MZ EF family, the use of the up to date MIPS M5150 Warrior M-elegance processor.[15][16]

In 2017, Microchip added the PIC32MZ DA own family, presenting an included portraits Controller, photos Processor and 32MB of DDR2 DRAM.[17][18]

PIC32MM

In June 2016, Microchip brought the PIC32MM own family, specialised for low-electricity and low-cost packages.[19] The PIC32MM features core-impartial peripherals, sleep modes right down to 500 nA, and 4 x four mm packages.[20]

PIC32MK

Microchip brought the PIC32MK circle of relatives in 2017, specialized for motor control, business control, business net of factors (IIoT) and multi-channel CAN packages.

·   0

Device families

   PICmicro chips are designed with a Harvard structure, and are supplied in numerous tool families. The baseline and mid-range families use 8-bit wide data memory, and the high-stop families use 16-bit information reminiscence. The today's series, PIC32MZ is a 32-bit MIPS-primarily based microcontroller. training phrases are in sizes of 12-bit (PIC10 and PIC12), 14-bit (PIC16) and 24-bit (PIC24 and dsPIC). The binary representations of the system instructions vary by way of circle of relatives and are shown in percent preparation listings.

inside those families, devices may be unique PICnnCxxx (CMOS) or PICnnFxxx (Flash). "C" gadgets are generally categorized both "end-Of-lifestyles" (no longer available), or "not suitable for brand new development" (not actively promoted by Microchip). the program memory of "C" gadgets is variously described as OTP, ROM, or EEPROM. As of October 2016, the only OTP product labeled as "In production" is the pic16HV540. "C" devices with quartz windows (for erasure), are in fashionable not to be had.

PIC10 and PIC12

For extra details on this own family of microcontrollers, see percent training listings § Baseline middle devices (12-bit).
these gadgets characteristic a 12-bit wide code memory, a 32-byte sign up file, and a tiny two degree deep name stack. they're represented through the PIC10 collection, as well as with the aid of some PIC12 and PIC16 devices. Baseline gadgets are available in 6-pin to forty-pin packages.

generally the first 7 to nine bytes of the sign up record are unique-cause registers, and the final bytes are standard motive RAM. tips are applied the usage of a register pair: after writing an address to the FSR (file pick out sign in), the INDF (oblique f) sign in turns into an alias for the addressed check in. If banked RAM is applied, the bank number is chosen by using the high three bits of the FSR. This influences sign in numbers sixteen–31; registers 0–15 are global and now not stricken by the financial institution pick bits.

because of the very constrained check in area (five bits), 4 not often study registers had been not assigned addresses, however written via special commands (option and TRIS).

The ROM address space is 512 phrases (12 bits each), which can be prolonged to 2048 words with the aid of banking. name and GOTO instructions specify the low 9 bits of the new code area; extra high-order bits are taken from the fame sign up. word that a call preparation simplest includes eight bits of address, and can best specify addresses within the first 1/2 of each 512-phrase web page.

lookup tables are applied using a computed GOTO (venture to PCL register) right into a table of RETLW instructions.

This "baseline center" does not aid interrupts; all I/O ought to be polled. There are some "superior baseline" editions with interrupt help and a four-level call stack.

PIC10F32x gadgets feature a mid-range 14-bit extensive code reminiscence of 256 or 512 phrases, a 64-byte SRAM sign in file, and an eight-degree deep hardware stack. these devices are available in 6-pin SMD and 8-pin DIP programs (with  pins unused). One enter handiest and 3 I/O pins are available. A complicated set of interrupts are available. Clocks are an inner calibrated high-frequency oscillator of sixteen MHz with a desire of selectable speeds via software and a 31 kHz low-energy source.

PIC16

For extra info on this family of microcontrollers, see p.c coaching listings § Mid-variety middle gadgets (14 bit), and p.c training listings § stronger mid-variety middle gadgets (14 bit).
those gadgets characteristic a 14-bit wide code reminiscence, and an advanced eight-stage deep call stack. The training set differs little or no from the baseline gadgets, however the  additional opcode bits allow 128 registers and 2048 phrases of code to be immediately addressed. There are some additional miscellaneous instructions, and  additional eight-bit literal commands, upload and subtract. The mid-variety center is available in the general public of gadgets labeled PIC12 and PIC16.

the primary 32 bytes of the sign up space are allotted to special-cause registers; the ultimate ninety six bytes are used for fashionable-reason RAM. If banked RAM is used, the excessive 16 registers (0x70–0x7F) are international, as are among the maximum vital unique-motive registers, such as the fame register which holds the RAM financial institution pick out bits. (the opposite global registers are FSR and INDF, the low eight bits of the program counter PCL, the pc high preload check in PCLATH, and the grasp interrupt control check in INTCON.)

The PCLATH check in components high-order preparation deal with bits while the 8 bits furnished through a write to the PCL check in, or the 11 bits provided by means of a GOTO or call instruction, isn't enough to cope with the to be had ROM area.

PIC17

The 17 collection never became famous and has been outmoded by means of the PIC18 architecture (however, see clones below). The 17 collection isn't always endorsed for new designs, and availability may be restrained to customers.

upgrades over in advance cores are 16-bit huge opcodes (allowing many new instructions), and a sixteen-stage deep name stack. PIC17 gadgets have been produced in applications from forty to sixty eight pins.

The 17 series added a number of essential new functions:[7]

a reminiscence mapped accumulator
read access to code reminiscence (table reads)
direct sign in to check in actions (prior cores needed to circulate registers through the accumulator)
an outside program reminiscence interface to amplify the code space
an eight-bit × 8-bit hardware multiplier
a 2nd oblique sign in pair
car-increment/decrement addressing controlled via manipulate bits in a standing sign in (ALUSTA)
A giant drawback turned into that RAM area turned into constrained to 256 bytes (26 bytes of unique feature registers, and 232 bytes of trendy-purpose RAM), with awkward financial institution-switching in the models that supported extra.

PIC18

For greater info on this own family of microcontrollers, see p.c guidance listings § PIC18 excessive cease middle devices (16 bit).
In 2000, Microchip delivered the PIC18 architecture.[3] unlike the 17 series, it has validated to be very famous, with a huge wide variety of device variations presently in manufacture. In evaluation to earlier devices, which had been more regularly than now not programmed in meeting, C has become the important improvement language.[8]

The 18 collection inherits most of the features and instructions of the 17 series, at the same time as adding a number of critical new functions:

name stack is 21 bits extensive and plenty deeper (31 stages deep)
the call stack may be read and written (TOSU:TOSH:TOSL registers)
conditional branch instructions
listed addressing mode (PLUSW)
extending the FSR registers to 12 bits, permitting them to linearly address the complete facts address area
the addition of some other FSR register (bringing the quantity up to three)
The RAM space is 12 bits, addressed the use of a four-bit financial institution pick out register and an 8-bit offset in each guidance. an extra "get entry to" bit in each instruction selects between bank zero (a=0) and the bank selected through the BSR .

A 1-stage stack is likewise available for the reputation, WREG and BSR registers. they're saved on each interrupt, and may be restored on return. If interrupts are disabled, they will additionally be used on subroutine name/return by way of setting the s bit (appending ", fast" to the education).

the car increment/decrement feature turned into stepped forward by way of casting off the manage bits and adding 4 new oblique registers according to FSR. depending on which indirect document check in is being accessed it's miles feasible to postdecrement, postincrement, or preincrement FSR; or shape the effective cope with by using adding W to FSR.

In greater superior PIC18 devices, an "extended mode" is available which makes the addressing even more favorable to compiled code:

a brand new offset addressing mode; a few addresses which have been relative to the get entry to financial institution at the moment are interpreted relative to the FSR2 check in
the addition of several new instructions, incredible for manipulating the FSR registers.
those adjustments have been by and large aimed toward improving the efficiency of a information stack implementation. If FSR2 is used either because the stack pointer or frame pointer, stack objects can be without difficulty listed – permitting extra efficient re-entrant code. Microchip's MPLAB C18 C compiler chooses to use FSR2 as a frame pointer.
·   0