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.

Slides:



Advertisements
Similar presentations
Serial Interface Dr. Esam Al_Qaralleh CE Department
Advertisements

11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design.
Review: Interrupts & Timers
Arctic IEC-104 Gateway Jari Lahti, CTO.
DATA COMMUNICATIONS Some organisations concerned with standards: EIA - Electroonic Industries Association (RS standards including RS-232) IEEE - Institute.
1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
Chapter 4 Making Connections. 2 Introduction  Examine the interface between a computer and a device. This interface occurs at the physical layer.  Connecting.
Engineering Open House Need students to demo their players on –Friday 3-4 –Saturday 10-2.
Chapter 7 Protocol Software On A Conventional Processor.
1 Pertemuan 12 Layer Physical Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
CSE466 Autumn ‘00- 1 System Functional Requirements  Children’s toy…comes with PC software. Child plays notes on the screen and the device makes corresponding.
CSE Fall Introduction - 1 What is an Embedded Systems  Its not a desktop system  Fixed or semi-fixed functionality (not user programmable)
Eng. Husam Alzaq The Islamic Uni. Of Gaza
COMP3221: Microprocessors and Embedded Systems
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
EET Advanced Digital Chapter 21 Serial Ports.
1 The 9-Pin Connector Pin abbreviations (numbers in parentheses are the 25D pin numbers): 1. CD (8) 2. RD (Rx) (3) 3. TD (Tx) (2) 4. DTR (20) 5. SG (Ground)
ECE 371- Unit 11 Introduction to Serial I/O. TWO MAJOR CLASSES OF SERIAL DATA INTERFACES ASYNCHRONOUS SERIAL I/O - USES “FRAMING BITS” (START BIT AND.
12 - Winter 2006 ECE ECE 766 Computer Interfacing and Protocols 1 Interfaces Transmission of data from the source to a device or from a device to the destination.
RS422, RS485, RS423, RS449 and V.35 Data Communications (E&T2760): RS422, RS485, RS423, RS449 and V.35.
INPUT-OUTPUT ORGANIZATION
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
Transmission Modes Serial Transmission  One bit is transmitted on a circuit at a time  Usually there is one transmit circuit and one receive circuit.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
Real Time Operating System
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
The 8051 Microcontroller and Embedded Systems
Serial Port I/O Serial port sends and receives data one bit at a time. Serial communication devices are divided into: Data Communications Equipment (DCE),
SC200x Peripherals Broadband Entertainment Division DTV Source Applications July 2001.
UART and UART Driver B. Ramamurthy.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
1 Microprocessor-based Systems Course 9 Design of the input/output interfaces (continue)
Line Coding, Modem, RS232 interfacing sequences.
1 Lecture #2: Components of Network. Communication Subnetwork C o n t e n t s l Network Architecture: –Terminal Network –Computer Network l Data Transmission.
Universal Asynchronous Receiver/Transmitter (UART)
Microprocessors 2 lesson Subjects lesson 7 Planning Interrupts Serial communication /USART Questions.
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire conductors)
Serial Communications
Advanced Embedded Systems Design Lecture 8 Serial I/O BAE Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Universal Asynchronous Receiver/Transmitter (UART)
CSE466 Autumn ‘00- 1 What’s Coming  Hardware  Basic Filters and Noise Management  Serial Communications  Design Meeting  Move the quiz up to Monday.
Interfaces and Synchronization Martin Weiss. EIA 232D Interface Standard u Synonymous with ITU V.24 u Asynchronous interface u Up to 19.2kbps u 50 foot.
1 Transmission of Digital Data : Interface and Modems.
Chapter 13 – I/O Systems (Pgs ). Devices  Two conflicting properties A. Growing uniformity in interfaces (both h/w and s/w): e.g., USB, TWAIN.
1 Asynchronous voice band modem for IP data protocols overview features.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
Ch. 6 Digital Data Communication Techniques
CSCI1600: Embedded and Real Time Software Lecture 16: Advanced Programming with I/O Steven Reiss, Fall 2015.
©F.M. Rietti Communication Lines Fundamentals. ©F.M. Rietti LM-18 Computer Science SSI Embedded Systems I 2 Communication Lines Generally used to connect.
Ch. 6 Digital Data Communication Techniques. 6.1Asynchronous & Synchronous Transmission Asynchronous Transmission: transmission in which each information.
8251 USART.
BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP.
Serial mode of data transfer
UART Serial Port Programming
RS-232 Communications.
Topics Covered What is Real Time Operating System (RTOS)
Safe Queue? … while (next(head) == tail); // block if full
SERIAL PORT PROGRAMMING
RS-232 Communications.
Serial Communication: RS-232 (IEEE Standard)
CSCI1600: Embedded and Real Time Software
Serial Communication Interface: Using 8251
Serial Communication Interface
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Chapter 6 Transmission of Digital Data Interfaces and Modems
CSCI1600: Embedded and Real Time Software
8051SERIAL PORT PROGRAMMING
PIC Serial Port Interfacing
Presentation transcript:

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 set specified channel to specified note at specified amplitude (1-3)

CSE466 Autumn ‘00- 2 Data Rate Host Serial Task enqueu() do protocol w/ Host Event Task dequeue() decode() Tone Task out = f(…) Slice--; queue global variables tone Worst Case Data Rate: 4 simultaneous packets/event = 8 bytes/event at 200events/sec * 8bytes/event = 1600bytes/sec = 12.8Kbps can we run at 19.2?

CSE466 Autumn ‘00- 3 Serial Communication: RS-232 (IEEE Standard) TxD -- transmit data TxC -- transmit clock RTS – request to send CTS – clear to send CSE477 –Autumn 99 RxD – receive data RxC – receive clock DSR – data set ready : DTR – data terminal ready SG -- Signal Ground Serial protocol for point-to-point low-cost, low speed applications Commonly used to connect PCs to I/O devices RS-232 wires

CSE466 Autumn ‘00- 4 Transfer modes  Synchronous  Clock signal wire is used by both receiver and sender to sample data  (Psuedo) Asynchronous  No clock signal in common  Data must be over sampled to “ synchronize ”  Needs only three wires (one data for each direction, and ground)  Flow control  Handshaking signals to control byte rate, not bit rate. Signals like RTS, CTS, DSR, DTR  optional CSE477 –Autumn 99

CSE466 Autumn ‘00- 5 Data Format  Logic 0 (space): between +3 and +25 Volts.  Logic 1 (mark): between -3 and -25 Volts.  Undefined between +3 and -3 volts. CSE466 –Spring 00 Start Bit, Stop bit, Data bits, Parity Bit (odd, even, none)

CSE466 Autumn ‘00- 6 Level Converter: DS 275  Pin Description  RXout - RS- 232 Receiver Output (-0.3V to Vcc)  Vdrv - Transmit driver +V (hook to Vcc)  TXin - RS-232 Driver Output (-0.3V to Vcc)  GND - System ground  TXout - RS-232 Driver Output (+/- 15 V)  RXin - RS-232 Receive Input (+/- 15 V)  Vcc - System Logic Supply (+5V) CSE477 –Autumn DS 275 Rx Tx Rx out Tx in Rx in Tx out voltage conversion

CSE466 Autumn ‘00- 7 DTE NULL Modem Adapter  Using only TD, RD, and SG  No need for flow control (May miss characters if sent too fast)  Both ends ready to send/receive at any time CSE466 –Spring 00 Null modem DTE This adapter does the swapping for you. DTE Modem = DCE modem DTE

CSE466 Autumn ‘00- 8 SW Flow Control Protocol Host Serial Task enqueu() do protocol w/ Host Event Task dequeue() decode() Tone Task out = f(…) Slice--; queue global variables tone Worst Case Data Rate: 4 simultaneous packets/event = 8 bytes/event at 200events/sec * 8bytes/event = 1600bytes/sec = 12.8Kbps What determines our true bit rate for keeping the buffer full? data ack

CSE466 Autumn ‘00- 9 Review Questions?

CSE466 Autumn ‘ Comparison Non OS Architectures  See Chapter 5, table 5.1 Simon

CSE466 Autumn ‘ Real Time Operating Systems  What is the basic thing we want the OS to do to help us improve worst case latency? Enable multithreading  How? Define an OS time-slice (tick) at which highest priority ‘runnable’ task is continued. Priority function determines response behavior.  Simplest Scheduling algorithm: each task gets at most 1 tick at a time to run. Round Robin Scheduling. Worst case task latency = #tasks*tick. Worst case run time = ticks/task * #tasks  Some properties of such system: liveness, safety, fairness, latency, overhead.  Other niceties: Device Drivers, Synchronization, Message passing, Memory Management

CSE466 Autumn ‘ Programmers View void tone_isr(void) interrupt … { process_tones(); if (!--sliceCount) { updateToneParameters(); sliceCount = SliceSize isr_send_signal(MUSIC); } void serial_isr(void) interrupt …{ timeCritical(); os_send_signal(SERIAL); } void play(void) _task_ MUSIC { os_create(SERIAL); while (1) {os_wait(); process_next_event();} } void serial(void) _task_ SERIAL { while (1) {os_wait(); process_serial_data();} // os_create(MUSIC)? } Advantages: Deterministic response time even w/ non deterministic tasks lengths. Incremental development Resources: Task switching overhead Memory overhead Use of system timer Degrades best case response time. Tasks are threads

CSE466 Autumn ‘ Another Solution  Multiprocessor: Dedicate one processor to each (or a few) tasks.  Still need synchronization and communication.  A network of M-BOXes could be an example of a multiprocessor system

CSE466 Autumn ‘ Basic Architecture of an RT OS  Task Table  Process state, signal flag, time_out counter, context  System Interrupt Service Routine (timer)  System Calls (Code, time)

CSE466 Autumn ‘ Embedded Software  Software States v. Finite State Machines  Hierarchical State  Thread/Process Communication  Critical Sections  Synchronization  Messaging and Signaling