Features, Comparison & Selection of PIC Microcontrollers

Updated on 2017/11/17 17:34

Syllabus

  • Features, comparison & selection of PIC series as per application

Microchip PIC18F458 Microcontroller Features

  • High-Performance, Enhanced Flash Microcontroller with CAN, in 40-pin PDIP

  • High-Performance RISC CPU

  • Lead-free; RoHS-compliant
  • Operating speed: 40 MHz, Up to 10 MIPS
  • Operating voltage: 4.2-5.5V
  • Industrial temperature range (-40° to +85°C)
  • Linear program memory addressing up to 2 Mbytes
  • Linear data memory addressing up to 4 Kbytes
  • 4-10 MHz oscillator/clock input with PLL active
  • 16-bit wide instructions, 8-bit wide data path
  • Interrupt capability (21 Interrupt Sources) with Priority levels
  • 8 × 8 Single-Cycle Hardware Multiplier
  • 75 instructions
  • Special Microcontroller Features

  • Flash Memory: 32 Kbytes (16,384 words)
  • Data SRAM: 1536 bytes
  • Data EEPROM: 256 bytes
  • Selectable oscillator options, including:
    • 4× Phase Lock Loop of primary oscillator
    • Secondary Oscillator (32 kHz) clock input
  • Power-saving Sleep mode
  • Watchdog Timer with on-chip RC oscillator
  • Programmable Low-voltage Detect
  • In-Circuit Serial Programming via two pins
  • Programmable code protection
  • Programmable Brown-out Reset
  • Power-on Reset
  • Power-up Timer and Oscillator Start-up Timer
  • Peripheral Features

  • 33 I/O pins; 5 I/O ports
  • High current sink/source 25 mA/25 mA
  • Three external interrupt pins
  • Timer0: 8-bit/16-bit timer/counter with 8-bit programmable prescaler
  • Timer1: 16-bit timer/counter
  • Timer2: 8-bit timer/counter with 8-bit period register (time base for PWM)
  • Timer3: 16-bit timer/counter
  • Secondary oscillator clock option -- Timer1/Timer3
  • Capture, Compare, PWM module
    • 16-bit Capture input; max resolution 6.25 ns
    • 16-bit Compare; max resolution 100 ns (TCY)
    • Up to 10-bit PWM (max freq. 156 kHz @ 8-bit; 39 kHz @ 10-bit)
  • Enhanced CCP module also has the following features for advanced motor control:
    • 1, 2 or 4 PWM outputs
    • Selectable PWM polarity
    • Programmable PWM dead time
  • Master Synchronous Serial Port with two modes:
    • 3-wire SPI (supports all 4 SPI modes)
    • I2C Master and Slave
  • Addressable USART, supports interrupt-on-address bit
  • Parallel Slave Port
  • Advanced Analog Features

  • 10-bit Analog-to-Digital Converter
    • Conversion available during Sleep
    • 8 channels available
  • Analog Comparator module
    • Programmable input and output multiplexing
  • Comparator Voltage Reference module
  • Programmable Low-Voltage Detection (LVD) module
    • Supports interrupt-on-Low-Voltage Detection
  • Programmable Brown-out Reset (BOR)
  • CAN Bus Module Features

  • Complies with ISO CAN Conformance Test
  • Message bit rates up to 1 Mbps
  • Conforms to CAN 2.0B Active Spec with:
    • 29-bit Identifier Fields
    • 8-byte message length
    • 3 Transmit Message Buffers with prioritization
    • 2 Receive Message Buffers
    • 6 full, 29-bit Acceptance Filters
    • Prioritization of Acceptance Filters
    • Multiple Receive Buffers for High Priority Messages to prevent loss due to overflow
    • Advanced Error Management Features

Video Lecture for Features and pin description of PIC18F4520


Comparison of PIC Family Members

PIC FamilyNo. of PinsFlash ROMRAMTimersI/O PinsADC input channelsAdditional features
PIC10CXX6896 Bytes64 Bytes42 Channels(8 -bit Digital Result)PWM module
PIC12CXX83.5 KB128-256 Bytes263 Channels(8 -bit Digital Result)USART,PWM module
PIC16FXX14-407 to 28 KB512 Bytes to 2 KB124 Channels(10 -bit Digital Result)WDT,Data E,USART, I2C, SPI-EEPROM,PWM module
PIC18FXX40-1002 MB32 to 128 KB433-7212 Channels(10 -bit Digital Result)USB,12-bit ADC,CAN,I2C,SPI Bus, USART,PWM module

Selection

  1. Speed
  2. Amount of RAM/ ROM
  3. Number of I/O pins, Timers
  4. Power consumption
  5. Availability of tools
  6. Added features like ADC/ DAC/ CCP, Bus support like CAN, SPI, I2C, USB.
  7. Watchdog timer, Timer modes, Data EEPROM etc.

References

Tags:
Created by Sujit Wagh on 2017/08/22 15:22