Grading Lab reports: 10pts each. Demo required Homeworks: 3 points each (will be scaled by difficulty) Ratios –Lab: 25% –Homework 25% –Quizzes total 25%

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

Week10 Boolean Instructions on the Boolean Instructions  Boolean (or Bit) addressable capability is unique to the 8051  Enables efficient handling.
RADIO FREQUENCY BASED SERIAL COMMUNICATION..
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Controlling Motors OBEY ME!. On-Off Control 1. Switch control.
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.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
Chapter 2 HARDWARE SUMMARY
8086.  The 8086 is Intel’s first 16-bit microprocessor  The 8086 can run at different clock speeds  Standard 8086 – 5 MHz  –10 MHz 
1/1/ / faculty of Electrical Engineering eindhoven university of technology Introduction Part 3: Input/output and co-processors dr.ir. A.C. Verschueren.
EML 2023 – Motor Control Lecture 4 – DAQ and Motor Controller.
Introduction of Holtek HT-46 series MCU
CSC Timers Since this is a microcontroller it mainly finds itself in embedded devices Quite often embedded devices need to synchronize events The.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
Chapter 8 Output Modules.
Digital I/O Connecting to the Outside World
Microcontroller 8051.
Technion-Israel Institute of Technology Electrical Engineering Department High Speed Digital Systems Laboratory Project subject: wireless biofeedback system.
The 8051 Microcontroller architecture
Microprocessor Block Diagram
©Alex Doboli Chapter 3: Hardware and Software Subsystems of Mixed-Signal Architectures (Part II) Alex Doboli, Ph.D. Department of Electrical and Computer.
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
Control pins and Writing Microcode. Simple architecture Recall our architecture from the previous week It was a simple bus architecture “Control” was.
Objectives How Microcontroller works
Embedded Systems Design 1 Lecture Set 6 I/O Ports.
Input Laboratory: GPIO Pin control needed to have the Blackfin accept your commands Re-uses information from ENEL353 and ENCM369 courses and text books.
ENGR 6806 – Motor Control Prepared By: Rob Collett September 15, Office: EN2074.
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
ENEE 440 Chapter Timer 8254 Register Select The 8254 timer is actually 3 timers in one. It is an upgraded version of the 8253 timer which was.
Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion.
Practical Digital Design Considerations Part 1 Last Mod: January 2008 ©Paul R. Godin.
1. 2 Outline 1.Introduction 2.Modeling 3.Simulation 4.Implementation 5.Demo 6.Conclusion.
MCS-51 Hardware Interfacing
MOBILE OPERATING ROBOT ON EMBEDDED SYSTEM
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
SE3910 Week 2, Class 1 Today Basic Circuits Other ??? Tomorrow Lab 2, S365 (Complete prelab BEFORE) Thursday See ScheduleSchedule SE-2811 Slide design:
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
Joe Blubaugh Diana Mui David Sutherland Matthew Swallow.
CSE466 Autumn ‘00- 1 Review and Lab Prep  hotmail account on mailing list doesn’t work.
Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.
ECS642U Embedded Systems Cyclic Execution and Polling William Marsh.
8051 Micro controller. Architecture of 8051 Features of 8051.
CSE466 Autumn ‘00 Misc.  Card Key Access…See Kathleen Goforth  Mail Archive…working on it…are you getting my messeges?  Why do we connect the speaker.
Embedded Network Interface (ENI). What is ENI? Embedded Network Interface Originally called DPO (Digital Product Option) card Printer without network.
Microcontrollers Class : 4th Semister E&C and EEE Subject Code: 06ES42
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.
Microcontroller Intel 8051 [I/O Ports]. Pin out of the 8051 –40 pin package –32 pins are used for the 4 ports. –V CC / V SS –ALE Address Latch Enable.
PPI-8255.
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
Presented by Sadhish Prabhu
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
EE/CS-352: Embedded Microcontroller Systems Part V The 8051 Assembly Language Interrupts.
CSE466 - Fall What is an Embedded System  Its not a desktop system  Fixed or semi-fixed functionality (not user programmable)  Lacks some or.
Chapter Microcontroller
8255:Programmable Peripheral Interface
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
80C51 Block Diagram 1. 80C51 Memory Memory The data width is 8 bits Registers are 8 bits Addresses are 8 bits – i.e. addresses for only 256.
Memory Mapped IO (and the CerfBoard). The problem How many IO pins are available on the 8051? What if you are using interrupts, serial, etc…? We want.
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
Embedded Systems Programming (What they do and when / how to use them)
Microcontroller basics
What’s Inside the Buffer?
Internet-of-Things (IoT)
I/O Ports.
UNIT-VIII 8051 Microcontroller Architecture Register set of 8051
Presentation transcript:

Grading Lab reports: 10pts each. Demo required Homeworks: 3 points each (will be scaled by difficulty) Ratios –Lab: 25% –Homework 25% –Quizzes total 25% –Final 15% –Class Participation 10%

Today Grading Homework 1 and 2 Review Design Meeting (what’s next) 8051 I/O Ports Materials

Homework 1 Review Main Issues: –Interrupt configuration (EA, ET0, TR0) –Time delay in doing setpoint comparison –Use of registers for static storage –Saving state in ISR –Critical Sections, do we have them? –My version –C-compiler: Semi-static local variables Lab Issues –Simulation v. HW –Incrementalism v. Big Bang

Compact ISR for PWM CSEG AT000Bh LJMPISR0 … ISR0:PUSHACC() PUSH PSW() INC CNT(2) MOV A, CNT(2) ADD A,THI(2) MOV P1.1,C(2) POPPSW() POPACC() RETI(1)

Homework 2 Review 1ms + 1Mcycles = 1/ sec ~ 32ms Let R = 10K, so C =.032/10K = 3.2uF RST 10K 3.2u

Design Meeting Conclusions (Frequency Range, MIPS utilization) What’s next? Debug User interface (text for now) –Command mode, play mode Tone generation algorithms/techniques –Single timer Song Parameters/Representation

A Bi-direction Port? Write Reg Read Reg Pin bus

What’s Inside the Buffer? IhIh IlIl Write Reg This device always “drives” either high or low. Will overpower an input signal, or get hot trying Never High Impedence ‘Z’ Note: this one inverts the signal, but its just an example…

I/O Ports Write Reg Read Reg Pin bus Dir Ctl 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…

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.

Application: Wired NOR 8051 Communication bus: Each processor tries to send data, but detects collision. If collision, then stop transmitting Collisions are safe because nobody drives high. The one who writes the zero first gets the bus! Q1) How can a processor detect a collision?

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, up to 3.2mA Port 1 and 3: –GPIO only. External pullups are optional. Power/speed tradeoff, up to 1.6mA. 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.

Example Problem P1 Open = 0 Closed = 1 R 1) As big as possible! According to Data sheet: Processor reads a zero if Vpin <.2Vcc -.3 = 0.7V I low (port 1) is.45Vp 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! Vp

Careful w/ Coils (motors, etc) Current limiter R = 50Ohms Coil (L) MOSFET Switch 8051 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 I =0.1A Vds