Features of the PIC18 microcontroller - 8-bit CPU - 2 MB program memory space (internal 32KB to 128KB) - 256 bytes to 1KB of data EEPROM - Up to 4096 bytes.

Slides:



Advertisements
Similar presentations
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Advertisements

MC68HC11 System Overview. System block diagram (A8 version)
EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
Embedded System Spring, 2011 Lecture 9: I/O Programming Eng. Wazen M. Shbair.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Processor System Architecture
EEE237 Introduction to Microprocessors
Microcontroller – PIC – 4 PIC types PIC architecture
1-1 Microprocessor Engineering Microprocessor Systems Microcontrollers Infineon 16-bit Processor Family  specifically 167CS microcontroller C Programming.
An Introduction to PIC Microcontrollers Supervised by : Dr. Lo’ai Tawalbeh Jordan University of Science & Technology Faculty of Computer & Information.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Microcontroller Architecture— PIC18F Family
Microcontroller based system design
Microcontroller Architecture PIC18F Family
Programming 8-bit PIC Microcontrollers in C Martin Bates Elsevier 2008.
INPUT-OUTPUT ORGANIZATION
Micro controllers A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package.
Atmega32 Architectural Overview
CS-280 Dr. Mark L. Hornick 1 Parts of a GP Computer (Microcomputer) Contains separate Microprocessor chip Memory/Memory controller MB control chips Peripheral.
AVR Microcontrollers.
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
I/O PORTS (Simplest Peripherals) PORT A: 6 bits wide (7th and 8th bit always read as 0) PORT B: 8 bits wide PORT C: 8 bits wide PORT D: 8 bits wide.
One of the most important feature of the microcontroller is a number of input/output pins used for connection with peripherals. In the case of PIC 167CX,
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
بسمه تعالي AVR Microcontrollers. The ATmega8 Basic Features -1.
Designing with Components Wilmer Arellano. How to chose a Microcontroller Choose one that you are familiar with or that is easy to learn.
MICROCONTROLLER SYSTEMS Part 1. Figure 1.1Elements of a digital controller CPU Central Processing Unit Input Peripherals Output Peripherals ROM Read Only.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
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.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
Microcontrollers Class : 4th Semister E&C and EEE Subject Code: 06ES42
Programmable Peripheral Interface Parallel port Interface 8255
Architecture and instruction set. Microcontroller Core Features:  Operating speed: DC - 20 MHz clock input DC ns instruction cycle Up to 8K x.
DsPIC30F4011 Fall DIP Switches  The upper four switches of SW1 are used to enable LEDs connected to PORTB/C, PORTA/D, PORTE and PORTF. For example,
CIT 673 Created by Suriyong1 Micro controller hardware architechture.
Device Overview 1.  The advantages of all PIC18Fxxxx microcontrollers:  High computational performance  High-endurance  Enhanced Flash program memory.
ECE 371 Microprocessor Interfacing
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8255:Programmable Peripheral Interface
8085 Microprocessor: Architecture & Support Components.
Components of a typical full-featured microcontroller.
AVR Architecture Prepared By: Avdhesh Soni ( ) Sarthak Patel ( ) Akshay Parekh ( ) Fenil Sachla ( ) Guided.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
Criteria for choosing a microcontroller A microcontroller must meet the task at hand efficiency and cost effectively. Speed. What is highest speed of.
 Mini-Computer ◦ Microprocessor  The Brains  Arithmetic Logic Unit (ALU)  Control Unit  Program/ Data Storage  Peripherals (Input/Output)  Low-Cost.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
Seminar On 8085 microprocessor
PIC CONTROLLED DYNAMIC TIME BASED CITY TRAFFIC SIGNAL
Input/Output Ports and Interfacing
Atmega32 Architectural Overview
Networking of Multiple street junction signals for better traffic management Submitted by:
DTMF BASED REMOTE INDUSTRIAL LOAD AND/OR AGRICULTURAL PUMP CONTROL
Microprocessor Systems Design I
UNIT – Microcontroller.
Diagram of microprocessor interface with IO devices
Microprocessor Systems Design I
DENSITY BASED TRAFFIC LIGHT TIMING CONTROL
SYNCHRONIZED TRAFFIC JUNCTION SIGNALING (GET GREEN SIGNAL ALL-THROUGH AT ANY STREET JUNCTION)-A NEW CONCEPT TO EASE TRAFFIC CONGESTION IN METROS Submitted.
Project Title EVM IN PIC Under the Guidance of Submitted by.
8085 microprocessor.
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Introduction to Microprocessors and Microcontrollers
Architecture & Support Components
8051 Micro Controller.
EECE.3170 Microprocessor Systems Design I
Presentation transcript:

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 of on-chip SRAM - 4 KB to 128KB flash program memory - Sophisticated timer functions that include: input capture, output compare, PWM, real-time interrupt, and watchdog timer - Serial communication interfaces: SPI, I2C - Background debug mode (BDM) - 10-bit A/D converter - Memory protection capability - Instruction pipelining - Operates at up to 40 MHz crystal oscillator

Features of PIC18 ̶ 5 input/output Port (PORT A,B,C,D & E) ̶ Synchronous Serial Port (SSP) with SPI (master code) and I2C (master/slave). ̶ Universal Synchronous Asynchronous Receiver Transmitter (USART) with 9 bit address detection. ̶ Parallel Slave Port (PSP) 8 bit wide with external RD, WR and CS controls (40/46pin). ̶ Brown Out circuitry for Brown-Out Reset (BOR). ̶ In-circuit serial programming and in-circuit debugging capability

Architecture of PIC18

Microprocessor Unit Includes Arithmetic Logic Unit (ALU), Registers, and Control Unit ◦ Arithmetic Logic Unit (ALU)  Instruction decoder  16-bit instructions  Status register that stores flags  5-bits  WREG – working register  8-bit accumulator

Microprocessor Unit ◦ Registers  Program Counter (PC)  21-bit register that holds the Program Memory address  Bank Select Register (BSR)  4-bit register used in direct addressing the Data Memory  File Select Registers (FSRs)  12-bit registers used as memory pointers in indirect addressing Data Memory ◦ Control unit  Provides timing and control signals  Read and Write operations 330_026

Microprocessor Unit ◦ Registers  Program Counter (PC)  21-bit register that holds the Program Memory address  Bank Select Register (BSR)  4-bit register used in direct addressing the Data Memory  File Select Registers (FSRs)  12-bit registers used as memory pointers in indirect addressing Data Memory ◦ Control unit  Provides timing and control signals  Read and Write operations 330_027

PIC18F - Address Buses Address bus ◦ 21-bit address bus for Program Memory  Addressing capacity: 2 MB ◦ 12-bit address bus for Data Memory  Addressing capacity: 4 KB Data bus ◦ 16-bit instruction/data bus for Program Memory ◦ 8-bit data bus for Data Memory Control signals ◦ Read and Write 330_028

PIC18F452/4520 Memory Program Memory: 32 K to 128K ◦ Address range: to 007FFF H Data Memory: 4 K ◦ Address range: 000 to FFF H Data EEPROM ◦ Not part of the data memory space ◦ Addressed through special function registers 330_029

MCU Support Devices Timers ◦ Capture, Compare and PWM (CCP Modules) Serial Communications ◦ Master Synchronous Serial Port (MSSP) ◦ Addressable USART A/D converter Parallel Slave Port (PSP) Data EEPROM 330_0210

Memory Organization

PIC 18 - CPU

CPU Registers

CPU registers STATUS Register

PIPELINING

PIPELINING

PIPELINING

PIPELINING

PIPELINING

PIPELINING

PIPELINING

PIC18 Instruction Format

PIC18 Addressing Modes PIC18 Addressing Modes

PIC18 Instruction Set

Interrupt

Interrupt Structure

Interrupt Operation

Core Group

Interrupt Operation without Setting Priority

Interrupt Operation with Priority Enabled

Interrupt Operation

Reset operation

Parallel Ports

Input/output ports PIC18F has 5 basic input/output ports. They are usually denoted by PORT A (RA), PORT B (RB), PORT C (RC), PORT D (RD), and PORT E (RE). These ports are used for input/ output interfacing All these ports are bi-directional. The direction of the port is controlled by using TRIS(X) registers (TRIS A used to set the direction of PORT-A, TRIS B used to set the direction for PORT-B, etc.) Parallel Ports

Each port has three registers for its operation. These registers are: TRIS register (data direction register) PORT register (reads the levels on the pins of the device) LAT register (output latch) PORTA, TRISA and LATA Registers  PORTA is an 7-bit wide, bidirectional port.  The corresponding data direction register is TRISA.  Setting a TRISA bit (= 1) will make the corresponding PORTA pin an input (i.e., put the corresponding output driver in a high-impedance mode).  Clearing a TRISA bit (= 0) will make the corresponding PORTA pin an output

Parallel Ports PORTB, TRISB and LATB Registers  PORTB is an 8-bit wide, bidirectional port.  The corresponding data direction register is TRISB.  Setting a TRISB bit (= 1) will make the corresponding PORTB pin an input (i.e., put the corresponding output driver in a high-impedance mode).  Clearing a TRISB bit (= 0) will make the corresponding PORTB pin an output

Parallel Ports PORTC, TRISC and LATC Registers  PORTB is an 7-bit wide, bidirectional port.  The corresponding data direction register is TRISC.  Setting a TRISC bit (= 1) will make the corresponding PORTC pin an input (i.e., put the corresponding output driver in a high-impedance mode).  Clearing a TRISC bit (= 0) will make the corresponding PORTC pin an output

Parallel Ports PORTD, TRISD and LATD Registers  PORTD is an 8-bit wide, bidirectional port.  The corresponding data direction register is TRISD.  Setting a TRISD bit (= 1) will make the corresponding PORTD pin an input (i.e., put the corresponding output driver in a high-impedance mode).  Clearing a TRISD bit (= 0) will make the corresponding PORTD pin an output

Parallel Ports PORTE, TRISE and LATE Registers  PORTE is an 4-bit wide, bidirectional port.  The corresponding data direction register is TRISE.  Setting a TRISE bit (= 1) will make the corresponding PORTE pin an input (i.e., put the corresponding output driver in a high-impedance mode).  Clearing a TRISE bit (= 0) will make the corresponding PORTE pin an output  Three pins (RE0/AN5/CK1SPP, RE1/AN6/CK2SPP and RE2/AN7/OESPP) are individually configurable as inputs or outputs.