my seminar part two
DESCRIPTION
SeminarTRANSCRIPT
IN THE LAST CLASS..• Different MCU manufacturers• Most favorable MCU’s for beginners–Microchip PIC –Atmel’s MCUs–8051
• Why PIC is Popular?
MCU FAMILIES
PIC FAMILIES
8 Bit MCU’s
PIC 10
PIC 12
PIC 16
PIC 18
PIC 10F/12F FAMILY
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
PIC 16F Family
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
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
SPI
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.
I2C
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
PIC 18 Series
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
16 Bit MCU’s
PIC 24F Series
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
PIC24H Family
Typical CPU-UART Interaction
UART Data Handling with DMA
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
dsPIC Family
dsPIC30F Family
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)
dsPIC33F Block Diagram
dsPIC33 • 40 MIPS• 18-100 pin Devices• DMA Controlled Peripherals• Codec Interface
FASTER
LARGER
32 bit PIC MCU’s
PIC 32 Family
PIC 32 Products
• Up to1.65 MIPS/MHz• DMA controlled Peripherals• 16-Bit Parallel Master Port• USB OTG with Dedicated DMA
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
Data Retention