©Alex Doboli Chapter 3: Hardware and Software Subsystems of Mixed-Signal Architectures (Part II) Alex Doboli, Ph.D. Department of Electrical and Computer.

Slides:



Advertisements
Similar presentations
IO Interfaces and Bus Standards. Interface circuits Consists of the cktry required to connect an i/o device to a computer. On one side we have data bus.
Advertisements

I/O Organization popo.
INPUT-OUTPUT ORGANIZATION
Parul Polytechnic Institute
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Processor support devices Part 1:Interrupts and shared memory dr.ir. A.C. Verschueren.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Introduction Part 3: Input/output and co-processors dr.ir. A.C. Verschueren.
©Alex Doboli 2006  Analog to Digital Converters Alex Doboli, Ph.D. Department of Electrical and Computer Engineering State University of New York at.
Architectural Support for Operating Systems. Announcements Most office hours are finalized Assignments up every Wednesday, due next week CS 415 section.
EET Advanced Digital Parallel Ports. n In contrast to serial ports, parallel ports ‘present’ all bits at one time. n ‘The parallel port reflects.
CHAPTER 9: Input / Output
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
©Alex Doboli 2006 Switched Capacitor Blocks Alex Doboli, Ph.D. Department of Electrical and Computer Engineering State University of New York at Stony.
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
INPUT-OUTPUT ORGANIZATION
DEEPAK.P MICROPROCESSORS AND APPLICATIONS Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1.
General System Architecture and I/O.  I/O devices and the CPU can execute concurrently.  Each device controller is in charge of a particular device.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Input/Output mechanisms
CHAPTER 9: Input / Output
Volume. 1-the idea of the program is to increase, decrease the volume. 2-the program does the following: A-PF8:decrease the volume B-Pf9:increase the.
MICROPROCESSOR INPUT/OUTPUT
I/O devices Peripheral devices (also called I/O devices) are pieces of equipment that exchange data with a CPU Examples: switches, LED, CRT, printers,
Digital to Analogue Converter
Typical Microcontroller Purposes
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Other Chapters From the text by Valvano: Introduction to Embedded Systems: Interfacing to the Freescale 9S12.
FPGA-Based System Design: Chapter 3 Copyright  2004 Prentice Hall PTR FPGA Fabric n Elements of an FPGA fabric –Logic element –Placement –Wiring –I/O.
FPGA-Based System Design: Chapter 3 Copyright  2004 Prentice Hall PTR Topics n FPGA fabric architecture concepts.
ECS642U Embedded Systems Cyclic Execution and Polling William Marsh.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
7/23 Coldfire 5211 Signals and IO Multiplexing Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee
CSE Fall Introduction - 1 What’s Inside the Buffer? IhIh IlIl Write Reg This device always “drives” either high or low. Current is a function.
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 2: Computer-System Structures Computer System Architecture and Operation.
Programmable Interrupt Controller (PIC)
©Alex Doboli 2006 Performance Improvement through Customization Alex Doboli, Ph.D. Department of Electrical and Computer Engineering State University of.
Input/Output of a Computer Presented by: Jose Reyes Jose.
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 9.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Timer 1 and 2 operation, PWM Principles. Timer 1 Operation.
 The Programmable Interrupt Controller (PlC) functions as an overall manager in an Interrupt-Driven system. It accepts requests from the peripheral equipment,
8255:Programmable Peripheral Interface
FPGA-Based System Design: Chapter 3 Copyright  2004 Prentice Hall PTR Topics n FPGA fabric architecture concepts.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
Chip Config & Drivers – Required Drivers:
Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir. A.C. Verschueren Eindhoven University of Technology Section of Digital.
CS501 Advanced Computer Architecture
Microprocessor Systems Design I
Chapter 11: Inter-Integrated Circuit (I2C) Interface
Refer to Chapter 10 in the reference book
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Presentation On 8259 Made by Md Shabbir Hasan.
Programmable Interrupt Controller 8259
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Subject Name: Microcontroller Subject Code: 10ES42
Introduction to Microprocessors and Microcontrollers
Interfacing Memory Interfacing.
Switched Capacitor Blocks
Operating Systems Chapter 5: Input/Output Management
Programmable Data Communication Blocks
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
Chapter 13: I/O Systems.
Presentation transcript:

©Alex Doboli Chapter 3: Hardware and Software Subsystems of Mixed-Signal Architectures (Part II) Alex Doboli, Ph.D. Department of Electrical and Computer Engineering State University of New York at Stony Brook

©Alex Doboli Tachometer ISR Tachometer ISR used in PSoC Express Specification: –Fan speed is measured through 3 pulses produced by the fan –Time distance between consecutive pulses is used to find RPMs –Response to fan inputs: Decouple fan from PWM and drive at full speed Let fan speed stabilize Measure time between consecutive pulses Reconnect fan to PWM –The 3 pulses must be received within 3 sec, otherwise this represents an abnormal functioning that is handled by the ISR –Consecutive fan speed readings should be separated by at least 4 sec (otherwise readings are incorrect) –ISR should handle multiple fans

©Alex Doboli Functionality is even-driven & corresponds to FSM Events are the tachometer pulses FSM states implement the controller response Interrupt-based solution vs. polling Reduced overhead (Estimate the overhead) How are interrupts generated? Tachometer pulses are not interrupts Real-time constraints 3 pulses within 3 sec (HW vs. SW solution) Two consecutive readings separated by at least 4 sec (HW vs. SW solution) Data structure for handling multiple fans State information tables Tachometer ISR

©Alex Doboli Tachometer interfacing

©Alex Doboli Specification of the tachometer ISR Introduces delay of 4 sec abnormal switch to next 4 sec delay

©Alex Doboli Pseudocode for FSM1 ISR

©Alex Doboli Pseudocode for FSM2 ISR

©Alex Doboli Multiple tachometers

©Alex Doboli Data structures for handling multiple tachometers

©Alex Doboli Tachometer ISR implementation

©Alex Doboli Specification: –Event-driven, FSM –Two FSMs used: one for the ISR functionality and one implements the timing requirement for the functionality Interrupt driven implementation –Reduces CPU idle times (overhead) –Interrupts are generated by programmable digital block (DCB02) Data structure (table) for multiple tachometers (fans) –Sharing of design for multiple tachometers Hardware & software implementation –FSM in software –Interrupt generation & time measurement in hardware –Maximum time constraint in hardware (block DCB03) ISR implementation

©Alex Doboli Programmable General I/O Ports (GIOPs): –I or O ports –Connected to CPU, digital resources, programmable analog blocks –Driving capabilities –Can originate interrupt signals Pin block –Pin (chip package), input buffer, 1-bit register, output drivers, configuration logic 8 driving modes: –Resistive pull down, strong drive, high impedance drive, resistive pull up, open drain-drives high, slow strong, high impedance, open drain-drives low Global I/O ports

©Alex Doboli Port driving modes (output)

©Alex Doboli Driving mode is programmed through the registers PRTxDM2, PRTxDM1, and PRTxDM0 PRT0DMx is for port 0, PRT1DMx is for port 1, etc. Driving mode programming Driving modeDM2DM1DM0 Resistive pull down000 Strong drive001 High impedance010 Resistive pull up011 Open drain high100 Slow strong drive101 High impedance analog 110 Open drain low111

©Alex Doboli GPIO block structure analog On, except analog To CPU To DBB/ DCB To I2C 1 from CPU from DBB/ DCB High impedance To interrupt logic

©Alex Doboli GPIO programming 1.Data communication through register PRTxDR 2.Register PRTxGS (BYP bit) 3.Register PRTxIC (GPIO interrupt configuration)