Introduction to the PIC 8-bit Midrange Familyseniordesignlab.com › ... ›...

Post on 05-Jul-2020

10 views 0 download

transcript

Microcontrollers

ECE Senior Design

14 February 2018

Introduction to the

PIC 8-bit Midrange Family

Popular Microcontrollers

• 8051 – Intel then Everyone (8-bit old)

• PIC – Microchip (8, 16 & 32bit)

• AVR – Atmel (8 & 32bit)

• MSP430 – TI (low power 16-bit)

• ARM Cortex – ARM Limited (32 bit)

• 68HCSxx – Motorola/freescale-NXP (old)

• PSoC – Cypress (M8C, 8051,ARM)

• Nios II / MicroBlaze – Altera / Xilinx (sc)

Blue = commonly used in Senior Design

What the does PIC stand for anyway?

PIC – “Peripheral Interface Controller”

The original PIC was

designed to be a

Peripheral Interface

Controller for 6502

microcontroller from

Rockwell late 70's.

Why did we choose Microchip

PIC Family of Microcontrollers?

• Free development software MPLAB IDE (Includes a Simulator)

• Low cost development hardware (Boards starting at $10)

• Devices are easy to obtain through distributors and can be sampled

• A wide range of devices are available with varying feature sets

• Microchip is in continuous development of new PIC devices

• Has a large online support community

• Wide acceptance in industry over 15 Billion units shipped (1B/yr)

Datasheet Feature Page 16F18324

• Datasheet PIC16F18324

• Processor Structure of the PIC16F18324

• Device Pins for the PIC16F18324

Microcontroller Block Diagram

GPIO PIC16F18324

• Port A (RA0, RA1, RA2, RA3, RA4, RA5)

• Port C (RC0, RC1, RC2, RC3, RC4, RC5)

Generic Port Structure

TRIS: Hi-Z (input)

TRIS: Output

TRISIA Register

Blink an LED

Blink an LED

LATA Register

Read a Switch

Read a Switch

PORTA Register

ANSELA Register

Program Memory

Map and Stack

• Reset Vector - 0000h

• Interrupt Vector - 0004h

• Program Memory - 4096

• Stack Depth - 16

Data Memory (32 Banks total)