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.

Slides:



Advertisements
Similar presentations
Introduction to PIC Microcontrollers
Advertisements

Microprocessors A Beginning.
MC68HC11 System Overview. System block diagram (A8 version)
Microcontroller – 3 PIC.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Microprocessor and Microcontroller
Course Overview and The 8051 Architecture
Processor System Architecture
Microcontroller – PIC – 4 PIC types PIC architecture
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 29: Microcontroller intro.
Smarter systems and the PIC® 18FXX2 Chapter One 12.1 – 12.5 Dr. Gheith Abandah1.
The 8051 Microcontroller Architecture
ASPPRATECH.
Microprocessor and Microcontroller Based Systems
Microcontroller: Introduction
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Chapter 4 Starting to Program – an Introduction to Assembler The aims of this chapter are to introduce: the essentials of Assembler programming; the Microchip.
The 8051 Microcontroller architecture
The domestic refrigerator-An example A car door mechanism.
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.
Atmega32 Architectural Overview
Minimum Systems and the PIC 16F84A Chapter Two Dr. Gheith Abandah1.
Basic Architecture Lecture 15. In general, if the number of bits is n, then the number of different combinations of 0s and 1s that can be made is 2 n.
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the CPU architecture.
MICROCONTROLLER SYSTEMS Part 1. Figure 1.1Elements of a digital controller CPU Central Processing Unit Input Peripherals Output Peripherals ROM Read Only.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Chapter 7 Larger Systems and the PIC 16F873A The aims of this chapter are to introduce: The architecture of the 16F873A microcontroller; The 16F873A memory.
Microcontrollers Class : 4th Semister E&C and EEE Subject Code: 06ES42
Electronic Analog Computer Dr. Amin Danial Asham by.
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.
Programmable Logic Controllers LO1: Understand the design and operational characteristics of a PLC system.
Presented by Sadhish Prabhu
Features of the PIC18 microcontroller - 8-bit CPU - 2 MB program memory space (internal 32KB to 128KB) bytes to 1KB of data EEPROM - Up to 4096 bytes.
Chapter 12 Some PIC Microcontroller Advances The aims of this chapter are to introduce: To introduce in overview two microcontrollers which show some enhanced.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
Chapter 3 Parallel Ports, Power Supply and the Clock Oscillator The aims of this chapter are to introduce: Why we need parallel input/output; How simple.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Chapter Microcontroller
Components of a typical full-featured microcontroller.
15: Microprocessor and microcontroller
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
BATCH MEMBERS R.ABHISHEK-08N41A0401 K.DHEERAJ REDDY-08N41A0412 S.RAJENDRA REDDY-08N41A0458 JYOTHISHMATHI COLLEGE OF ENGINEERING AND TECHNOLOGY,TURKAPALLY.
Dr. Iyad Jafar Introducing the PIC 16 Series and the 16F84A.
An Introduction to Embedded Systems, and the PIC Microcontroller Lecture 8: Interrupts The aims of this session are to explore the structure and application.
Popular Microcontrollers and their Selection by Lachit Dutta
PROGRAMMABLE LOGIC CONTROLLERS SINGLE CHIP COMPUTER
Atmega32 Architectural Overview
For further information
Microprocessor Systems Design I
UNIT – Microcontroller.
MCU – Microcontroller Unit – 2
Microprocessor Systems Design I
Course Overview and The 8051 Architecture
Project Title EVM IN PIC Under the Guidance of Submitted by.
The Arduino Microcontroller: Atmel AVR Atmega 328
Introduction to Microprocessors and Microcontrollers
Tiny Computers, Hidden Control
EE Embedded Systems Fall 2015
Introducing the PIC Mid-Range Family and the 16F84A
8051 Micro Controller.
EECE.3170 Microprocessor Systems Design I
Microcontroller – 2 PIC.
MCU – Microcontroller Unit – 2
Presentation transcript:

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 architecture of the 16F84A The 16F84A memory, and a review of memory technologies Other hardware features of the 16F84A, including reset. Designing Embedded Systems with PIC Microcontrollers: Principles and Applications 2 nd Edition. Tim Wilmshurst

Some Examples of the Microchip Mid-Range Family Device numberNo. of pins* Clock speed Memory (K = Kbytes, i.e bytes) Peripherals/special features 16F84A18DC to 20MHz 1K program memory, 68 bytes RAM, 64 bytes EEPROM 1 8-bit timer, 1 5-bit parallel port, 1 8-bit parallel port, ICSP. 16LF84A 18DC to 20MHz as aboveAs above, with extended supply voltage range 16F84A-04 18DC to 4MHz as aboveAs above 16F87 18DC to 20MHz 4K program memory, 368 bytes RAM, 256 bytes EEPROM. 2 parallel ports, 3 counter/timers, 2 capture/compare/PWM modules, 2 serial communication modules, 2 analog comparators, nanoWatt technology, software-selectable oscillator block, ICSP. 16F88 18DC to 20MHz as aboveas above, and 7 10-bit ADC channels

The 16F84A Microcontroller: Pin Connection Diagram The 16F84A is available as an 18-pin device. The pin connection diagram is shown here. This won’t make much sense just yet, but in the coming sessions you will be surprised how quickly you get to know what most (if not all) of these pins are used for. In the book, the 16F84A is used as an example in an electronic ping-pong game.

The PIC 16F84A Block Diagram We are going to look at the block diagram of the 16F84A, straight from the manufacturer’s data sheet, shown below right. A good understanding of the block diagram leads to an ability to design with the microcontroller, and to program it. In the diagram, you should in time be able to recognise all the basic features of a microcontroller, as shown in the previous slide set, and repeated below left. Let’s pick out the main features of the 16F84A, in the coming slides.

The CPU Address for Program Memory Data from Program Memory, carrying instruction word Address for Data Memory Data bus for Data Memory and peripherals Program Memory Data Memory The 16F84A Block Diagram – the main features Extra “non- volatile” Data Memory Counter/Timer Peripheral Digital Input/ Output Ports It is easy to see the Program memory, which uses Flash memory technology. Alongside this comes the Stack, which we meet later. Microchip call the main data memory “File Registers”. There is another section of data memory which uses EEPROM technology.

The Instruction word flows here. The word will contain the instruction, and maybe also address and data information Address info. flows here Instruction info flows here The 16F84A Core and Instruction Flow The core is the “microprocessor inside the microcontroller”, centred around the ALU. It is interesting to see the path that the instruction takes from program memory. “Literal” data flows along here The Arithmetic Logic Unit The “Working Register”

The Status Register Condition Code Flags

Program Counter 16 Series instructions which invoke the Stack Unimplemented memory space, still addressable by the 13-bit 16F84A program address bus. Program Counter points to locations in program memory The program must start here The Interrupt Service Routine must start here Program Memory and Stack

msb is “bank select bit” (Status register). Data Memory and Special Function Register Map These are the Special Function Registers, which allow the CPU to interact with the peripherals General purpose memory

Interfacing with Peripherals – the Special Function Register Microcontroller Interaction with its Peripherals, via Special Function Register (SFR) and Interrupt  microcontroller peripherals can be configured in software to operate in a number of different modes, to do this certain control data must be sent to them to set them up in the desired way  once in use, there will be data flow between core and peripheral,  there may still be need for further control data,  these needs are commonly met by means of dedicated, memory - mapped registers, sometimes called Special Function Registers,  this approach gives the microcontroller manufacturer great flexibility to extend a microcontroller family – SFRs for new peripherals can easily be located in gaps in the memory map.

The configuration word determines certain operating features of the microcontroller. It is in program memory, but cannot be accessed in normal operation. It is written to during the programming process. You set its value either by response to a dialogue box in MPLAB, or by use of Assembler Directives, at the head of your programme. The 16F84A Configuration Word

Instruction Pipelining

External Reset Inputs b) Power-on Reset, with Discharge Diode and Protective Resistor a) Power-on Reset c) User Reset Button If held in “Reset”, the microcontroller action is frozen – program execution does not take place. When it leaves reset, program execution starts, at the Reset Vector. In each of these circuits the microcontroller remains in the reset state as long as its Reset pin is held low.

16F84A Simplified Reset Circuit Notice that (if enabled) the Power-up Timer (PWRT) can hold the 16F84A in reset for a short period of time. This means that the external R-C connected to the Reset input is not needed.

The PIC mid-range is a diverse and effective family of microcontrollers. The 16F84A architecture is representative of all mid-range 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. Summary End of Lecture Note