0% found this document useful (0 votes)
80 views

Lecture 02 - Microcontroller Core Features and Architecture

Uploaded by

Awais
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

Lecture 02 - Microcontroller Core Features and Architecture

Uploaded by

Awais
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Microcontroller Core Feature and

Architecture
Lecture No. 02

1
2 Course Contents
 Comparison of Controller and Processor
 Microcontroller Core Features and Architecture
 PIC 16F877A –
 Device Overview – Features and Architecture
 Memory Organization
 Instruction Set Summary
 Input / Output Ports of PIC
 Data EEPROM and Flash Memory
 Timer Modules
 Serial Port Operations
 Capture / Compare / PWM (CCP) Modules
 Analog-to-Digital Converter Module
 Interrupts
3 Processor vs Controller Differences
 Hardware Architecture
 Single IC vs Multiple ICs
 High vs Low Clock Speed
 Interrupt Handling Capability

 Application
 (Microcontroller)
 Specific Task / Embedded System
 Low Cost
 Control and Display Oriented

 Microprocessor
 Multipurpose
 Processing Oriented
 Higher Cost

 Instruction Set Summary


 Processor – Processing Intensive, works on Byte, Word and
Double Word. Has Privileged Instruction. Has Larger
Instruction Set
 Microcontroller – Control Intensive, can work on half Byte and
Bits. Has smaller Instruction Set
4 Few Definitions
 World of Numbers – Binary, Octal, Hex numbers arithmetic – Refer to Chapter No. 1 of
Digital Design by Morris Mano. And Chapter 0 Introduction of Milan Verle Book

 Bit – Unit of Information, indicates one binary digit – 0 or 1


 Byte – Group of 8-bits is called Byte
 Nibble – Four bits (Upper or Lower ) out of a Byte
 Word – 16 Bits or Two Bytes Concatenated together Usually Consecutive
 Register – Or memory, an electronic circuit that can hold or memorize the state of one
Byte
 Memory – ROM, RAM, OTP, Masked ROM, UV EPROM, RAM, EEPROM
 RISC and CISC Processors
5 Typical Features of PIC 16F887A
 High-Performance RISC CPU:
 Only 35 single-word instructions to learn
 All single-cycle instructions except for program branches, which are two-cycle
 Operating speed: DC – 20 MHz clock input
 DC – 200 ns instruction cycle
 Up to 8K x 14 words of Flash Program Memory,
 Up to 368 x 8 bytes of Data Memory (RAM),
 Up to 256 x 8 bytes of EEPROM Data Memory
 Pinout compatible to other 28-pin or 40/44-pin
 Powerful Peripheral Features
6 Typical Features of PIC. . . Continued
 Powerful Peripheral Features
 Usually 3 Timers
 Pulse Width Modulation with10-bit
 Synchronous Serial Port (SSP) with SPI™
 (Master mode) and I2C™ (Master/Slave)
 Universal Synchronous Asynchronous Receiver Transmitter (USART/SCI) with 9-bit address detection
 Parallel Slave Port (PSP) – 8 bits wide with external RD, WR and CS controls (40/44-pin only)
 Brown-out detection circuitry for Brown-out Reset (BOR)
 Analog Features:
 10-bit, up to 8-channel Analog-to-Digital Converter (A/D)
 Brown-out Reset (BOR)
 Analog Comparator module with: - Two analog comparators - Programmable on-chip voltage reference (VREF) module - Programmable input
multiplexing from device inputs and internal voltage reference - Comparator outputs are externally accessible
 Special Microcontroller Features:
 100,000 erase/write cycle Enhanced Flash program memory typical • 1,000,000 erase/write cycle Data EEPROM memory typical
 Data EEPROM Retention > 40 years
 Self-reprogrammable under software control
 In-Circuit Serial Programming™ (ICSP™) via two pins
 Single-supply 5V In-Circuit Serial Programming
 Watchdog Timer (WDT) with its own on-chip RC oscillator for reliable operation
 Programmable code protection
 Power saving Sleep mode
 Selectable oscillator options
 In-Circuit Debug (ICD) via two pins CMOS Technology:
 Low-power, high-speed Flash/EEPROM technology
7 Device Overview
8 PIC 16F877A Block Diagram

Refer to PIC Data Sheet for Detailed PINOUT Description


9 Memory Organization
 There are three Memory Blocks in PIC 16F887A
 Program Memory : 8K (14 Bits) (0 – 1FFF)
 Data Memory : 512 Bytes (0 – 01FF)
 EEPROM Data Memory : 256 Bytes (0 – 00FF)
10 Program Memory Map
11 Data Memory Map
 Consists of :
 Special Purpose Registers (SFRs) – Core and
Peripheral
 General Purpose Registers to hold user defined
data
12

You might also like