CSE466 Autumn ‘00- 1 What’s Coming  Hardware  Basic Filters and Noise Management  Serial Communications  Design Meeting  Move the quiz up to Monday.

Slides:



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

INPUT-OUTPUT ORGANIZATION
11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design.
RADIO FREQUENCY BASED SERIAL COMMUNICATION..
DATA COMMUNICATIONS Some organisations concerned with standards: EIA - Electroonic Industries Association (RS standards including RS-232) IEEE - Institute.
555 Timer ©Paul Godin Updated February Oscillators ◊We have looked at simple oscillator designs using an inverter, and had a brief look at crystal.
Data Acquisition ET 228 Chapter
1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
Electronic Instrumentation and Measurements AC Power CHAPTER 15.
Transmission of Digital Data: Interfaces and Modems NETE 0510 Dr.Apichan Kanjanavapastit.
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.
External Read Cycle How fast does The RAM have to Be? 7 osc. Cycles Recall design Of P0: active pullup And pulldown so Data bus can “float”
Eng. Husam Alzaq The Islamic Uni. Of Gaza
CSCI 4550/8556 Computer Networks Comer, Chapter 5: Local Asynchronous Communication (RS-232)
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.
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.
Local Asynchronous Communication
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.
INPUT-OUTPUT ORGANIZATION
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
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.
3.1 Basic concepts of data communications and networking
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.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
1 Microprocessor-based Systems Course 9 Design of the input/output interfaces (continue)
Line Coding, Modem, RS232 interfacing sequences.
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.
“Describe the overview of hardware interfacing and the serial communication interface. Describe the PIC18 connections to RS232. Explain the serial port.
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.
Scott Baker Will Cross Belinda Frieri March 9 th, 2005 Serial Communication Overview ME4447/6405.
Chapter 5: Local Asynchronous Communication 1. Bit-wise data transmission 2. Asynchronous communication 3. Sending bits with electric current 4. Standard.
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
MODES OF Details of Pins Pin 1GND –Connected Ground Pins 2-16 AD14-AD0–acts as both input/output. Outputs address at the first part of the cycle.
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.
Universal Asynchronous Receiver/Transmitter (UART)
2/26: Wide World of Modems Roll call. Video: modem Lecture: step- by-step
1 Transmission of Digital Data : Interface and Modems.
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.
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
©F.M. Rietti Communication Lines Fundamentals. ©F.M. Rietti LM-18 Computer Science SSI Embedded Systems I 2 Communication Lines Generally used to connect.
8251 USART.
BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP.
CSE466 Autumn ‘00- 1 Lab Issues and Questions?  Daily quiz: How is an interrupt different than a subroutine call?  Limitations of the assembler  Seems.
TITLE: 555 Timer OM INSTITUTE OF TECHNOLOGY Subject: Analog Electronics ( ) Semester: 03 Prepared By:
Application Case Study Christmas Lights Controller
Chip Config & Drivers – Required Drivers:
Serial mode of data transfer
RS-232 Communications.
555 Timer EEE DEPARTMENT KUMPAVAT HARPAL( )
What’s Inside the Buffer?
SERIAL PORT PROGRAMMING
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
RS-232 Communications.
Serial Communication: RS-232 (IEEE Standard)
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.
Presentation transcript:

CSE466 Autumn ‘00- 1 What’s Coming  Hardware  Basic Filters and Noise Management  Serial Communications  Design Meeting  Move the quiz up to Monday 10/16 from 10/20.

CSE466 Autumn ‘00- 2 Example P0 P ALE \RD \WD A[14:8] A[7:0] D[7:0] RAM \RE 32Kx8 \WE \E4 ADC1 \E1\RD D[7:0] DAC2 \E2 \WD D[7:0] A[4:0] D[7:0] LCD \E3 E LATCH D Q PLD

CSE466 Autumn ‘00- 3 Address Decoder Logic Design 1.Define External Memory Map (64K): addr[15:0] Ram: Upper 32K enable if address = 1xxxxxxxxxxxxxxx LCD: 0-31 enable if address = 0xxxxxxxx00xxxxx DAC2: 32 enable if address = 0xxxxxxxx01xxxxx ADC1: 64 enable if address = 0xxxxxxxx10xxxxx 2.Come up w/ address decoder logic for each case (many to 1 ok, 1 to many not okay!) \E4 = (A15)’ covers all upper 32K addresses \E3 = (A15’A6’A5’)’ covers 2^12 addresses including 0-31 but excluding upper 32K, 64, 32 \E2 = (A15’A6’A5)’ covers 2^13 addresses but excludes upper 32K, 64, 0-31 \E1 = (A15’A6A5’)’ covers 2^13 addresses but excludes upper 32K, 32, 0-31

CSE466 Autumn ‘ Why? power supply can’t change instantaneously Power lines have inductance Rapidly reduced R eff at constant I  Voltage drop at the load So what? Could cause processor to reset/go to unknown state, mess up analog voltage readings, cause electromagnetic interference Power Supply Noise

CSE466 Autumn ‘00- 5 What to do about it? 8051 How big should cap be? Depends on speed and inductance of the supply, and  I when switched Typical values for digital boards are.1uF/IC placed very close to IC ….then there’s capacitive loads…. Called a “Bypass Cap” Acts like a low pass filter

CSE466 Autumn ‘00- 6 Capacitive Loads 8051 Why is this worse than resistive load? Recharge current is only limited by available electrons! Can cause massive voltage drop until battery catches up. So what? Last year’s capstone project: sonar firing caused processor reset C1C1 C2C2 chrg flash chrg flash chrg

CSE466 Autumn ‘00- 7 Charge Sharing 1.Initially Q 1 =V 0 C 1 2.Then close switch, what is V’/V 0 ? 3.V 0 = Q 1 /C 1 (initial condition) 4.Q 1 ’+Q 2 ’ = Q 1 (post condition) 5.Q 1 = V’C 1 +V’C 2 = V’(C 1 +C 2 ) 6.V’ = Q 1 /(C 1 +C 2 ) 7.V’/V0 = Q 1 /(C 1 +C 2 ) * C 1 /Q 1 8.V’/V 0 = C 1 /(C 1 +C 2 ) If C 1 dominates, then V’ ~ V 0 If C 1 = 10C 2 Then V 1 /V 0 = 10/11 C1C1 C2C2 V0V0

CSE466 Autumn ‘00- 8 Where else could we use a low pass filter? 8051 DAC AMP out1 passband stopband frequency  gain for RC filter gain < 1 Fhp = 1/(2*pi*RC) RC = 1/(2*Pi*Fhp) Fhp: gain =.5 assume I into amp = 0

CSE466 Autumn ‘00- 9 Design Meeting  We can play tones.  What do we have to do now?  Music representation – what is music?  Basic I/O to the host (PC)  C  Multiple independent tones with a single timer

CSE466 Autumn ‘ Is Constant Rate Sampling Okay?  Just like CD player: runs a 44KHz…max frequency it can create is 22KHz,  A CD recording of a pure 22HKz tone would look like a square/triangle wave on the output of the DAC. two frequencies with same rate. How fast can you go?

CSE466 Autumn ‘ Frequency range w/ fixed sample rate  To get a psuedo-sine wave, what is the max Stride for our lookup table?  64: 64/156 (5K) = 1.125KHz  Let Stride = 1 and Sample Rate = 5KHz  output frequency = 5KHz/256 = Hz  low frequencies generate a smoother waveform  Let Stride = n  output frequency = 5KHz/(256/n) = n*(5KHz/256)  Solve for output frequency  Stride = (freq*256)/5KHz  Middle C = 262Hz, so stride = can we just round this off? Yes for this week’s lab.  D = 294, so stride =  What happens for low frequencies  Low F: 87.31Hz  stride = 4.74  Low E: 82.42Hz  stride = 4.47  what do we do with non-integral strides?

CSE466 Autumn ‘ 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 ‘ Transfer modes  Synchronous  Clock signal wire is used by both receiver and sender to sample data  Asynchronous  No clock signal in common  Data must be over-sampled  Needs only three wires (one data for each direction, and ground)  Flow control  Handshaking signals to control byte rate, not bit rate  Optional CSE477 –Autumn 99

CSE466 Autumn ‘ 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 ‘ 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 ‘ 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