What’s Inside the Buffer?

Slides:



Advertisements
Similar presentations
1 ECE 372 – Microcontroller Design Parallel IO Ports - Outputs Parallel IO Ports E.g. Port T, Port AD Used to interface with many devices Switches LEDs.
Advertisements

Common Emitter Amplifier. Design Rules V RE should be > 100 mV.
EC 2208 – Electronic Circuits Lab 1
555 Timer ©Paul Godin Updated February Oscillators ◊We have looked at simple oscillator designs using an inverter, and had a brief look at crystal.
Lock-in amplifiers Signals and noise Frequency dependence of noise Low frequency ~ 1 / f –example: temperature (0.1 Hz), pressure.
CSE Fall Introduction - 1 Electronics and Physical Interfaces  Speaker Interface  Electronics Review  8051 I/O.
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.
Grading Lab reports: 10pts each. Demo required Homeworks: 3 points each (will be scaled by difficulty) Ratios –Lab: 25% –Homework 25% –Quizzes total 25%
Lecture 151 1st Order Circuit Examples. Lecture 152 Typical Problems What is the voltage as a capacitor discharges to zero? What is the voltage as a capacitor.
Introduction to Op Amps
Digital I/O Connecting to the Outside World
Content Op-amp Application Introduction Inverting Amplifier
©Alex Doboli Chapter 3: Hardware and Software Subsystems of Mixed-Signal Architectures (Part II) Alex Doboli, Ph.D. Department of Electrical and Computer.
Practical Digital Design Considerations Part 1 Last Mod: January 2008 ©Paul R. Godin.
SE3910 Week 2, Class 1 Today Basic Circuits Other ??? Tomorrow Lab 2, S365 (Complete prelab BEFORE) Thursday See ScheduleSchedule SE-2811 Slide design:
ECE 4991 Electrical and Electronic Circuits Chapter 8.
CHAPTER 5 Transistor Circuits.
CSE466 Autumn ‘00- 1 Review and Lab Prep  hotmail account on mailing list doesn’t work.
CSE466 Autumn ‘00- 1 What’s Coming  Hardware  Basic Filters and Noise Management  Serial Communications  Design Meeting  Move the quiz up to Monday.
Other Transistor Circuits
CSE466 Autumn ‘00 Review  Card Key Access…See Kathleen Goforth  Mail Archive…working on it…are you getting my messeges?  Why do we connect the speaker.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
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.
Project: security lock system Idea: –Create a 4bit password using switches –Send data serially (one bit at a time) using an LED –Receive the code serially.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the PWM type Digital-to-Analog.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
Chapter 3 Parallel Ports, Power Supply and the Clock Oscillator The aims of this chapter are to introduce: Why we need parallel input/output; How simple.
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:
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
Infrared Transmitter and Receiver Block Design
Embedded Systems Programming (What they do and when / how to use them)
Resistor Transistor Logic - RTL
DR. S. & S. S. GANDHY COLLEGE OF ENGINEERING AND TECHNOLOGY
What is a DAC? A digital to analog converter (DAC) converts a digital signal to an analog voltage or current output DAC.
Purpose of This Minilab
INDUSTRIAL ELECTRONICS/ELECTRICITY
SAR ADC Input Types TIPL 4003 TI Precision Labs – ADCs
(4) Filters.
Diode Transistor Logic – DTL
Electronic Devices Ninth Edition Floyd Chapter 17.
Lecture 10 Bipolar Junction Transistor (BJT)
555 Timer EEE DEPARTMENT KUMPAVAT HARPAL( )
Chapter 11: Inter-Integrated Circuit (I2C) Interface
A lecture for Arduino Course, Winter 2017/18
The operational amplifier, cont.
Lock-in amplifiers
Graduation Project-II submitted to:
Project: security lock system
Principles & Applications
Principles & Applications Small-Signal Amplifiers
Unit IV 555 Timer.
Lesson 9: Digital Input-Output Signal Interfacing
POWER AMPLIFIERS.
Industrial Electronics
Internet-of-Things (IoT)
Electronics Fundamentals
Serial EEPROM (Atmel 24C-512)
I/O Ports.
Chapter 6: Voltage Regulator
EET 1131 Unit 13 Multivibrators and the 555 Timer
Amplifiers Classes Electronics-II
Bipolar Transistors AIM:
Tri-state Buffers and Drivers By Taweesak Reungpeerakul
Principles & Applications Large-Signal Amplifiers
Amplifiers Classes Electronics-II
Common Emitter Amplifier
ECE 3336 Introduction to Circuits & Electronics
Chapter 5 OUTLINE Op-Amp from 2-Port Blocks
POWER ELECTRONICS DC-DC CONVERTERS (CHOPPERS) PART 1
Presentation transcript:

What’s Inside the Buffer? This device always “drives” either high or low. Current is a function of pin voltage Never High Impedence ‘Z’ Ih Write Reg Il Note: this one inverts the signal, but its just an example… CSE 370 - Fall 1999 - Introduction - 1

CSE 370 - Fall 1999 - Introduction - 2 I/O Port? Write Reg Read Reg Pin bus CSE 370 - Fall 1999 - Introduction - 2

CSE 370 - Fall 1999 - Introduction - 3 I/O Ports Dir Ctl Write Reg Read Reg Pin Output driver can be disconnected from the pin so that input buffer can sense only the input signal This kind of bi-directional port requires a direction control register (SFR) for each bit of output (like StrongArm…) bus CSE 370 - Fall 1999 - Introduction - 3

The 8051 (always has to be different) Eliminate the need for configuration bits by making outputs that can only drive strongly low (sink). There are three kinds of pins on the 8051 (of course) No pull up Weak pull up Weak pull up with momentary strong pullup To use a input pin, set output value to 1 (weak or no pullup). External signals just have to overpower the weak pull up (low resistance to ground). As output, will go from 0 to 1 slowly unless you add an external pullup Data sheet doesn’t spec the resistance of the pull up, but it specs the Amount of current that will result in a given voltage at the pin. For Example, in Ports 1,2,3 Ioh = -25uA at .75Vcc. CSE 370 - Fall 1999 - Introduction - 4

I/O Ports (see 2-40 of AT89 Hardware Desc.) read control Pin write control Write Reg It can drive a 0, but not a 1 (sinks current). No direction bit required, just write a 1 to the port register to use as input pin. bus CSE 370 - Fall 1999 - Introduction - 5

Application: External I/O bus Q1) How can a processor detect a collision? 8051 Communication bus: Each processor tries to send data, but detects collision. If collision, then stop transmitting 8051 8051 CSE 370 - Fall 1999 - Introduction - 6

CSE 370 - Fall 1999 - Introduction - 7 Summary Port 0: used as address bus for external address/data bus. Uses active pullup in this mode. Fast Can use as GPIO. Must use external pullup. Pullup size is power/speed tradeoff, can sink up to 3.2mA while maintaining a logic zero output. Port 1 and 3: GPIO only. External pullups are optional. Power/speed tradeoff, can sink up to 1.6mA while maintaining a logic zero output Port 2: Also used for external address bus. Has active and passive internal pullups. External pullups are optional in GPIO mode, up to 1.6mA. CSE 370 - Fall 1999 - Introduction - 7

Example Problem (See elec. specs in AT89C55) 1) As big as possible! Vp Open = 0 Closed = 1 P1 R According to Data sheet: Processor reads a zero if Vpin < .2Vcc - .3 = 0.7V Ilow (port 1) is .45V at 50uA. So what is max R? (.45/50e-6) = 9Kohms So the switch resistor better be smaller than 9Kohms. 4.7K is a good choice. 2.7 is okay but higher power! CSE 370 - Fall 1999 - Introduction - 8

Careful w/ Coils (motors, valves, etc) Steady state on current: Vcc/R Vds ~ 0 (Rds ~ 4mOhm) But, when we try to turn off the Mosfet quickly, what happens? Rds goes up quickly, but Ids drops slowly) If Rds becomes 1K, then Vds becomes 100V And instantaneous power becomes 10W Current limiter R = 50Ohms I =0 .1A Coil (L) 8051 MOSFET Switch Vds CSE 370 - Fall 1999 - Introduction - 9

Absolute Maximum Current Ratings Is there a limit to how much current we can sink if we don’t care about what happens to our logic levels? How much current did you sink in Lab1? What was the voltage at the pin? What is the maximum legal speaker power on port 0? 10mA @ 8ohms = .8mW …. we want 200mW! CSE 370 - Fall 1999 - Introduction - 10

CSE 370 - Fall 1999 - Introduction - 11 Design Meeting How are we going to make louder more interesting sounds?? Sample rate v. Frequency How can we generate a complex tone (muliple notes simulaneously) How should we use timers/interrupts to do siren? What is midi? Spreadsheet for tone generation CSE 370 - Fall 1999 - Introduction - 11

CSE 370 - Fall 1999 - Introduction - 12 Using single bit tones Two tones generated by two single bit outputs. How do we add tone1 and tone2. CSE 370 - Fall 1999 - Introduction - 12

CSE 370 - Fall 1999 - Introduction - 13 Our Version Objective convert number of bits to current 5V 8051 tone1 AMP (B to I) tone2 tone3 CSE 370 - Fall 1999 - Introduction - 13

CSE 370 - Fall 1999 - Introduction - 14 One Idea 5V 8051 R=? tone1 8ohms tone2 Vs tone3 Constraints 5/(8+R)<10mA 5/(8+R/3)<26mA Does this sum? (I = Bx) What must R be to protect the processor? What is the worst case (1, 2, or 3 bits)? How much power are we putting through the speaker in the worst case? Close. Vs decreases with increasing B. So each Ir decreases with increasing B. 3 bits is worse (Higher R constraint) (26mA)^2 * 8 = 5.4mW CSE 370 - Fall 1999 - Introduction - 14

CSE 370 - Fall 1999 - Introduction - 15 Another Idea Use a current amplifier (PNP Transistor) Ice <= Ib (assume =100) Assume Vbe = 0.7V when “on” Assume Vce = 1V when “on” Assume tone1 = 0V Pick Rc to protect the speaker Pick Rb to protect the processor while turning on the transistor 5V 8ohms Ib 8051 e tone1 b <Ib c Rb Is = ((.2/8)^.5)/3 = ~50mA Rc: 5 – (50mA*8) – Vce – (50mA * Rc) = 0 so: Rc = (5 – 1 – 0.4)/.05 = 72ohms Rb: Vb/1mA = [5 – (8*.05) - .7]/1mA = 3.9K! Rc CSE 370 - Fall 1999 - Introduction - 15

CSE 370 - Fall 1999 - Introduction - 16 Final Circuit Design Size R to match your speaker and to Stay within the current limitations of the Processor. 5V 8ohms 8051 Rb tone1 tone2 tone3 Rc CSE 370 - Fall 1999 - Introduction - 16

CSE 370 - Fall 1999 - Introduction - 17 Ideal Solution Digital to Analog Converter 8051 8 SW? DAC AMP (V to I) Voltage signal Speaker cares about current, not voltage What is algorithm to superimpose 1KHz tone with 500Hz tone With a sampling rate of 10KHz CSE 370 - Fall 1999 - Introduction - 17

CSE 370 - Fall 1999 - Introduction - 18 Software Summation Add waveforms to get multiple tones (think current through speaker, not voltage) Note that lower frequency is smoother for a given sample rate CSE 370 - Fall 1999 - Introduction - 18

What should we do in the next lab? CSE 370 - Fall 1999 - Introduction - 19

Synthesizer Algorithm Let sin[] be a look up table with 256 entries (1 complete cycle) Every .1ms (10KHz) P2 = sin[t1] + sin[t2] + sin[t3] … For 1KHz, t1 += 256/10 is this hard? how do we implement this? For 500Hz, t2 += 256/20 At 8-bit resolution we can vary output from 0 to 255. Hi frequencies are smoother Can Compute arbitrary waveforms (not just tone summations) 255 128 CSE 370 - Fall 1999 - Introduction - 20

CSE 370 - Fall 1999 - Introduction - 21 Summary Review of basic Electronics Capacitors Inductors Bipolar Transistors MOS transistors Review of 8051 I/O configuration CSE 370 - Fall 1999 - Introduction - 21