Parallel Port Interfacing with Switches, Keypad and Rotatory encoder



Similar documents
Chapter 8. Digital and Analog Interfacing Methods

Chapter 8. Digital and Analog Interfacing Methods

Chapter 8. Digital and Analog Interfacing Methods

2011, The McGraw-Hill Companies, Inc. Chapter 3

Embedded Software development Process and Tools: Lesson-4 Linking and Locating Software

Optical Encoders. K. Craig 1. Actuators & Sensors in Mechatronics. Optical Encoders

Digital codes. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

2/26/2008. Sensors For Robotics. What is sensing? Why do robots need sensors? What is the angle of my arm? internal information

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

ABB Drives. User s Manual. Pulse Encoder Interface Module RTAC-01

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

The quadrature signals and the index pulse are accessed through five inch square pins located on 0.1 inch centers.

Microprocessor & Assembly Language

Three Channel Optical Incremental Encoder Modules Technical Data

Troubleshooting and Diagnostics

DC Motor with Shaft Encoder

Invisible EYE for Security System

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

Ocean Controls RC Servo Motor Controller

PART B QUESTIONS AND ANSWERS UNIT I

Wireless Security Camera

Agilent AEDB-9140 Series Three Channel Optical Incremental Encoder Modules with Codewheel, 100 CPR to 500 CPR Data Sheet

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

ProCod. User Manual. Programming software for TWK - Encoders Series CRF and DAF CRF DE 08 / 10

STEPPER MOTOR SPEED AND POSITION CONTROL

1 de 13. Kit de 37 sensores compatibles con Arduino

MULTIPLE CHOICE FREE RESPONSE QUESTIONS

Tool Turrets and Tool Discs

ezsystem elab16m Project 1F: Alarm System (Full Project description)

Serial Communications

STIM202 Evaluation Kit

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

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

COMBINATIONAL CIRCUITS

Scripting Language Reference. SimpleBGC 32bit

Construction and Application of a Computer Based Interface Card

Interfacing To Alphanumeric Displays

Access Control Using Smartcard And Passcode

DALLAS DS1233 Econo Reset. BOTTOM VIEW TO-92 PACKAGE See Mech. Drawings Section on Website

IR Communication a learn.sparkfun.com tutorial

Quick installation guide for the Vista Quantum QNVR Network Video Recorder

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

Wireless AUTODIAL GSM SMS Home Alarm Security System 900/ 1800/ 1900Mhz(CK-GSM-9003)

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

Memory Systems. Static Random Access Memory (SRAM) Cell

8051 MICROCONTROLLER COURSE

ACTIVE INFRARED MOTION DETECTOR FOR HOUSE SECURITY SYSTEM MIOR MOHAMMAD HAFIIZH BIN ABD. RANI UNIVERSITI MALAYSIA PAHANG

Leaf River Outdoor Products Vibrashine, Inc. P.O. Box 557 Taylorsville, MS (601) FAX (601)

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically

Automation System TROVIS 6400 TROVIS 6493 Compact Controller

CM HOST CM CardTransporter Fuel Communication and Management Software Software version up to 3.1

Your Simple Guide to Battery. Replacement. Customer Care:

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

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

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

Mobile Operating Systems Lesson 05 Windows CE Part 1

MICROPROCESSOR AND MICROCOMPUTER BASICS

Pop-up Surveillance Camera On Your TV

CPS104 Computer Organization and Programming Lecture 18: Input-Output. Robert Wagner

NC-12 Modbus Application

Small Optical Encoder Modules 480lpi Digital Output. Features. Applications VCC 3 CHANNEL A 2 CHANNEL B 4 GND 1

MICROCONTROLLER BASED SMART HOME WITH SECURITY USING GSM TECHNOLOGY

3-Digit Counter and Display

Appendix C: Keyboard Scan Codes

System Interconnect Architectures. Goals and Analysis. Network Properties and Routing. Terminology - 2. Terminology - 1

Bar Code Label Detection. Size and Edge Detection APPLICATIONS

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

Vroom Hardware manual ver Code 114VROOHWE00. Vroom CANBUS USER INTERFACE WITH LCD GRAPHIC DISPLAY AND WITH TEMPERATURE AND HUMIDITY SENSOR

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

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

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

Six-servo Robot Arm. DAGU Hi-Tech Electronic Co., LTD Six-servo Robot Arm

Chapter 4 System Unit Components. Discovering Computers Your Interactive Guide to the Digital World

Big Picture. IC220 Set #11: Storage and I/O I/O. Outline. Important but neglected

How To Control Gimbal

CHAPTER 11: Flip Flops

- 35mA Standby, mA Speaking pre-defined phrases with up to 1925 total characters.

A Novel Solution for Remote Monitoring of Electrical and Electronic Gadgets

DIGICLIENT 8.0 Remote Agent Software

FIBER OPTIC APPLICATION IN A PROFIBUS NETWORK

EvB 5.1 v5 User s Guide

Computer Organization. and Instruction Execution. August 22

Microcontroller Display Interfacing Techniques

Conversion Between Analog and Digital Signals

Lesson-16: Real time clock DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK

Small 7-key User-definable Remote Control User s Guide

Using Arduino Microcontrollers to Sense DC Motor Speed and Position

MicroScribe: Connection problems between the MicroScribe and your PC

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

PCI/PC Bus Operation ACR8020. ACR8020 Exclusives. ACR8020 (1- to 8-Axes) Ordering. 11 Parker Hannifin Corporation. Catalog 8180/USA Motion Controllers

REDWALL-V adjustment procedures guide

SIMERO Software System Design and Implementation

Discovering Computers Living in a Digital World

Digital I/O: OUTPUT: Basic, Count, Count+, Smart+

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

The Central Processing Unit:

Software Manual RS232 Laser Merge Module. Document # SU Rev A

Combinational circuits

Transcription:

DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK Lesson-7: Parallel Port Interfacing with Switches, Keypad and Rotatory encoder 1

Port Interfacing Parallel port outputs O0 to O7 May be used as poll-lines A line sends a logic state for sensing a present state of a key May be to switch on-off the LEDs May be to switch on the LEDs near the slots with photo-transistors at other end 2

Port Interfacing Parallel port inputs I0 to I7 May be from a keypad controller for ASCII code of the pressed key From interface circuit of sense-lines for sensing key-state From phototransistors 3

1. Parallel Port Interfacing with Switches (at camera or automatic chocolate vending machine) or menu select keys 4

Parallel port A with four-bit input from Data bus Processor Data bus INT INT Ports PA4- PA7 four switches Switches input debouncer at device for Port A bits Sense lines 0-3 Four switches Logic low Poll input A line senses logic high to low transition if switch pressed else high 5

2. Parallel Port Interfacing with Keypad 6

Keypad Physical lay out can be 3 5 plus 1 or 16 in a one row 16 keys assumed to be divided in four columns and four rows for circuit design One column connects to one poll line One key in a row connects to one sense line 7

16-keys keypad and Four Menu keys Mobile smart phone has 16 keys and four menu select up, down, left, right keys A processing element a keypad controlling-device (controller) 8

A set of switches or keypad of 16 keys and four menu-select keys Assume that idle state logic state = 1. Four bits of an 8 bit input port A (A4-A7) for four menu select keys. 16 keys arranged in four rows and four columns. Other four bits of A (A0-A3) input from four common ends of four rows. Four bits of output port C (C0-C3) output to four common ends of four columns. 9

Switches input debouncer at keypad for Port A bits and four output bits bits from port C for polling Data bus INT Keypad Sense lines 0-3 A sense line Senses logic high to low transition if switch pressed else high at polling instance t 1 Four switches in a row Pole line at 0 for polling a column of row at instant t 1 10

Parallel input port A and four-bit output port C used for interfacing a set of 16 keys in keypad and four menu select keys Data bus Processor Data bus INT INT Keypad input processor at device PA4- PA7 Ports PA0- PA3 PC0- PC3 Sense lines 0-3 Poll lines 0-3 Menu-select lines (up, down, left, right keys) 16 Keys 0, 1,.., 14, 15 in 4 4 lines (Polling and sense lines) 11

A processing element keypad controller, as it is keypad specific. 12

Processing element in the device Activates for polling output from port C ten times each second Sends C0-C3 = 0000 and after a wait it reads D0-D7 and A4-A7 Processes the bounces when a key is pressed. This takes care of bouncing effects. 13

Processing element in the device Processing element computes the code of the pressed key and generates a status signal when a key is found pressed. From the bit pattern found at A0-A3, the processing element computes the 7-bit ASCII code of the pressed key at that instance and send output for the code through D0-D6. It also outputs D7 = 1 if a key is found pressed else D7 = 0. 14

3. Parallel Port Interfacing with encoder 15

Encoder A device, which measures the angular or linear position of a rotating or moving shaft Application in robots and industrial plants 16

Rotatory angle encoder Multiple tracks on a rotating disk. Each track has half of the segments transparent and half opaque. 17

Rotatory Encoder A has multi-slotted plate. A set of n infrared (IR) LED and phototransistor pairs generate n-bit input for a port. The encoder s each phototransistor interfaces to one parallel port bit 18

Rotatory Encoder interfacing Seven inputs Five track Rotatory encoder, one input is from PT at index slot, one input from phase detector circuit Six outputs to six LEDs 19

Five tracks and one index slot One index slot is required to know the beginning of a revolution i.e. the position when shaft angle = 0 Five tracks are required to find the present angular position of a shaft with resolution of 360 /2 5 Phase angle detection between adjacent tracks gives the direction of motion 20

Interfacing of Six LED-Phototransistor Pairs and one phase detector circuit Five track Rotatory encoder has six LED-phototransistor (PT) pairs Five inputs are PTs from tracks and one input is from PT at index slot One input is from phase detector circuit, which finds phase angle between input from two PTs 21

Parallel input port A connected to an encoder circuit which sends the rotated or linear position of a moving shaft Processor Data bus Port interface at device PA0 - PA4 PA5 5 tracks 0, 1, 2, 3, 4 input from 5 phototransistors Adjacent track Phase angle detector PB0- To 6 PB5 LEDs Index slot INT detector PA6 at 360 Ports PA6 input from index slot phototransistor in the rotating plate 22

Summary 23

We learnt Parallel port input from switches A poll line at logic 0 connects one end of a switch and other end of a switch, which is at 1 in released state, senses 0 when pressed. Four sense lines from four switches to four port pins Port bit sensed = 0 when switch pressed and = 1 when released 24

We learnt Each switch or key de-bouncing circuit Parallel port input from 16-key keypad Keys assumed to be divided in four columns and four rows Four poll lines at logic 0 outputs (from four port pins) connect four columns of switches Four sense lines from four switches in a row to four port pins 25

We learnt Parallel port input from four menu keys Rotatory Encoder Rotatory Encoder seven inputs Five track Rotatory encoder, one input is from PT at index slot, one input from phase detector circuit Rotatory Encoder Six outputs to six LEDs 26

End of Lesson 7 of Chapter 3 27