Parallel Ports, Power Supply and the Clock Oscillator Material to be covered  Parallel I/O ports  Interfacing external switches and LEDs  Clock Oscillator.

Slides:



Advertisements
Similar presentations
Introduction to PIC Microcontrollers
Advertisements

م/محمد علي عطية حسين. Pin Diagram DescriptionPin Name Oscillator crystal input/external clock source input. OSC1/CLKIN Oscillator crystal output.OSC2/CLKOUT.
Week10 Boolean Instructions on the Boolean Instructions  Boolean (or Bit) addressable capability is unique to the 8051  Enables efficient handling.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Chapter 2 HARDWARE SUMMARY
Embedded System Spring, 2011 Lecture 9: I/O Programming Eng. Wazen M. Shbair.
CHAPTER 4 I/O PORT PROGRAMMING. I/O Port Pins The four 8-bit I/O ports P0, P1, P2 and P3 each uses 8 pins All the ports upon RESET are configured as input,
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Prof. Jorge A. Ramón Introducción a Microcontroladores.
Microprocessor Systems Design I Instructor: Dr. Michael Geiger Fall 2013 Lecture 26: PIC microcontroller intro.
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 30: PIC data memory.
Parallel ports, power supply, and the clock oscillator Chapter Three Dr. Gheith Abandah1.
Railway Foundation Electronic, Electrical and Processor Engineering.
The 8051 Microcontroller Architecture
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Lecture – 6 PIC18 Family Hardware Specifications 1.
Department of Electronic & Electrical Engineering Embedded system Aims: Introduction to: Hardware. Software Ideas for projects ? Robotics/Control/Sensors.
System Clocks.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
I/O PORTS (Simplest Peripherals) PORT A: 6 bits wide (7th and 8th bit always read as 0) PORT B: 8 bits wide PORT C: 8 bits wide PORT D: 8 bits wide.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Teachers Name : Suman Sarker Telecommunication Technology Subject Name : Microcontroller & Embedded System Subject Code : 6871 Semester : 7th Department.
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,
10/24/2015 Amrita Vishwa Vidyapeetham 1 Key Board & LED Interfacing.
CHAPTER HARDWARE CONNECTION. Pin Description 8051 family members ◦ e.g., 8751, 89C51, 89C52, DS89C4x0) ◦ Have 40 pins dedicated for various functions.
1 General Purpose and Alternate Function I/O (GPIO and AFIO)
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.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
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:
Architecture and instruction set. Microcontroller Core Features:  Operating speed: DC - 20 MHz clock input DC ns instruction cycle Up to 8K x.
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
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.
DsPIC30F4011 Fall DIP Switches  The upper four switches of SW1 are used to enable LEDs connected to PORTB/C, PORTA/D, PORTE and PORTF. For example,
I NTRODUCTION TO PIC PROGRAMMING By : S HERIF H ARHASH.
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
Presented by Sadhish Prabhu
Department of Electronic & Electrical Engineering Template program. Input / Output (IO) ● Template program. ● Introduction to IO ● Setting up for IO ●
Features of the PIC18 microcontroller - 8-bit CPU - 2 MB program memory space (internal 32KB to 128KB) bytes to 1KB of data EEPROM - Up to 4096 bytes.
Department of Electronic & Electrical Engineering Lecture 2 ● Introduction to IO ● Using a subroutine ● Driving a 7seg display.
Chapter 12 Some PIC Microcontroller Advances The aims of this chapter are to introduce: To introduce in overview two microcontrollers which show some enhanced.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
بسم الله الرحمن الرحيم MEMORY AND I/O.
PIC16F887.
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.
PIC12F629/675. “Wide variety” 8-84 pin RISC core, 12/14/16bit program word USART/AUSART, I 2 C, ADC, ICSP, ICD OTP/UV EPROM/FLASH/ROM Families: PIC12,
Department of Electronic & Electrical Engineering Lecture 3. ● Template program. ● Introduction to IO ● PORTA PORTB TRISA TRISB ● Using a subroutine ●
Components of a typical full-featured microcontroller.
Programming PIC 16F84A in Assembly. PIC16F84 pin-out and required external components.
I/O PORTS. General purpose I/O pins can be considered the simplest of peripherals. They allow the PICmicro™ to monitor and control other devices. To add.
Special Features. Device Configuration bits Revision Device Configuration bits Revision On-chip Power-on Reset (POR) Revision On-chip Power-on Reset (POR)
TIMERS.
16F877A.
Chapter 9 PIC18 Timer Programming in Assembly
The 8051 Microcontroller architecture
For further information
Chapter 10 PIC18 Serial Port Programming in Assembly
UNIT – Microcontroller.
Microprocessor Systems Design I
The 8255 Programmable Peripheral Interface
EE Embedded Systems Fall 2015
Introduction to Microprocessors and Microcontrollers
PIC18 Timer Programming “Explain the assembly language programming for the timer and counter module”
INSTRUCTION SET.
8051 Micro Controller.
Presentation transcript:

Parallel Ports, Power Supply and the Clock Oscillator Material to be covered  Parallel I/O ports  Interfacing external switches and LEDs  Clock Oscillator circuits  Power supply requirements

Parallel Ports (1) Uses Direct user interface (switches, LEDs etc) Direct user interface (switches, LEDs etc) Input measurement information (from sensors) Input measurement information (from sensors) Output control information (control a pump or a motor etc) Output control information (control a pump or a motor etc) Bulk data transfer (to move data to and from the µc) Bulk data transfer (to move data to and from the µc) 2

Parallel I/O (2) Output Structure 3

Parallel I/O (2) Input Structure 4

Parallel I/O (2) Combined I/O Structure 5

Modeling Output Lines 6

Special Cases: Schmitt trigger inputs 7

Special Cases: Open Drain Output 8

Connecting to Parallel Ports Switches (1) 9

Connecting to Parallel Ports Switches (2) 10

Connecting to Parallel Ports: LEDS Characteristics 11

Connecting to Parallel Ports: Driving LEDS 12

Parallel I/O ports (3) Main Features Simple memory mapped access Simple memory mapped access Can be configured through software as either input or output Can be configured through software as either input or output Ability to set or reset individual bits Ability to set or reset individual bits Can have internal pull-ups Can have internal pull-ups Can drive small loads like LEDs Can drive small loads like LEDs Can be multifunction Can be multifunction Different capability for pins (i.e. larger current) Different capability for pins (i.e. larger current) 13

Parallel I/O ports (4) General I/O pins are the simplest of peripherals used to monitor and control other devices. General I/O pins are the simplest of peripherals used to monitor and control other devices. For most ports, the I/O pin’s direction (input or output) is controlled by the data direction register TRISx (x=A,B,C,D,E): a ‘1’ in the TRIS bit corresponds to that pin being an input, while a ‘0’ corresponds to that pin being an output For most ports, the I/O pin’s direction (input or output) is controlled by the data direction register TRISx (x=A,B,C,D,E): a ‘1’ in the TRIS bit corresponds to that pin being an input, while a ‘0’ corresponds to that pin being an output The PORTx register is the latch for the data to be output. Reading PORTx register read the status of the pins, whereas writing to it will write to the port latch. The PORTx register is the latch for the data to be output. Reading PORTx register read the status of the pins, whereas writing to it will write to the port latch. Example: Initializing PORTB (PORTB is an 8-bit port. Each pin is individually configurable as an input or output). Example: Initializing PORTB (PORTB is an 8-bit port. Each pin is individually configurable as an input or output). bcf STATUS, RP0 ; select bank0 bcf STATUS, RP0 ; select bank0 bcf STATUS, RP1 bcf STATUS, RP1 clrf PORTB ; clear PORTB output data latches clrf PORTB ; clear PORTB output data latches bsf STATUS, RP0 ; select bank1 bsf STATUS, RP0 ; select bank1 movlw 0xCF ; value used to initialize data direction movlw 0xCF ; value used to initialize data direction movwf TRISB ; PORTB =inputs, PORTB =outputs, movwf TRISB ; PORTB =inputs, PORTB =outputs, ; PORTB =inputs ; PORTB =inputs 14

Relationship between TRIS and PORT Registers 15

16F84 PORTB Circuit 16

16F84 Output Electrical Characteristics (1) 17

16F84 Output Electrical Characteristics (2) 18

The Clock Oscillator: Major Types 19

Oscillator Configurations The PIC16F84A can be operated in four different oscillator modes. The user can program two configuration bits (FOSC1 and FOSC0) to select one of these four modes: LP Low Power Crystal XT Crystal/Resonator HS High Speed Crystal/Resonator RC Resistor/Capacitor 20

The Clock Oscillator: Major Modes 21

Power Supply Requirements 22

23

Reset Concepts There are five kinds of Reset for the microcontroller: There are five kinds of Reset for the microcontroller: Power-on Reset (POR) MCLR during normal operation MCLR during SLEEP WDT Reset (during normal operation) WDT Wake-up (during SLEEP) 24

Power-Up Timer & Oscillator Startup Timer Power-up Timer (PWRT) provides a fixed 72 ms nominal time-out (TPWRT) from POR. The Oscillator Start-up Timer (OST) provides a 1024 oscillator cycle delay (from OSC1 input) after the PWRT delay ends 25