CSE 466 – Fall 2000 - Introduction - 1 Fuel Cell Power Plant A Control Dominated Example H2H2 Air H20H20 Heat controller sense: Temperature H 2 Output.

Slides:



Advertisements
Similar presentations
T-Mon SERVER CONNECTOR
Advertisements

I2C bus Inter Integrated Circuits bus by Philips Semiconductors
Computer Architecture
INPUT-OUTPUT ORGANIZATION
MCS LWC MAGNUM ORIGINAL CONCEPTS  Designed to Control Loop Systems  Build to be generic and handle many configurations of Loop Controllers  Type of.
FPGA Configuration. Introduction What is configuration? – Process for loading data into the FPGA Configuration Data Source Configuration Data Source FPGA.
EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
Chapter 10 Input/Output Organization. Connections between a CPU and an I/O device Types of bus (Figure 10.1) –Address bus –Data bus –Control bus.
Exceptional Control Flow Processes Today. Control Flow Processors do only one thing: From startup to shutdown, a CPU simply reads and executes (interprets)
1/1/ / faculty of Electrical Engineering eindhoven university of technology Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir.
COEN 180 DRAM. Dynamic Random Access Memory Dynamic: Periodically refresh information in a bit cell. Else it is lost. Small footprint: transistor + capacitor.
CSE 466 – Fall Introduction - 1 COMMANDS RESPONSES Master/Slave Software Architecture Master void master() _task_ MAST{ Button(mode); // enq(cmd)
11/10/98Online Meeting Julia Velkovska Running and Monitoring the PHENIX Drift Chamber Julia Velkovska and Tom Hemmick.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 15 Slide 1 Real-time Systems 2.
Multiple Processor Systems
Avishai Wool lecture Introduction to Systems Programming Lecture 8 Input-Output.
68HC11 Polling and Interrupts
Reference: Message Passing Fundamentals.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 23 Slide 1 Software testing.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Hands-On Microsoft Windows Server 2003 Networking Chapter 6 Domain Name System.
Sensor Node Architecture Issues Stefan Dulman
CSE 466 – Fall Introduction - 1 Implementation of Shared Memory  Considerations  Network traffic due to create/read/write  Latency of create/read/write.
Interface-based Design Donald Chai EE249. Outline Orthogonalization of concerns Formalisms Interface-based Design Example Cheetah Simulator Future Inroads.
INPUT/OUTPUT ARCHITECTURE By Truc Truong. Input Devices Keyboard Keyboard Mouse Mouse Scanner Scanner CD-Rom CD-Rom Game Controller Game Controller.
CSE 466 – Fall Introduction - 1 Fuel Cell Power Plant A Control Dominated Example H2H2 Air H20H20 Heat controller sense: Temperature H 2 Output.
Introduction ► Scope:- Service Diagnostics Routines can use for XXL, Side by Side products with STEALTH user interface with single evaporator fan product.
Reference: / Parallel Programming Paradigm Yeni Herdiyeni Dept of Computer Science, IPB.
M. Menelaou CCNA2 DYNAMIC ROUTING. M. Menelaou DYNAMIC ROUTING Dynamic routing protocols can help simplify the life of a network administrator Routing.
1 4-Integrating Peripherals in Embedded Systems. 2 Introduction Single-purpose processors  Performs specific computation task  Custom single-purpose.
Oracle10g RAC Service Architecture Overview of Real Application Cluster Ready Services, Nodeapps, and User Defined Services.
Thanks to Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction n What is an Operating System? n Mainframe Systems.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
CSE 466 – Fall Introduction - 1 Reentrant Driver open() { if (count++) return(0); else return(grab_resources()); } release() { if (--count) return(0);
1-1 Embedded Network Interface (ENI) API Concepts Shared RAM vs. FIFO modes ENI API’s.
CSE466 Autumn ‘00- 1 Music Format if amp = 0, note is a command switch(note) 0: turn off specified channel 1: continue for specified tne w/ no change else.
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
The Functions of Operating Systems Interrupts. Learning Objectives Explain how interrupts are used to obtain processor time. Explain how processing of.
Multiprocessor and Real-Time Scheduling Chapter 10.
Fall EE 333 Lillevik 333f06-l21 University of Portland School of Engineering Computer Organization Lecture 21 Subroutines, stack Interrupts, service.
Modes of transfer in computer
Interrupt driven I/O. MIPS RISC Exception Mechanism The processor operates in The processor operates in user mode user mode kernel mode kernel mode Access.
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
Concurrency Properties. Correctness In sequential programs, rerunning a program with the same input will always give the same result, so it makes sense.
Part A Final Dor Obstbaum Kami Elbaz Advisor: Moshe Porian August 2012 FPGA S ETTING U SING F LASH.
CSCI1600: Embedded and Real Time Software Lecture 16: Advanced Programming with I/O Steven Reiss, Fall 2015.
Interrupt driven I/O Computer Organization and Assembly Language: Module 12.
Chapter 8 Input/Output An Hong 2015 Fall School of Computer Science and Technology Lecture on Introduction to.
System Components Operating System Services System Calls.
1 4-Integrating Peripherals in Embedded Systems. 2 Introduction Single-purpose processors  Performs specific computation task  Custom single-purpose.
Microprocessor Systems Design I
Architecture Concept Documents
4-Integrating Peripherals in Embedded Systems
4-Integrating Peripherals in Embedded Systems
CSE 466 – Fall Introduction - 1
Chapter 8 I/O.
Communication Lines Fundamentals.
CS 457 – Lecture 6 Ethernet Spring 2012.
CSCI1600: Embedded and Real Time Software
Processor Fundamentals
Operating Systems Chapter 5: Input/Output Management
Multiprocessor and Real-Time Scheduling
Chapter 2: Operating-System Structures
Introduction to Operating Systems
CSCI1600: Embedded and Real Time Software
Chapter 2: Operating-System Structures
easYgen-3000XT Series Training
Presentation transcript:

CSE 466 – Fall Introduction - 1 Fuel Cell Power Plant A Control Dominated Example H2H2 Air H20H20 Heat controller sense: Temperature H 2 Output Current Output Voltage Fan Speed control H2 valves Output MOSFET Fan Speed Stack MOSFETS not showing power supply circuitry for the controller…runs off fuel cell w/ backup battery.

CSE 466 – Fall Introduction - 2 System level Modes (Logical Structure) startup warmuponline offline shtdwn Self Check Fail Warm On Off+ V<min + I>max Self Check Pass Failure Failure = H2+TooHot+TooCold I>0+V<min off

CSE 466 – Fall Introduction - 3 State Table (activities/error conditions are mode dependent) ModeOutputs Processes Events New Mode OffLoad Disabled Power Supply Off Gas Valves Closed Power Button Enabled nonePower Button PushStartup Load Disabled Power Supply On Gas Valves Closed Initialize Temp Control H2 Detection Load Monitor UI Running Initialize Complete Warm Up Error Condition Detected* or shutdown request Shutdown WarmupLoad Disabled Power Supply On Gas Valves Open Temp Control H2 Detection Load Monitor UI Running Operating Temp ReachedOff Line Error Condition Detected* or shutdown request Shutdown Off LineLoad Disabled Power Supply On Gas Valves Open Temp Control H2 Detection Load Monitor UI Running On-Line Command Received (UI) On Line Error Condition or Shutdown request Shutdown On LineLoad Enabled Power Supply On Gas Valves Open Temp Control H2 Detection Load Monitor UI Running Off Line CommandOff Line OverloadOff Line Error Condition* or Shutdown Request Shutdown Load Disabled Power Supply On Gas Valves Closed Fan On Temp Control Schedule transition to Off state TimeoutOff

CSE 466 – Fall Introduction - 4 Examples of Mode Dependencies  Fan Speed Control:  In startup or shutdown mode always run minimum speed  otherwise attempt to maintain temperature set point  If fan doesn’t turn, issue shutdown event  Hydrogen Detection: always close hydrogen valves and issue shutdown event if hydrogen detected, except in startup mode.  Load Monitoring  If not online and output current > 0 or output voltage < min, then issue shutdown event.  If online and load current is > max allowed, or if output voltage is < min then turn on another stack. If all stacks are on, then issue overload event.  UI Process  If “line” button pushed and online issue offline event, If offline issue online event.  If “power” button pushed and not in off mode, then issue shutdown event.

CSE 466 – Fall Introduction - 5 Master Slave Architecture  Master/Slave Architecture  master process: determines what mode the system is in at any given time and synchronizes mode transitions. Process events and data.  Slave processes: Perform mode-dependent activities, pass data and events back to master.  Logical Decomposition Master (UI) Slave 1 (H2) Slave 2 (Load) Slave 3 (Temp) commands responses

CSE 466 – Fall Introduction - 6 Sockets are a “logical” constructs Master slave socket == 2-way fifo Socket could be implemented in shared memory, internet, or anything in between. High level architecture can be independent of implementation choices. Synthesis Problem: Map processes and sockets to processors and networks Warning: usually not done this way for embedded systems…usually designer performs the physical decompositions

CSE 466 – Fall Introduction - 7 COMMANDS RESPONSES Master/Slave Software Architecture Master void master() _task_ MAST{ Button(mode); // enq(cmd) checkDB(mode); // enq(cmd) } void comTop() _task_ COM{ wait(K_TMO, 1); if (!deq(cmd)) { cmd = pollCmd(next++); slave = next; } else slave = toWho(cmd); write(slave, cmd); read(response); signal(VERIFY); } void comBot() _task_ VERIFY{ // match up resp. and commds wait(K_SIG); verify(response); updateDB(response); } Slave void mainTask() _task_ SL{ manageLoad(mode); } void comTop() _task_ TOP{ read(master,cmd); write(master,response); //prev signal(DO); }// could be ISR void comBot() _task_ DO { wait(K_SIG); response = do(cmd); // set local mode } commands and responses are packets not single bytes responses are for previous command mode is NOT a global variable

CSE 466 – Fall Introduction - 8 Distributed State Synchronization Master Button() {… if (LineButton && offline) { enq(OFF); offline = true; } checkDB() { if (offline && db[I]>0) enq(SHT); } manageLoad() { db[V] = readV(); db[I] = readI(); adjustStack(I,V); } do(cmd) { if (cmd=OFF) { out = 0; db[M] = offline; } if (cmd=ON) out = 1; db[M] = online; } return(makeR(db[i++])); } slave SHT, OFF, POLL, POLL I=10,V=15, M=ON, I=0 is there a problem here?

CSE 466 – Fall Introduction - 9 Synchronous Systems warmup offline online offline need to identify mode transition periods, and identify data that is out of synch as a result of transition. Need also to know when it is valid again. propagation time

CSE 466 – Fall Introduction - 10 Managing Distributed Transitions manageLoad() { db[V] = readV(); db[I] = readI(); adjustStack(I,V); } do(cmd) { if (cmd=OFF) { out = 0; db[M] = offline; } if (cmd=ON) out = 1; db[M] = online; } return(makeR(db[i++])); } POLL,POLL,POLL,POLL, OFF, POLL, POLL I=10,V=15, M=ON, I=5, V=20, M=OF, I=0 Master Button() {… if (LineButton && offline) { enq(OFF); offline = true; } checkDB() { if (offline&&VLD(db[I])&&db[I]>0) enq(SHT); } enq(cmd) { if (cmd=OFF) { db[I] = INVLD; db[V] = INVLD; db[M] = INVLD; q.data[q.head] = cmd; next(q); } updateDB(response) { ignore slave responses until correct mode is received from slave } ignored, transition period could improve transition speed by advancing i to M in do(). Also need to be concerned with physical time lag from !out db’s are not global either!

CSE 466 – Fall Introduction - 11 Multiprocessor Implementation Bus Two main types of serial buses: master/slave (SPI,USB) and multi-master (I 2 C, CAN)

CSE 466 – Fall Introduction - 12

CSE 466 – Fall Introduction - 13 Physical Partition – the network