Microchip's PICs 8 and 16 bits

31
Microchip’s PICs 8 & 16 bit Guido Ottaviani AKA: Guiott [email protected] www.officinerobotiche.it www.guiott.com

Transcript of Microchip's PICs 8 and 16 bits

Microchip’s PICs8 & 16 bit

Guido OttavianiAKA: Guiott

[email protected]

www.officinerobotiche.itwww.guiott.com

MCU vs CPU

Harvard Architecture

Programming models

Direct programming

Real Time Operating System

High level Operating System

Latency & Response Time

Synchronization

micro seconds timing

Real time operations

Microchip controllers family

www.microchip.com/maps/microcontroller.aspx

Development Boards

Documentation

Buy & sample

8-bit Family

PIC18F Peripherals

16-bit Performance Options

dsPIC33 & PIC 24 Peripherals

8-bit PICs Interrupt

PIC 12-16

PIC 18

16-bit PICs Interrupt

Peripherals + Interrupts

What Defines Low Power?

Power Saving TechniquesMode Core FLASH Peripherals Voltage

Regulator RAMSavings

over RUN Mode

Of Note

Run ON ON ON ON ON 0 Full current consumption.

DozeSlower Clock Rate

Slower Clock Rate

ON ON ON 25-65% CPU is slowed down to as much as 1/128 of its Run mode speed.

Idle OFF OFF ON ON ON 0,7 Use in moments when code execution is not needed

Sleep OFF OFFOFF - Except for peripherals with their own clock

ON ON 70% - 85%RAM and registers maintained. Latencies of up to tens of microseconds are expected.

Low Voltage Sleep

OFF OFFOFF - Except for peripherals with their own clock

Low Voltage Enabled ON 0,9 For longer-term sleep than Sleep,

when longer latencies are acceptable.

Deep Sleep OFF OFF OFF OFF OFF 97%+

Most of the MCU is OFF except for maybe a timer, interrupt handling, and a Real Time Clock and Calendar.

Integrated Development Environment

www.microchip.com/developmenttools

MplabX IDE

Development Tools Data Flow

Debugging Techniques

ICD3

Programmers / Debuggers

38€

158€

395€

Debugger comparison

Useful Links

•www.microchip.com•microchip.wikidot.com•www.officinerobotiche.it•www.roboitalia.com•www.droids.it

On Line Shops•www.microchipdirect.com•www.robot-italy.com•www.robot-domestici.it•www.watterott.com•www.olimex.com•www.coolcomponents.co.uk•it.rs-online.com•it.farnell.com•www.mouser.it•www.digikey.it

Thank you

Guido OttavianiAKA: guiott

E-mail: [email protected]: www.guiott.com

code: code.google.com github.com/guiott