INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.

Slides:



Advertisements
Similar presentations
Introduction to PIC Microcontrollers
Advertisements

PROGRAMMABLE PERIPHERAL INTERFACE -8255
MC68HC11 System Overview. System block diagram (A8 version)
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Chapter 2 HARDWARE SUMMARY
8051 Core Specification.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Microprocessor and Microcontroller
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Microcontroller – PIC – 4 PIC types PIC architecture
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Microprocessor Systems Design I Instructor: Dr. Michael Geiger Fall 2013 Lecture 26: PIC microcontroller intro.
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 30: PIC data memory.
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 29: Microcontroller intro.
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
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.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
ECE/CS-352: Embedded Microcontroller Systems Embedded Microcontroller Systems.
Minimum Systems and the PIC 16F84A Chapter Two Dr. Gheith Abandah1.
By, Prof. Tambe S. S. S.N.D. College of Engineering and Research Center Department of Electrical Engineering.
Directives, Memory, and Stack. Directives Special commands to the assembler May or may not generate machine code Categories by their function Programming.
Lecture 2 Silicon Labs C8051F020 System Overview.
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
Computer Organization CT213 – Computing Systems Organization.
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.
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.
Training program: Mechanic - electrotechnician Program name: Digital processing - microprocessors III. class Microcontrollers Elaborated by: Vlastimil.
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,
Programmable Interrupt Controller (PIC)
Presented by Sadhish Prabhu
ECE 371 Microprocessor Interfacing
8051 Micro Controller. Microcontroller versus general-purpose microprocessor.
Kustanto,S.T.,M.EngECE/CS-352: Embedded Microcontroller Systems Embedded Systems By: Kustanto,S.T.,M.Eng.
Components of a typical full-featured microcontroller.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
INTRODUCTION TO PIC MICROCONTROLLERS INTRODUCTION TO PIC MICROCONTROLLERS Dr.Y.Narasimha Murthy Ph.D SRI SAIBABA NATIONAL COLLEGE(AUTONOMOUS)
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
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.
Embedded Microcontroller Systems
Seminar On 8085 microprocessor
8051 Pin - out PORT 0 PORT 1 PORT 2 PORT 3.
C. K. Pithawalla College of Engineering and Technology, Surat
Embedded Microcontroller Systems
Microprocessors and Programming Department of Mechatronics Engineering
Microprocessor Systems Design I
UNIT – Microcontroller.
Microprocessor Systems Design I
Micro-Controller: PIC16C74 < Architecture >
Microprocessor Systems Design I
The 8255 Programmable Peripheral Interface
PIC 8 BIT AND 16 BIT MICROCONTROLLER ARCHITECTURE
Microprocessor Systems Design I
The Arduino Microcontroller: Atmel AVR Atmega 328
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
مقدمه با توجه به اهميت و گسترش روزافزون كاربردهاي ميكروكنترلرها و محدوديت هايي كه ميكروكنترلرهاي خانواده ي MCS51 ايجاد مي كرد،شركت Microchipنسل جديدي.
Introduction to Microprocessors and Microcontrollers
EE Embedded Systems Fall 2015
INTRODUCTION TO PIC MICROCONTROLLERS
Parallel communication interface 8255
Introducing the PIC Mid-Range Family and the 16F84A
INSTRUCTION SET.
Important 8051 Features On chip oscillator 4K bytes ROM 128 bytes RAM
8051 Micro Controller.
EECE.3170 Microprocessor Systems Design I
MCU – Microcontroller Unit – 2
Microprocessors and Programming Department of Mechatronics Engineering
Presentation transcript:

INTRODUCTION TO PIC MICROCONTROLLER

Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically RISC microcontrollers 5 ports It has two types of internal memories. One is program memory and the other is data memory.

Features Speed : When operated at its maximum clock rate a PIC executes most of its instructions in 0.2  s or five instructions per microsecond. Instruction set Simplicity : The instruction set is so simple that it consists of only just 35 instructions Integration of operational features: Power-on-reset (POR) and brown-out protection ensure that the chip operates only when the supply voltage is within specifications. A watch dog timer resets the PIC if the chip malfunctions or deviates from its normal operation at any time. Programmable timer options: Three timers can characterize inputs, control outputs and provide internal timing for the program execution.

Features Interrupt control: Up to 12 independent interrupt sources can control when the CPU deal with each sources. Powerful output pin control: A single instruction can select and drive a single output pin high or low in its 0.2  s instruction execution time. The PIC can drive a load of up to 25  A. I/O port expansion: With the help of built in serial peripheral interface the number of I/O ports can be expanded. EPROM/DIP/ROM options are provided.

ARCHITECTURE - PIC16FXX - Harvard architecture

Memory organization and register file structure The memory module of the PICcontroller has three memory blocks. Program memory Data memory and Stack REGISTER FILE STRUCTURE In PIC Microcontrollers the Register File consists of two parts namely General Purpose Register File Special Purpose Register File

Program Memory

DATA MEMORY The data memory of PIC 16F8XX is partitioned into multiple banks which contain the general purpose registers and the Special function Registers.(SFRs). The bits RP1 and RP0 bits of the status register are used to select these banks. Each bank extends upto 7FH(128 Bytes). The lower bytes of the each bank are reserved for the Special Function Registers. Above the SFRs are general purpose registers implemented as static RAM.

Register file structure General Purpose Register File: The general purpose register file is another name for the microcontroller’s RAM. Data can be written to each 8-bit location updated and retrieved any number of times. Special Purpose Register File: The special function register file consists of input, output ports and control registers used to configure each 8-bit port either as input or output. It contains registers that provide the data input and data output to a chip resources like Timers, Serial Ports and Analog to Digital converter the registers that contains control bits for selecting the mode of operation and also enabling or disabling its operation.

Register file structure

CPU REGISTERS Microcontroller has the following registers. Working Register-W (Similar to Accumulator) Status Register FSR – File Select Register (Indirect Data memory address pointer) INDF Program Counter

Status Register DC: Digit carry/borrow bit Z: Zero bit NOT_PD : Reset Status bit (Power-down mode bit) NOT_TO : Reset Status bit (tme- out bit) RPO: Register bank Select

FSR – (File Select Register) It is the pointer used for indirect addressing. In the indirect addressing mode the 8-bit register file address is first written into FSR. It is a special purpose register that serves as an address pointer to any address through out the entire register file.

INDF – (Indirect File): It is not a physical register addressing but this INDF will cause indirect addressing. Any instruction using the INDF register actually access the register pointed to by the FSR.

PROGRAM COUNTER PIC PIC16F877A has a 13 bit program counter in which PCL is the lower 8- bits of the PC and PCLATH is the write buffer for the upper 5 bits of the PC. PCLATH (program counter Latch can be read or from or written to without affecting the Program Counter(PC). The upper 3 bits of PCLATH remain zero. It is only when PCL is written to that PCLATH is automatically written into the PC at the same time.

Parallel I/O Ports