My Seminar Part Two

31
IN THE LAST CLASS.. •Different MCU manufacturers •Most favorable MCU’s for beginners –Microchip PIC –Atmel’s MCUs –8051 •Why PIC is Popular?

description

Seminar

Transcript of My Seminar Part Two

Page 1: My Seminar Part Two

IN THE LAST CLASS..• Different MCU manufacturers• Most favorable MCU’s for beginners–Microchip PIC –Atmel’s MCUs–8051

• Why PIC is Popular?

Page 2: My Seminar Part Two

MCU FAMILIES

Page 3: My Seminar Part Two

PIC FAMILIES

8 Bit MCU’s

PIC 10

PIC 12

PIC 16

PIC 18

Page 4: My Seminar Part Two

PIC 10F/12F FAMILY

Page 5: My Seminar Part Two

PIC 10F/12F PRODUCTS

• Low pin count & small form factor• Internal 4 & 8 MHz Oscillator• 10-bit A/D converter and comparator• Low Voltage & Power Operation• Flexible program & data memory–2K Flash–128 Bytes RAM–256 Bytes EEPROM

Page 6: My Seminar Part Two

PIC 16F Family

Page 7: My Seminar Part Two

UART• Universal Asynchronous Receiver Transmitter• Advantages of serial communication• Translates data between serial and parallel • Universal → The transmission speeds are

configurable• Start bit - Data - Stop Bit

Page 8: My Seminar Part Two

SPI• Serial Peripheral Interface• Synchronous serial data link named by Motorola• Full duplex mode- Info can travel both directions at same

time• Four Lines• SCK: Serial Clock (output from master)• MOSI: Master Output, Slave Input (Output from master)• MISO: Master Input Slave Output(Output from slave)• SS: Slave Select

Page 9: My Seminar Part Two

SPI

Page 10: My Seminar Part Two

I2C• Inter-Integrated Circuits• Patented by NXP ( Formerly Philips)• Atmel : TWI – Twin Wire Interface• Two Wires– SCL: Serial Clock– SDA: Serial Data

• No Slave Selects (SS) – Uses Addressing• Lines can be pulled low by any device, and are high

when all devices release them.

Page 11: My Seminar Part Two

I2C

Page 12: My Seminar Part Two

PIC 16F Products

• 14-64 pins • Up to 14K Flash,384 Bytes RAM,256

Bytes EEPROM• 10-Bit ADC , Comparators• UART,SPI,I2C• LCD Drivers

Page 13: My Seminar Part Two

PIC 18 Series

Page 14: My Seminar Part Two

PIC 18F Products• 8 bit devices @ 10-16 MIPS• Up to 128 KB Flash,4 KB RAM, 1 KB EEPROM• Advanced Peripherals–USB, Ethernet, CAN–10 & 12 bit ADC–Charge Time Measurement Unit– Integrated LCD Drivers–Peripheral Pin Select

Page 15: My Seminar Part Two

16 Bit MCU’s

Page 16: My Seminar Part Two

PIC 24F Series

Page 17: My Seminar Part Two

PIC24F Products

• 16-Bit Devices @ 16 MIPS• 8-256 KB Flash, 0.5-16 KB RAM, 512 Bytes

EEPROM• Peripheral Pin Select• USB OTG• Charge Time Measurement Unit• nanoWatt XLP eXtreme Low Power

<20nA Sleep Currents

Page 18: My Seminar Part Two

PIC24H Family

Page 19: My Seminar Part Two

Typical CPU-UART Interaction

Page 20: My Seminar Part Two

UART Data Handling with DMA

Page 21: My Seminar Part Two

PIC24H Products• High Speed 16-Bit devices–40 MIPS Performance–12K- 128k Flash, 1k-16k RAM–18-100 pin devices–16-bit core optimized for C–DMA controlled peripherals–10/12-Bit ADC–2xUART, 2xSPI, 2xI2C,CAN

Page 22: My Seminar Part Two

dsPIC Family

Page 23: My Seminar Part Two

dsPIC30F Family

Page 24: My Seminar Part Two

dsPIC30F Products

• 30 MIPS• 18-100 pin Devices• 16 bit core optimized for C• 1 cycle MAC, 2 x 40-bit ACC, Barrel

Shifter• Codec Interface – Highly suited for

speech processing• Quadrature Encoder Interface (QEI)

Page 25: My Seminar Part Two

dsPIC33F Block Diagram

Page 26: My Seminar Part Two

dsPIC33 • 40 MIPS• 18-100 pin Devices• DMA Controlled Peripherals• Codec Interface

FASTER

LARGER

Page 27: My Seminar Part Two

32 bit PIC MCU’s

Page 28: My Seminar Part Two

PIC 32 Family

Page 29: My Seminar Part Two

PIC 32 Products

• Up to1.65 MIPS/MHz• DMA controlled Peripherals• 16-Bit Parallel Master Port• USB OTG with Dedicated DMA

Page 30: My Seminar Part Two

WHICH PIC?• Basic circuits - 8 Bit PIC’s– LED controls,Switches,basic ADC,DAC,SPI,I2C and

UART • Complex Circuits – 16 Bit PIC’s– Ethernet

• Digital Signal Processing – dsPIC’s– Speech Recognition, Audio Processing

• Most complex circuits – 32 Bit PIC’s–CAN, Ethernet

Page 31: My Seminar Part Two

Data Retention