Minimum Systems and the PIC 16F84A Chapter Two Dr. Gheith Abandah1.

Slides:



Advertisements
Similar presentations
Introduction to PIC Microcontrollers
Advertisements

Computer Organization and Architecture
Computer Organization and Architecture
Microcontroller – 3 PIC.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Microcontroller – PIC – 4 PIC types PIC architecture
Introduction to Chapter 12
ECE 301 – Digital Electronics Memory (Lecture #21)
Chapter 10. Memory, CPLDs, and FPGAs
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Static Memory Outline –Types of Static Memory –Static RAM –Battery Backup –EPROM –Flash Memory –EEPROM Goal –Understand types of static memory –Understand.
Introducing Embedded Systems and the Microcontrollers
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 30: PIC data memory.
Parallel ports, power supply, and the clock oscillator Chapter Three Dr. Gheith Abandah1.
Smarter systems and the PIC® 18FXX2 Chapter One 12.1 – 12.5 Dr. Gheith Abandah1.
The 8051 Microcontroller Architecture
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Micro controllers A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package.
MCU – Microcontroller Unit – 1 MCU  1 cip or VLSI core – application-specific.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
Faculty of Information Technology Department of Computer Science Computer Organization and Assembly Language Chapter 5 Internal Memory.
Memory and Programmable Logic
Lecture#14. Last Lecture Summary Memory Address, size What memory stores OS, Application programs, Data, Instructions Types of Memory Non Volatile and.
Introduction to Computing: Lecture 4
Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush.
ECE Lecture 1 1 Introduction to Microcontrolllers Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
Memory and Programmable Logic Memory device: Device to which binary information is transferred for storage, and from which information is available for.
CIM101 : Introduction to computer Lecture 3 Memory.
S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
Computer Architecture Lecture 24 Fasih ur Rehman.
Architecture and instruction set. Microcontroller Core Features:  Operating speed: DC - 20 MHz clock input DC ns instruction cycle Up to 8K x.
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
Presented by Sadhish Prabhu
Architectural Considerations A Review of Some Architectural Concepts.
DIGITAL SYSTEMS Read Only– and Random Access Memory ( ROM – RAM) Rudolf Tracht and A.J. Han Vinck.
STATUS REGISTER  It is a group of flip-flops. But it is not used to store data.  Each bit in the status register is used to indicate a particular condition.
Components of a typical full-featured microcontroller.
AVR Architecture Prepared By: Avdhesh Soni ( ) Sarthak Patel ( ) Akshay Parekh ( ) Fenil Sachla ( ) Guided.
15: Microprocessor and microcontroller
Dr. Iyad Jafar Introducing the PIC 16 Series and the 16F84A.
Memory Organization 1.  3 types of memory are used in PIC18 microcontroller devices: Program Memory - Flash Memory Data RAM - Static RAM Data EEPROM.
Chapter 5 Internal Memory
AVR ATMEGA 8 MICRO-CONTROLLER
Recap DRAM Read Cycle DRAM Write Cycle FAST Page Access Mode
Internal Memory.
MCU – Microcontroller Unit – 2
Introduction Definition of Embedded Systems Examples
Project Title EVM IN PIC Under the Guidance of Submitted by.
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
The Arduino Microcontroller: Atmel AVR Atmega 328
William Stallings Computer Organization and Architecture 8th Edition
Introduction to Microprocessors and Microcontrollers
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
BIC 10503: COMPUTER ARCHITECTURE
Architectural Overview
Introduction to Computing Chapter 0
Introducing the PIC Mid-Range Family and the 16F84A
MICROPROCESSOR MEMORY ORGANIZATION
8051 Micro Controller.
Microcontroller – 2 PIC.
William Stallings Computer Organization and Architecture 8th Edition
Presentation transcript:

Minimum Systems and the PIC 16F84A Chapter Two Dr. Gheith Abandah1

Outline Review of Memory Technologies The PIC 16 Series PIC 16F84A The PIC 16F84A Memory The Oscillator Instruction Cycle Power-up and Reset Dr. Gheith Abandah2

Review of Memory Technologies Dr. Gheith Abandah3 Read Only Memory (ROM) Random Access Memory (RAM): Read/Write Static RAM (SRAM): Each cell is a simple flip-flop of six transistors, CMOS, volatile Programmable ROM (PROM): Each cell is one transistor, MOS, non-volatile, plastic package. Erasable PROM (EPROM): Each cell is one transistor, MOS, non-volatile, erasable with ultraviolet light, ceramic package with quartz window.

Review of Memory Technologies – cont. Dr. Gheith Abandah4 Electrically EPROM (EEPROM): Each cell is one transistor with additional transistors for programming, MOS, non-volatile, erasable electrically (takes time), suffers from wear. Flash Memory: Each cell is one transistor, MOS, non- volatile, erasable electrically (takes time) in blocks, suffers from wear, popular.

The PIC 16 Series DevicePinsClockMemoryFeatures 16F84A18≤ 20 MHz1 K ROM 68 B RAM 64 B EEPROM 1 8-bit timer 1 5-bit port 1 8-bit port 16LF84AExtended supply voltage range 16F84A-04≤ 4 MHz Dr. Gheith Abandah5

The PIC 16 Series DevicePinsClockMemoryFeatures 16F873A28≤ 20 MHz4 K ROM 192 B RAM 128 B EEPROM 3 parallel ports, 3 counter/timers, 2 capture/compare/PWM, 2 serial, 5 10-bit ADC, 2 comparators 16F874A40≤ 20 MHz4 K ROM 192 B RAM 128 B EEPROM 5 parallel ports, 3 counter/timers, 2 capture/compare/PWM, 2 serial, 8 10-bit ADC, 2 comparators Dr. Gheith Abandah6

The PIC 16 Series DevicePinsClockMemoryFeatures 16F876A28≤ 20 MHz8 K ROM 368 B RAM 256 B EEPROM 3 parallel ports, 3 counter/timers, 2 capture/compare/PWM, 2 serial, 5 10-bit ADC, 2 comparators 16F877A40≤ 20 MHz8 K ROM 368 B RAM 256 B EEPROM 5 parallel ports, 3 counter/timers, 2 capture/compare/PWM, 2 serial, 8 10-bit ADC, 2 comparators Dr. Gheith Abandah7

PIC 16F84A Dr. Gheith Abandah8

PIC 16F84A Architecture Dr. Gheith Abandah9

The 16F84A Status Register C: Carry/Borrow’ DC: Digit Carry/Borrow’ Z: Zero PD’: Power Down TO’: Time Out RP0: Register Bank Select RP1, IRP: Not implemented Dr. Gheith Abandah10

The 16F84A Memory Dr. Gheith Abandah11 MemoryTechnologySizeFeatures ProgramFlash1K x 14 bits 10,000 erase/write cycles Data (File Registers) SRAM68 Bytes Retains data down to 1.5 V Data (EEPROM)EEPROM64 Bytes 10,000,000 erase/write cycles StackSRAM8 x 13 bits

Program Memory and Stack Dr. Gheith Abandah12

Configuration Word Dr. Gheith Abandah13 Allows the user to define certain configurable features of the microcontroller, at the time of program download.

Data memory and Special Function Registers Dr. Gheith Abandah14 FSR: File Select Register for indirect addressing. EEADR: EEPROM Address EEDATA: EEPROM Data EECON1: Control; RD, WREN, WR, EEIF EECON2: 55 H to AA H

The Oscillator Dr. Gheith Abandah15 It is necessary to provide the ‘clock’ signal. The clock is a continuously running fixed frequency logic square wave. The overall speed of the microcontroller operation is entirely dependent on this clock frequency. Higher frequency -> Higher Performance and higher power consumption.

Instruction Cycle Dr. Gheith Abandah16 The main oscillator signal is divided by 4 to produce the instruction cycle time.

Pipelining All PIC microcontrollers implement pipelining. Pipelining fails when one instruction changes the contents of the Program Counter. Dr. Gheith Abandah17

Power-up and Reset At power-up, the Program Counter is forced to zero and the SFRs are reset so that peripherals are initially in a safe and disabled state. There is also a master clear input MCLR’. Dr. Gheith Abandah18

Summary The PIC 16 Series is a diverse and effective family of microcontrollers. The 16F84A architecture is representative of all 16 Series microcontrollers, with Harvard structure, pipelining and a RISC instruction set. The PIC 16F84A has a limited set of peripherals, chosen for small and low-cost applications. It is thus a smaller member of the family, with features that are a subset of any of the larger ones. The 16F84A uses three distinct memory technologies for its different memory areas. A particular type of memory location is the Special Function Register, which acts as the link between the CPU and the peripherals. Reset mechanisms ensure that the CPU starts running when the appropriate operating conditions have been met, and can be used to restart the CPU in case of program failure. Dr. Gheith Abandah19