DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK Lesson-1: IO port types- Serial and parallel IO ports



Similar documents
Computer and Set of Robots

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

Parallel Port Interfacing with Switches, Keypad and Rotatory encoder

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Raspberry Pi. Hans- Petter Halvorsen, M.Sc.

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

Using the HT46R46 I/O Ports to Implement Half-Duplex SPI Communication

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring ) Serial Interfacing. By Dr.

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

8051 Serial Port. Crystal TXD. I/O Device RXD. Embedded Systems Peripherals

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

Serial Communications

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

Computer Systems Structure Input/Output

Why you need to monitor serial communication?

Bluetooth Audio Data Transfer between Bluetooth chipset (PMB6752&PMB6625) and TriCore Host TC1920

Android Controlled Based Interface

Microtronics technologies Mobile:

Chapter 11: Input/Output Organisation. Lesson 06: Programmed IO

MicroMag3 3-Axis Magnetic Sensor Module

a8251 Features General Description Programmable Communications Interface

Lab Experiment 1: The LPC 2148 Education Board

Serial Communications

8051 MICROCONTROLLER COURSE

ALL-USB-RS422/485. User Manual. USB to Serial Converter RS422/485. ALLNET GmbH Computersysteme Alle Rechte vorbehalten

Tutorial for MPLAB Starter Kit for PIC18F

Smartphone Quick-Jack Solution FASTER TO PRODUCT FASTER TO MARKET

ET-BASE AVR ATmega64/128

Quick Installation. A Series of Intelligent Bar Code Reader with NeuroFuzzy Decoding. Quick Installation

Lesson 6: 6 EXAMPLES OF EMBEDDED SYSTEMS. Chapter-1L06: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

Chapter 13. PIC Family Microcontroller

DESIGN OF 6 DOF ROBOTIC ARM CONTROLLED OVER THE INTERNET

RS-422/485 Multiport Serial PCI Card. RS-422/485 Multiport Serial PCI Card Installation Guide

Part 1. MAX BIT DAC with an Arduino Board. MIDI to Voltage Converter Part1

PRT3 Printer Module: ASCII Protocol Programming Instructions

The Programming Interface

Industrial Multi-port Serial Cards

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

DECT Module UM-9802 Datasheet

Data Cables. Schmitt TTL LABORATORY ELECTRONICS II

Microcontrollers in Practice

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

Measurement and Analysis Introduction of ISO7816 (Smart Card)

Benefits of a Colter OEM design / Embeded PLC

PART B QUESTIONS AND ANSWERS UNIT I

TEST CHAPTERS 1 & 2 OPERATING SYSTEMS

Display Message on Notice Board using GSM

Pen Drive to Pen Drive and Mobile Data Transfer Using ARM

DS1104 R&D Controller Board

STEPPER MOTOR SPEED AND POSITION CONTROL

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Guangzhou HC Information Technology Co., Ltd. Product Data Sheet

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

Location-Aware and Safer Cards: Enhancing RFID Security and Privacy

Communicating with devices

Real-Time Vehicle Data Logging System Using GPS And GSM

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global

1-Port R422/485 Serial PCIe Card

DEVICE DRIVERS AND TERRUPTS SERVICE MECHANISM Lesson-14: Device types, Physical and Virtual device functions

Portable adapter for barcode scanners

ESPA Nov 1984 PROPOSAL FOR SERIAL DATA INTERFACE FOR PAGING EQUIPMENT CONTENTS 1. INTRODUCTION 2. CHARACTER DESCRIPTION

USER GUIDE EDBG. Description

AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction

Universal EXTension connector (UEXT)

SPI I2C LIN Ethernet. u Today: Wired embedded networks. u Next lecture: CAN bus u Then: wireless embedded network

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

DATA COMMUNICATION (Basics of data communication, OSI layers.)

Montgomery College Course Designator/Course Number: CS 110 Course Title: Computer Literacy

DESIGN AND IMPLEMENTATION OF LOW COST HOME SECURITY SYSTEM USING PIC MICROCONTROLLER ANDGSM NETWORK

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ

Modbus and ION Technology

Using Xbee in Serial Communication

Data Transfer between Two USB Devices without using PC

WinPFT File Transfer Utility (Catalog No ND7)

RPLIDAR. Low Cost 360 degree 2D Laser Scanner (LIDAR) System Development Kit User Manual Rev.1

Pmod peripheral modules are powered by the host via the interface s power and ground pins.

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

The Clavinova-Computer Connection

Motor Control using NXP s LPC2900

Technical Product Specifications Dell Dimension 2400 Created by: Scott Puckett

Lesson 10:DESIGN PROCESS EXAMPLES Automatic Chocolate vending machine, smart card and digital camera

Smarthome SELECT Bluetooth Wireless Stereo Audio Receiver and Amplifier INTRODUCTION

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

SBC6245 Single Board Computer

Software User Guide UG-461

ACR880 GPRS Portable Smart Card Terminal

Vinco Development Module. Datasheet

Software engineering for real-time systems

A 5 Degree Feedback Control Robotic Arm (Haptic Arm)

Atmel Norway XMEGA Introduction

Transcription:

DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK Lesson-1: IO port types- Serial and parallel IO ports 1

1. IO Port 2

A port is a device Port to receive the bytes from external peripheral(s) [or device(s) or processor(s) or controllers] for reading them later using instructions executed on the processor or to send the bytes to external peripheral or device or processor using instructions executed on processor 3

Port A Port connects to the processor using address decoder and system buses The processor uses the addresses of the port-registers for programming the port functions or modes, reading port status and for writing or reading bytes. 4

Example SI serial interface in 8051 SPI serial peripheral interface in 68HC11 PPI parallel peripheral interface 8255 Ports P0, P1, P2 and P3 in 8051 or PA, PB, PC and PD in 68HC11 COM1 and COM2 ports in an IBM PC 5

2. IO Port Types 6

Types of Serial ports Synchronous Serial Input Synchronous Serial Output Asynchronous Serial UART input Asynchronous Serial UART output Both as input and as output, for example, modem. 7

Types of parallel ports Parallel port one bit Input Parallel one bit output Parallel Port multi-bit Input Parallel Port multi-bit Output 8

Synchronous Serial Input Example Inter-processor data transfer, reading from CD or hard disk, audio input, video input, dial tone, network input, transceiver input, scanner input, remote controller input, serial I/O bus input, writing to flash memory using SDIO (Secure Data Association IO based card) 9

Synchronous Serial Input Device (Serial Bits and a clock signal used for synchronisation of a port input) 10

Synchronous Serial Input The sender along with the serial bits also sends the clock pulses SCLK (serial clock) to the receiver port pin. The port synchronizes the serial datainput bits with clock bits. Each bit in each byte as well as each byte in synchronization Synchronization means separation by a constant interval or phase difference. If clock period = T, then each byte at the port is received at input in period = 8T. The bytes are received at constant rates. Each byte at input port separates by 8T and data transfer rate for the serial line bits is (1/T) bps. [1bps = 1 bit per s] 11

Serial data and clock pulse-inputs On same input line when clock pulses either encode or modulate serial data input bits suitably. Receiver detects the clock pulses and receives data bits after decoding or demodulating. On separate input line When a separate SCLK input is sent, the receiver detects at the middle or + ve edge or ve edge of the clock pulses that whether the data-input is 1 or 0 and saves the bits in an 8-bit shift register. The processing element at the port (peripheral) saves the byte at a port register from where the microprocessor reads the byte. 12

Master output slave input (MOSI) and Master input slave output (MISO) MOSI when the SCLK is sent from the sender to the receiver and slave is forced to synchronize sent inputs from the master as per the inputs from master clock. MISO when the SCLK is sent to the sender (slave) from the receiver (master) and slave is forced to synchronize for sending the inputs to master as per the master clock outputs. Synchronous serial input is used for interprocessor transfers, audio inputs and streaming data inputs. 13

Synchronous Serial Output Device (Device Serial Bits and synchronisation clock signal at a port output) 14

Example Synchronous Serial Output Inter-processor data transfer, multiprocessor communication, writing to CD or hard disk, audio Input/output, video Input/output, dialer output, network device output, remote TV Control, transceiver output, and serial I/O bus output or writing to flash memory using SDIO 15

Synchronous Serial Output Synchronous Serial Output Each bit in each byte sent in synchronization with a clock. Bytes sent at constant rates. If clock period = T, then data transfer rate is (1/T) bps. Sender either sends the clock pulses at SCLK pin or sends the serial data output and clock pulse-input through same output line with clock pulses either suitably modulate or encode the serial output bits. 16

Synchronous serial output using shift register The processing element at the port (peripheral) sends the byte through a shift register at the port to where the microprocessor writes the byte. Synchronous serial output is used for interprocessor transfers, audio outputs and streaming data outputs. 17

Synchronous Serial Input/Output 18

Synchronous Serial Input/Output Each bit in each byte is in synchronization at input and each bit in each byte is in synchronization at output with the master clock output. The bytes are sent or received at constant rates. The I/Os can also be on same I/O line when input/output clock pulses either suitably modulate or encode the serial input/output, respectively. If clock period = T, then data transfer rate is (1/T) bps. The processing element at the port (peripheral) sends and receives the byte at a port register to or from where the microprocessor writes or reads the byte 19

Asynchronous Serial input RxD at UART COM Port 20

Asynchronous Serial port line RxD (receive data). Does not receive the clock pulses or clock information along with the bits. Each bit is received in each byte at fixed intervals but each received byte is not in synchronization. Bytes separate by the variable intervals or phase differences Asynchronous serial input also called UART input if serial input is according to UART protocol 21

Example Serial Asynchronous Input Asynchronous serial input is used for keypad inputs and modem inputs in computers Keypad controller serial data-in, mice, keyboard controller, modem input, character send inputs on serial line [also called UART (universal receiver and transmitter) input when according to UART mode] 22

Format of bits at UART protocol 23

UART protocol serial line format Starting point of receiving the bits for each byte is indicated by a line transition from 1 to 0 for a period = T. [T 1 called baud rate.] If sender s shift-clock period = T, then a byte at the port is received at input in period = 10.T or 11.T due to use of additional bits at start and end of each byte. 24

UART protocol serial line format Receiver detects n bits at the intervals of T from the middle of the start indicating bit. The n = 0, 1,, 10 or 11 and finds whether the data-input is 1 or 0 and saves the bits in an 8-bit shift register. Processing element at the port (peripheral) saves the byte at a port register from where the microprocessor reads the byte. 25

Asynchronous Serial Output Asynchronous output serial port line TxD (transmit data). Each bit in each byte transmit at fixed intervals but each output byte is not in synchronization (separates by a variable interval or phase difference). Minimum separation is 1 stop bit interval 26

TxD Does not send the clock pulses along with the bits. Sender transmits the bytes at the minimum intervals of n.t. Bits receiving starts from the middle of the start indicating bit, n = 0, 1,, 10 or 11 and sender sends the bits through a 10 or 11 -bit shift register. 27

TxD The processing element at the port (peripheral) sends the byte at a port register to where the microprocessor is to write the byte. Synchronous serial output is also called UART output if serial output is according to UART protocol 28

Example Serial Asynchronous Output Output from modem, output for printer, the output on a serial line [also called UART output when according to UART] 29

Half Duplex Half duplex means as follows: at an instant communication can only be one way (input or output) on a bi-directional line. An example of half-duplex mode telephone communication. On one telephone line, the talk can only in the halfduplex way mode. 30

Full Duplex Full duplex means that at an instant, the communication can be both ways. An example of the full duplex asynchronous mode of communication is the communication between the modem and the computer though TxD and RxD lines or communication using SI in modes 1, 2 and 3 in 8051 31

Parallel Port single bit input Completion of a revolution of a wheel, Achieving preset pressure in a boiler, Exceeding the upper limit of permitted weight over the pan of an electronic balance, Presence of a magnetic piece in the vicinity of or within reach of a robot arm to its end point and Filling of a liquid up to a fixed level. 32

Parallel Port Output- single bit PWM output for a DAC, which controls liquid level, or temperature, or pressure, or speed or angular position of a rotating shaft or a linear displacement of an object or a d.c. motor control Pulses to an external circuit Control signal to an external circuit 33

Parallel Port Input- multi-bit ADC input from liquid level measuring sensor or temperature sensor or pressure sensor or speed sensor or d.c. motor rpm sensor Encoder inputs for bits for angular position of a rotating shaft or a linear displacement of an object 34

Parallel Port Output- multi-bit LCD controller for Multilane LCD display matrix unit in a cellular phone to display on the screen the phone number, time, messages, character outputs or pictogram bit-images for display screen or e-mail or web page Print controller output Stepper-motor coil driving bits 35

Parallel Port Input-Output PPI 8255 Touch screen in mobile phone 36

Summary 37

We learnt Port definition Port examples Ports in embedded system connects to external processors, controllers or devices like keypad, multi-line display unit, printer or modem A serial or parallel I/O port connects and accessed from and to the system-processor through the system buses and address decoder. 38

We learnt Synchronous serial inputs and outputs Synchronization Clock, MOSI, MISO Clock on separate line or encoded or clock signal modulated or encoded with I/O bits. 39

We learnt Asynchronous serial inputs and outputs RxD and TxD and UART protocol format asynchronous IOs full duplex or half-duplex Examples of serial and parallel IOs Examples of single bit and multi-bit IOs at parallel ports 40

End of Lesson 1 of Chapter 3 41