INFORMATICA INDUSTRIALE

Similar documents
Interrupts. ELEC 330 Digital Systems Engineering Dr. Ron Hayne. Images Courtesy of Ramesh Gaonkar and Delmar Learning

Mod-5: PIC 18 Introduction 1. Module 5

These 3 registers contain enable, priority,

Section 28. WDT and SLEEP Mode

EEE394 Microprocessor and Microcontroller Laboratory Lab #6

Chapter 2 Sections 1 8 Dr. Iyad Jafar

Hi Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan

PIC Microcontroller Introduction

ME 475 Lab2 Introduction of PIC and Programming. Instructor: Zhen Wang

Microprocessors and Interfacng. Question bank

Architecture of 8085 microprocessor

Interrupts on PIC18F252 Part 2

Micro-Controller: PIC16C74 < Part 5: Interrupt >

Laboratory: Introduction to Mechatronics. Instructor TA: Edgar Martinez Soberanes Lab 2. PIC and Programming

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

MICROPROCESSOR BASED SYSTEM DESIGN

AVR Microcontrollers Architecture

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Interrupts on PIC18F252 Part 2. Interrupts Programming in C Language

4) In response to the the 8259A sets the highest priority ISR, bit and reset the corresponding IRR bit. The 8259A also places

Chapter 10 Sections 1,2,9,10 Dr. Iyad Jafar


Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Midrange 8b PIC Microcontrollers. ECE Senior Design 14 February 2017

ARM processor organization

8051 Microcontroller

Program controlled semiconductor device (IC) which fetches (from memory), decodes and executes instructions.

Section 16. Basic Sychronous Serial Port (BSSP)

ECE 354 Introduction to Lab 1. February 5 th, 2003

Table of Contents COMPANY PROFILE 1-1 SECTION 1. INTRODUCTION 1-1

ECE 354 Computer Systems Lab II. Interrupts, Strings, and Busses

FIFTH SEMESTER B.TECH DEGREE EXAMINATION MODEL TEST QUESTION PAPER, NOVEMBER CS 305: Microprocessor and Microcontrollers PART A

Northern India Engineering College, Delhi (GGSIP University) PAPER I

ECE 354 Introduction to Lab 2. February 23 rd, 2003

Blog -

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

Laboratory: Introduction to Mechatronics

Microcontroller systems Lec 2 PIC18LF8722 Microcontroller s s core


EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

Co-processor Math Processor. Richa Upadhyay Prabhu. NMIMS s MPSTME February 9, 2016

Embedded Systems Design (630470) Lecture 4. Memory Organization. Prof. Kasim M. Al-Aubidy Computer Eng. Dept.

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester

DERTS Design Requirements (1): Microcontroller Architecture & Programming

Instruction Set Architecture of MIPS Processor

SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET

8051 microcontrollers

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

Department of Electronics and Instrumentation Engineering Question Bank

The University of Texas at Arlington Lecture 21_Review

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

Using Timers of Microchip PIC18F Microcontrollers

Types of Interrupts:

William Stallings Computer Organization and Architecture

EE 390 Lab Manual, EE Department, KFUPM. Experiment #7. Introduction to Flight86 Microprocessor Trainer and Application Board

MICROPROCESSOR B.Tech. th ECE

Microprocessor and Microcontroller question bank. 1 Distinguish between microprocessor and microcontroller.

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

Siemens' C161 - Enter the 16-bit family of Microcontrollers with revolutionary price/performance ratio

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

NH-67, TRICHY MAIN ROAD, PULIYUR, C.F , KARUR DT. DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING COURSE MATERIAL

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

DRPIC166X IP Core. High Performance 8-bit RISC Microcontroller v. 2.17

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Introduction to ARM LPC2148 Microcontroller

PART - B (Answer all five units, 5 X 10 = 50 Marks)

Outline. Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware:

Introduction to general architectures of 8 and 16 bit micro-processor and micro-controllers

PROGRAM CONTROL UNIT (PCU)

Chapter 7 Central Processor Unit (S08CPUV2)

Question Bank Microprocessor and Microcontroller

BASIC INTERFACING CONCEPTS

Section 21. Addressable USART

SAFE DESIGNED IN ITALY CASSEFORTI PER HOTEL HOTEL SAFES

8255 Programmable Peripheral Interface Architecture MCT/UNIT III/NARASIMHARAJ/LECTURE NOTES /IV MECH A

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.


Embedded Systems Design (630414) Lecture 1 Introduction to Embedded Systems Prof. Kasim M. Al-Aubidy Computer Eng. Dept.

16-Bit Intel Processor Architecture

SAFE. DESIGNED in italy CASSEFORTI PER HOTEL HOTEL SAFES

EC 6504 MICROPROCESSOR AND MICROCONTROLLER

SECTION 5 PROGRAM CONTROL UNIT

CHAPTER 4 MARIE: An Introduction to a Simple Computer

Lecture 2 Microcomputer Organization: Fig.1.1 Basic Components of Microcomputer

9/25/ Software & Hardware Architecture

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085

Chapter 13. PIC Family Microcontroller

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet... 4

Internal architecture of 8086

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.

8051 Microcontroller

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085

sequence is not needed. (ROM space). Another application is to use the poll mode to expand the number of priority levels to more than 64.

Computer Organization and Microprocessors SYLLABUS CHAPTER - 1 : BASIC STRUCTURE OF COMPUTERS CHAPTER - 3 : THE MEMORY SYSTEM

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of

Nios DMA. General Description. Functional Description

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution

Micro II and Embedded Systems

Transcription:

INFORMATICA INDUSTRIALE Lezione 2 Prof. Christian Forlani forlani@disco.unimib.it Tutor: Stefano Brusamolino brusamolino@ira.disco.unimib.it

Device Structure: Core» Oscillator» Reset» Architecture» CPU (Central Processing Unit) and System Bus» ALU (Arithmetic Logical Unit)» Hardware 8x8 Multiplier» Memory Map» Table Read / Table Write» System Bus» Interrupts» Instruction Set Lezione 2 2

Architecture PIC Lezione 2 3

Instruction/Data size Data Size (8 bit) Data Memory (8bit) Instruction Size (Word, Double Word:16,32 bit) Program Memory (8bit) Lezione 2 4

Lezione 2 5

Lezione 2 6

Device Structure: Core» Oscillator» Reset» Architecture» CPU (Central Processing Unit) and System Bus» ALU (Arithmetic Logical Unit)» Hardware 8x8 Multiplier» Memory Map» Table Read / Table Write» System Bus» Interrupts» Instruction Set Lezione 2 7

General Instruction Format Lezione 2 8

General Instruction Format Lezione 2 9

Device Structure: Core» Oscillator» Reset» Architecture» CPU (Central Processing Unit) & System Bus» ALU (Arithmetic Logical Unit)» Hardware 8x8 Multiplier» Memory Map» Table Read / Table Write» System Bus» Interrupts» Instruction Set Lezione 2 10

ALU (Arithmetic Logical Unit) Lezione 2 11

Status Register N =Negative bit OV=Overflow bit Z =Zero bit DC=Digit Carry (Half Carry) C =Carry Lezione 2 12

Device Structure: Core» Oscillator» Reset» Architecture» CPU (Central Processing Unit) & System Bus» ALU (Arithmetic Logical Unit)» Hardware 8x8 Multiplier» Memory Map» Table Read / Table Write» System Bus» Interrupts» Instruction Set Lezione 2 13

8X8 HW multiplier included in the ALU Lezione 2 14

Device Structure: Core» Oscillator» Reset» Architecture» CPU (Central Processing Unit) & System Bus» ALU (Arithmetic Logical Unit)» Hardware 8x8 Multiplier» Memory Map» Table Read / Table Write» System Bus» Interrupts» Instruction Set Lezione 2 15

Program & Data Memory Lezione 2 16

Program Memory Map Lezione 2 17

Program Counter (PC) Lezione 2 18

Data Memory Map Lezione 2 19

Access Bank Si accede quando a=0 E una zona di memoria ad accesso veloce formata dai primi 128byte del Bank0 (GPR) e gli ultimi 128 del Bank15 (SFRs) ed è utilizzata per: Intermediate computational values Local variables of subroutines Faster context saving/switching of variables Common variables Faster evaluation/control of SFRs (no banking) Lezione 2 20

Device Structure: Core» Oscillator» Reset» Architecture» CPU (Central Processing Unit) & System Bus» ALU (Arithmetic Logical Unit)» Hardware 8x8 Multiplier» Memory Map» Table Read / Table Write» System Bus» Interrupts» Instruction Set Lezione 2 21

Table Write E una tabella che permette il trasferimento di dati dalla Data Memory alla Program Memory. NB: Per i dispositivi con memoria EPROM, i bit della Program Memory possono essere portati da 1 a 0 ma non viceversa!! Lezione 2 22

Table Read E una tabella che permette il trasferimento di dati dalla Program Memory alla Data Memory. Lezione 2 23

Reset Control (RCON) register LWRT: Long Write Enable bit 1 = Enable Table Writes to internal program memory Once this bit is set, it can only be cleared by a POR or MCLR reset. 0 = Disable Table Writes to internal program memory; Table Writes only to external program memory. Lezione 2 24

Device Structure: Core» Oscillator» Reset» Architecture» CPU (Central Processing Unit) & System Bus» ALU (Arithmetic Logical Unit)» Hardware 8x8 Multiplier» Memory Map» Table Read / Table Write» System Bus» Interrupts» Instruction Set Lezione 2 25

Interrupts Interrupts can come from many sources. These sources currently include: External interrupt from the INT, INT1, and INT2 pins Change on RB7:RB4 pins TMR0,1,2,3Overflow USART Interrupts Receive buffer full Transmit buffer empty SSPInterrupt SSP I 2 C bus collision interrupt A/D conversion complete CCP interrupt LVD Interrupt Parallel Slave Port CAN interrupts Receive 1,2 buffer Receive invalid Transmit 1,2,3 buffer Bus wakeup Bus invalid error Lezione 2 26

Interrupts As other peripheral modules are developed, they will have interrupt sources. These sources will map into the 10 registers used in the control and status of interrupts. These registers are: INTCON INTCON1 INTCON2 INTCON3 PIR1 PIR2 PIE1 PIE2 IPR1 IPR2 The INTCON register contains the GIE/GIEH bit. This is the Global Interrupt Enable bit. When this bit is set, all interrupts are enabled. If needed for any single device, additional INTCON, PIR,PIE, and IPR registers will be defined. Lezione 2 27

Lezione 2 28

High Priority Interrupt Logic Block Lezione 2 29

Low Priority Interrupt Logic Block Lezione 2 30

Interrupt Registers:INTCON Lezione 2 31

Interrupt Registers:INTCON2 Lezione 2 32

Interrupt Registers:INTCON3 Lezione 2 33

Peripheral Interrupt Enable: PIE Lezione 2 34

Peripheral Interrupt Registers: PIR Lezione 2 35

Interrupt Priority Registers: IPR Lezione 2 36

Peripheral Interrupt Registers: PIR Lezione 2 37

Reset Control (RCON) register IPEN: Interrupt Priority Enable bit 1 = Enable priority levels (high and low) on interrupts 0 = Disable priority levels (all peripherals are high) on interrupts (This causes the Interrupt Priority (IP) bits to be ignored) Lezione 2 38

Device Structure: Core» Oscillator» Reset» Architecture» CPU (Central Processing Unit) & System Bus» ALU (Arithmetic Logical Unit)» Hardware 8x8 Multiplier» Memory Map» Table Read / Table Write» System Bus» Interrupts» Instruction Set Lezione 2 39

Lezione 2 40

Lezione 2 41

Lezione 2 42