Parallel ports, power supply, and the clock oscillator Chapter Three Dr. Gheith Abandah1.

Slides:



Advertisements
Similar presentations
Introduction to PIC Microcontrollers
Advertisements

Practical Considerations for Digital Design
Khaled A. Al-Utaibi  Clock Generator Functions  Crystal Oscillator  8284 Pins  8284 Interfacing to the 8086  RC Circuit Charging.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 10.1 Sequential Logic  Introduction  Bistables  Memory Registers  Shift.
Industrial Automation and Control
Oscilloscope Watch Teardown. Agenda History and General overview Hardware design: – Block diagram and general overview – Choice of the microcontroller.
Data acquisition and manipulation
The human and physical interfaces Chapter Eight 8.1 – 8.9 Dr. Gheith Abandah1.
Starting with serial Chapter Ten 10.1, 10.2,
Read Chapter 3 (David E. Simon, An Embedded Software Primer)
Sensors And Micro-Controllers
ACTIVE SUSPENSION TEST PLATFORM BRANDON NAYDEN & CHIAO LIU BY ADVISED BY: STEVEN GUTSCHLAG.
Digital I/O Connecting to the Outside World
EEE305 Microcontroller Systems Lecture 5B: Simple I/O Embedded C using PIC microcontrollers Teaching resources on on
Lecture – 7 Basic input and output
Microcontroller: Introduction
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Lecture – 6 PIC18 Family Hardware Specifications 1.
Microprocessor Block Diagram
PIC microcontrollers. PIC microcontrollers come in a wide range of packages from small chips with only 8 pins and 512 words of memory all the way up to.
Department of Electronic & Electrical Engineering Embedded system Aims: Introduction to: Hardware. Software Ideas for projects ? Robotics/Control/Sensors.
MICROCONTROLLER BASED FIRE FIGHTING ROBOT. ABSTRACT The object of this project is  IN OUR PROJECT WE DESIGNED A PROTOTYPE TO DETECT FIRE AND EXTINGUISH.
Minimum Systems and the PIC 16F84A Chapter Two Dr. Gheith Abandah1.
Objectives How Microcontroller works
Operational amplifier applications
Micro-Mouse By Mohamad Samhat Narciso Lumbreras Hasan Almatrouk.
Group Members: Mariam Al Junaibi Shaikha Al Shamsi Shaikha Al Maskari.
Parallel Ports, Power Supply and the Clock Oscillator Material to be covered  Parallel I/O ports  Interfacing external switches and LEDs  Clock Oscillator.
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
MOBILE OPERATING ROBOT ON EMBEDDED SYSTEM
Digital to Analogue Converter
One of the most important feature of the microcontroller is a number of input/output pins used for connection with peripherals. In the case of PIC 167CX,
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Modern VLSI Design 2e: Chapter 3 Copyright  1998 Prentice Hall PTR Topics n Electrical properties of static combinational gates: –transfer characteristics;
Chapter 11 Logic Gate Circuitry.
CBC BODY COMPUTERS CHAPTER 12. CBC OBJECTIVES H ANALOG AND DIGITAL VOLTAGE SIGNALS H COMPUTER COMMUNICATION H COMPUTER MEMORY H INPUTS H OUTPUTS H MULTIPLEXING.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
Chapter 7 Larger Systems and the PIC 16F873A The aims of this chapter are to introduce: The architecture of the 16F873A microcontroller; The 16F873A memory.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
Basic LED Interface.
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
Department of Electronic & Electrical Engineering Introduction to microcontrollers A microcontroller is a small computer on a single integrated circuit.
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.
Electrical Characteristics of Logic Gates Gate Characteristics Last Mod: January 2008  Paul R. Godin.
Department of Electronic & Electrical Engineering Introduction to microcontrollers A microcontroller is a small computer on a single integrated circuit.
Components of a typical full-featured microcontroller.
 ACCELEROMETER  TRANSMITTER- BLOCK DIAGRAM  RECEIVER- BLOCK DIAGRAM  COMPONENTS DESCRIPTION- ENCODER TRANSMITTER RECEIVER OPTICAL SENSOR.
GROUP MEMBERS: SUMEET HOODA. RAJDEEP PATRE. DHIRAJ GAONKAR. LIVE HUMAN DETECTION USING WIRELESS REMOTE CONTROLLED ROBOT.
SUBMITTED BY:-. FND DISPLAY MICRO CONTROLLER KEYPAD COMPARATO R CIRCUIT.
WATER LEVEL INDICATOR AND AUTOMATIC MOTOR SWITCHING SYSTEM
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
Mobile phone keypad sensed password entry for door opening.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
Environment Temperature Monitor
ABSTRACT The controller continuously polls the temperature with certain regular time intervals and displays over the 7_segment display The temperature.
Chapter 06 Logic Gate Circuitry.
For further information
SUBMITTED BY EDGEFX TEAM
Lecture 6: TI MSP430 IO Interfacing
Group Number 42: Monitoring System for Rotating Turbines
EE Embedded Systems Fall 2015
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Introducing the PIC Mid-Range Family and the 16F84A
8051 Micro Controller.
ACOE347 – Data Acquisition and Automation Systems
Presentation transcript:

Parallel ports, power supply, and the clock oscillator Chapter Three Dr. Gheith Abandah1

Outline Parallel ports – Technical challenges – Connecting to the parallel port – The PIC 16F84A parallel ports Power supply Clock oscillator Dr. Gheith Abandah2

Data Transfer Almost any embedded system needs to transfer digital data between its CPU and the outside world. – Direct user interface, including switches, keypads, light- emitting diodes (LEDs) and displays – Input measurement information, from external sensors, possibly being acquired through an analog-to-digital converter – Output control information, for example to motors or other actuators – Bulk data transfer to or from other systems or subsystems, moving in serial or parallel form, for example sending serial data to an external memory. Dr. Gheith Abandah3

Output Parallel Ports Dr. Gheith Abandah4

Input Parallel Ports Dr. Gheith Abandah5

Bi-directional Parallel Ports Dr. Gheith Abandah6

Port electrical characteristics Dr. Gheith Abandah7 Modeling a logic gate output. (a) Generalized model. (b) Model of CMOS logic gate output

Schmitt trigger inputs Dr. Gheith Abandah8 Schmitt trigger characteristics. (a) Buffer with Schmitt trigger input. (b) Input/output characteristic

The ‘Open Drain’ output Dr. Gheith Abandah9 (a) An ‘Open Drain’ output. (b) Open Drain output driving load resistor. (c) The ‘Wired- OR’ connection

Connecting to the parallel port (1) Switches Dr. Gheith Abandah10 (a)SPDT connection. (b) SPST with pull-up resistor. (c) SPST with pull-down resistor Pull-up values in the range 10–100 kΩ

Connecting to the parallel port (2) Light-emitting diodes Dr. Gheith Abandah11

Connecting to the parallel port (2) Light-emitting diodes Dr. Gheith Abandah12 Driving LEDs from logic gates. (a)Gate output sourcing current to LED (b)Gate output sinking current from LED

Connecting to the parallel port (2) Light-emitting diodes Dr. Gheith Abandah13

The PIC 16F84A parallel ports Port A – 5 Bits – RA3:RA0 – RA4/T0CKI Port B – 8 Bits – RB0/INT – RB3:RB1 – RB7:RB4: Interrupt on change Dr. Gheith Abandah14

Dr. Gheith Abandah15

Dr. Gheith Abandah16

Dr. Gheith Abandah17

Dr. Gheith Abandah18

Port output characteristics -1 Dr. Gheith Abandah19 VOH vs. IOH (VDD = 3V, −40 to 125◦C) R = 130 Ω

Port output characteristics -2 Dr. Gheith Abandah20 VOL vs. IOL (VDD = 3V, −40 to 125◦C) R = 36 Ω

The clock oscillator Faster clock gives faster execution, but more power consumption. The clock oscillator must give stable and accurate clock signal. Oscillator types: – Resistor–capacitor (RC) Not precise – Crystal or ceramic Precise frequency, fragile, should be near the MC Dr. Gheith Abandah21

Oscillator types Dr. Gheith Abandah22 (a) Resistor–capacitor (RC). (b) Crystal or ceramic

The 16F84A clock oscillator Types: 1)XT – crystal: 1-4 MHz 2)HS – high speed: >= 4 MHz, with ceramic resonators. 3)LP – low power: <= 200 KHz, e.g., kHz (i.e ), 4)RC – resistor-capacitor Dr. Gheith Abandah23

(a) Crystal or ceramic, HS, XT or LP. (b) Resistor– capacitor. (c) Externally supplied clock Dr. Gheith Abandah24

Data Sheet Information Dr. Gheith Abandah25

Power Supply Dr. Gheith Abandah nF decoupling capacitor RC Oscillator

Dr. Gheith Abandah27 16F84A operating conditions

Summary – 1 The parallel port allows ready exchange of digital data between the outside world and the controller CPU. It is important to understand the electrical characteristics of the parallel port and how they interact with external elements. While there is considerable diversity in the logic design of ports, they tend to follow similar patterns. The internal circuitry is worth understanding, as it leads to effective use of ports. The 16F84A has diverse and flexible parallel ports. Dr. Gheith Abandah28

Summary – 2 A microcontroller needs a clock signal in order to operate. The characteristics of the clock oscillator determine speed of operation and timing stability, and strongly influence power consumption. Active elements of the oscillator are usually built in to a microcontroller, but the designer must select the oscillator type, and its frequency and configuration. A microcontroller needs a power supply in order to operate. The requirements need to be understood and must be met by a supply of the appropriate type. Dr. Gheith Abandah29