Serial I/O. 4: Serial I/O. CET360 Microprocessor Engineering. J. Sumey

Size: px
Start display at page:

Download "Serial I/O. 4: Serial I/O. CET360 Microprocessor Engineering. J. Sumey"

Transcription

1 4: Serial I/O CET360 Microprocessor Engineering J. Sumey Introduction serial, i.e. bit-at-a-time, interfacing techniques are useful when parallel interfacing limitations become problematic distance limitations due to crosstalk cabling costs was popularized in the 1960s by teletypes and modem technologies standardized as RS-232C in 1969 by the EIA used by many I/O peripherals mice, printers, digital cameras, PDAs, GPS receivers, POS terminals (cash drawers & scanners) predecessor to USB 2 CET360 Microprocessor Engineering 1

2 Serial Interface Components at a minimum, a serial interface requires: 1. transmit / receive registers holds parallel data before/after serialization 2. PISO/SIPO shift registers handles serialization/deserialization 3. clock circuitry (Baud rate generator) timing signals used by shift registers referred to as UARTs or SCI Universal Asynchronous Receiver/Transmitter Serial Communication Interface (Motorola) also: COM ports on PCs 3 Example: Coldfire/S12 SCI 4 CET360 Microprocessor Engineering 2

3 Serial Data Transmission Issues a pair of devices communicating over a serial link must agree on a number of parameters 1. communication type 2. data coding 3. transmission (Baud) rate 4. clocking method 5. error handling 6. handshaking 5 1 Communication Type refers to how the 2 devices communicate with each other a. simplex fixed, 1-way over a single channel b. half-duplex 2-way over a single, shared (unidirectional but reversible) channel c. full-duplex 2-way over a pair of unidirectional channels 6 CET360 Microprocessor Engineering 3

4 2 Data Coding choice of binary code used to represent alphanumeric data ASCII American Standard Code for Information Interchange EBCDIC Extended Binary Coded Decimal Interchange Code (IBM) proprietary ex: credit card scanner also may refer to the logic levels used 1=mark, 0=space 7 Hex NUL DLE P ` p 1 SOH DC1! 1 A Q a q 2 STX DC2 2 B R b r 3 ETX DC3 # 3 C S c s 4 EOT DC4 $ 4 D T d t 5 ENQ NAK % 5 E U e u 6 ACK SYN & 6 F V f v 7 BEL ETB 7 G W g w 8 BS CAN ( 8 H X h x 9 HT EM ) 9 I Y i y A LF SUB * : J Z j z B VT ESC + ; K [ k { C FF FS, < L \ l D CR GS - = M ] m } E SO RS. > N ^ n ~ F SI US /? O _ o DEL KEY NUL = Null SOH = Start Of Header STX = Start of Transmission ETX = End of Transmission EOT = End of Text ENQ = Enquiry ACK = Acknowledge BEL = Audible Bell BS = BackSpace HT = Horizontal Tab LF = Line Feed VT = Vertical Tab FF = Form Feed CR = Carriage Return SO = Shift Out SI = Shift In DLE = Data Link Escape DCx = Device Control x NAK = Negative Acknowledge SYN = Synchronization char. ETB = End Transmission Block CAN = Cancel EM = End of Medium SUB = Substitute ESC = Escape FS = Field Separator GS = Group Separator RS = Record Separator US = Unit Separator DEL = Delete CET360 Microprocessor Engineering 4

5 3 Baud Rate speed at which bits (per sec.) are sent over a serial data link may (asynchronous) or may not (synchronous) include overhead bits bit time 1 baud rate also: bit rate = number of data bits per sec. common baud rates: 110, 300, 1200, 2400, 4800, 9600, 19.2k, 38.4k 9 4 Clocking Method determines how receiver is synchronized to transmitter synchronous same clock source is either sent along with or encoded within a continuous data stream, ex: Ethernet LAN bit rate = baud rate asynchronous no common clock, Tx & Rx run from separate clocks data bits are framed with Start/Stop bits Start bit: a fixed 0 bit prefixing the data bits Stop bit: a fixed 1 bit suffixing the data bits bit rate < baud rate (because of overhead) 10 CET360 Microprocessor Engineering 5

6 Asynchronous Format line is held in inactive mark state (1) when no data to send data bits are sent/received LSB to MSB characters may be sent back-to-back but not a requirement! ex 2 chars using 8 data, 1 stop, no parity: challenge: show waveform for the message Hi 11 5 Error Handling deals with how errors are detected and/or corrected parity each sent character may have an odd or even parity bit added to it, directly before the stop bit based on the total number of 1s in the character (including parity bit) used for simple error detection, only 50% accurate checksum better method based on 1 s complement of binary sum 8-bit performance: 255/256 accuracy, also 16-bit, 32-bit cyclic redundancy check (CRC) more sophisticated error detection mechanism based on polynomial math, 99.99%+ accurate 12 CET360 Microprocessor Engineering 6

7 Checksum Calculation /* * checksum8: calculate & return 8-bit checksum of data array * p: pointer to beginning of data byte "array" * len: array length in bytes * returns: 8-bit 1's complement checksum of array */ byte checksum8(void *p, int len) { byte *q = p; // so p can point to anything byte sum = 0; // running sum for (; len>0; --len) // iterate over each byte in array sum += *q++; // add byte value to running sum return (byte)~sum; // return 1's comp of sum } Handshaking additional control interface signals RTS/CTS Request To Send/Clear To Send DTR/DSR Data Terminal Ready/Data Set Ready DCD Data Carrier Detect RI Ring Indicate used to control / throttle the transmitter may be optional depending on hardware and software implementation 14 CET360 Microprocessor Engineering 7

8 Serial Communication Standards a number of industry-wide serial standards are commonly used, some have been defined by the Electronic Industries Alliance (EIA) 20/60ma current loop T.T.L. RS-232C (1969) RS-423 EIA-423 RS-422 EIA-422 RS-485 EIA-485 USB SATA 15 Serial Standards 20/60ma current loop original standard used by teletypes I=1, no I=0 once popular in (noisy) industrial settings T.T.L. simple, logic-level based +5VDC=1, 0VDC=0 good for on-pcb device-to-device transfer, otherwise not useful for much distance due to noise vulnerability 16 CET360 Microprocessor Engineering 8

9 RS-232C Standard defines many characteristics of a serial interface 20 signal names & functions: TxD, RxD, RTS, CTS, etc. connectors & pinouts: DB-25, DE-9, RJ-45 cable specs upto 20kbps upto 50 voltage levels 1=mark=off= V, 0=space=on= V notice avoidance of ground level! 17 RS-232C Standard classifies devices as being either: Data Terminal Equipment (DTE) or Data Communication Equipment (DCE) defines which pins transmit, receive, etc. requires interface drivers to convert logic levels ex: Maxim s MAX CET360 Microprocessor Engineering 9

10 MAX232/MAX232A 5V Supply! Charge Pump Inverter Logic side EIA side 19 RS-232C Pinouts* Signal Name DB-25 DE-9 Transmitted Data TD 2 3 Received Data RD 3 2 Request To Send RTS 4 7 Clear To Send CTS 5 8 Data Set Ready DSR 6 6 Common Ground G 7 5 Carrier Detect DCD 8 1 Data Terminal Ready DTR 20 4 Ring Indicator RI 22 9 *with respect to DTE device 20 CET360 Microprocessor Engineering 10

11 EIA-423 Standard an improved version of RS-232 using highperformance drivers and receivers single-ended / unbalanced like RS-232 but with better performance provides up to 100 kbps and up to 4000' supports multi-drop connections up to 10 receivers on a single line 21 EIA-422 Standard similar to EIA-423 but with even better performance provides up to 10 Mbps and upto 4000' eliminates ground loop problems by transmitting bits as a voltage difference over a unidirectional wire pair has a very high common mode rejection ratio (CMRR) works better with long cable runs Note: Ethernet LANs work the same way! great for use as an RS-232 extender 22 CET360 Microprocessor Engineering 11

12 EIA-422 Example RS wire network using balanced differential drivers (generators) and receivers 23 EIA-485 Standard similar to EIA-422 but allows multiple receivers and drivers (up to 32 each) to share a single 2-wire differential pair in half-duplex fashion thus, is multi-point readily supports low-cost local networking ex: PLCs on factory floors, home/building automation provides up to 35 Mbps and up to 4000' 24 CET360 Microprocessor Engineering 12

13 EIA wire Network Example 25 Universal Serial Bus (USB) similar to EIA-422 (half-duplex, differential), but uses communication protocols to packetize data transfers used by current PCs to support connection of modern peripherals supports upto 127 devices, upto 16 4 different transfer speeds low speed (1.0) = 1.5Mbps full speed (1.1) = 12Mbps hi speed (2.0) = 480Mbps superspeed (3.0) = 4.8Gbps 26 CET360 Microprocessor Engineering 13

14 References Wikipedia Articles: RS-232 tutorial: electronics.com/info/telecommunications_networks/rs232/rs232- serial-interface-basics-tutorial.php B&B Electronics RS-422 & RS-485 App Note: Maxim MAX-232 IC: 27 CET360 Microprocessor Engineering 14

Universal Asynchronous Receiver Transmitter Communication

Universal Asynchronous Receiver Transmitter Communication Universal Asynchronous Receiver Transmitter Communication 13 October 2011 Synchronous Serial Standard SPI I 2 C Asynchronous Serial Standard UART Asynchronous Resynchronization Asynchronous Data Transmission

More information

1.1. INTRODUCTION 1.2. NUMBER SYSTEMS

1.1. INTRODUCTION 1.2. NUMBER SYSTEMS Chapter 1. 1.1. INTRODUCTION Digital computers have brought about the information age that we live in today. Computers are important tools because they can locate and process enormous amounts of information

More information

EXPERIMENT 8: Introduction to Universal Serial Asynchronous Receive Transmit (USART)

EXPERIMENT 8: Introduction to Universal Serial Asynchronous Receive Transmit (USART) EXPERIMENT 8: Introduction to Universal Serial Asynchronous Receive Transmit (USART) Objective: Introduction To understand and apply USART command for sending and receiving data Universal Serial Asynchronous

More information

EXPERIMENT 7: Introduction to Universal Serial Asynchronous Receive Transmit (USART)

EXPERIMENT 7: Introduction to Universal Serial Asynchronous Receive Transmit (USART) EXPERIMENT 7: Introduction to Universal Serial Asynchronous Receive Transmit (USART) Objective: To understand and apply USART command for sending and receiving data Introduction Universal Serial Asynchronous

More information

Data Representation and Binary Arithmetic. Lecture 2

Data Representation and Binary Arithmetic. Lecture 2 Data Representation and Binary Arithmetic Lecture 2 Computer Data Data is stored as binary; 0 s and 1 s Because two-state ( 0 & 1 ) logic elements can be manufactured easily Bit: binary digit (smallest

More information

Sender Receiver Sender

Sender Receiver Sender EEE 410 Microprocessors I Spring 04/05 Lecture Notes # 19 Outline of the Lecture Interfacing the Serial Port Basics of Serial Communication Asynchronous Data Communication and Data Framing RS232 and other

More information

Lecture 13 Serial Interfaces

Lecture 13 Serial Interfaces CPE 390: Microprocessor Systems Spring 2018 Lecture 13 Serial Interfaces Bryan Ackland Department of Electrical and Computer Engineering Stevens Institute of Technology Hoboken, NJ 07030 Adapted from HCS12/9S12

More information

A GUIDE TO RS-232 COMMUNICATION WITH FX PLCS

A GUIDE TO RS-232 COMMUNICATION WITH FX PLCS A GUIDE TO RS-232 COMMUNICATION WITH FX PLCS Page 1 of 35 A GUIDE TO RS-232 COMMUNICATION WITH FX PLCS This document has been written specifically for FX and FX0N users that are unfamiliar with RS-232

More information

DATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes. Error Detection Codes

DATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes. Error Detection Codes 1 DATA REPRESENTATION Data Types Complements Fixed Point Representations Floating Point Representations Other Binary Codes Error Detection Codes 2 Data Types DATA REPRESENTATION Information that a Computer

More information

Fundamentals of Programming (C)

Fundamentals of Programming (C) Borrowed from lecturer notes by Omid Jafarinezhad Fundamentals of Programming (C) Group 8 Lecturer: Vahid Khodabakhshi Lecture Number Systems Department of Computer Engineering Outline Numeral Systems

More information

RS-422 Code-Operated Switches

RS-422 Code-Operated Switches JUNE 2000 SW421A-R2 SW422A-R2 RS-422 Code-Operated Switches COS/4 TEXT TRANSPARENT GRAPHICS MODE RESET ST LO CUSTOMER SUPPORT INFORMATION Order toll-free in the U.S. 24 hours, 7 A.M. Monday to midnight

More information

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums plc numbers - 3. 3. NUMBERS AND DATA Topics: Number bases; binary, octal,, hexa Binary calculations; s compliments, addition, subtraction and Boolean operations Encoded values; BCD and ASCII Error detection;

More information

Mounting Dimensions / Viewing 2 Mounting Options 3. Wiring Configuration 4. Quick Set up Procedure 5. Changing Intensity 6.

Mounting Dimensions / Viewing 2 Mounting Options 3. Wiring Configuration 4. Quick Set up Procedure 5. Changing Intensity 6. Section Mounting Dimensions / Viewing 2 Mounting Options 3 Section 2 Wiring Configuration 4 Section 3 Quick Set up Procedure 5 Section 4 Changing Intensity 6 Section 5 Option Summary 7 Section 6 Option

More information

S-Series Sensor ASCII Protocol v8.1.0

S-Series Sensor ASCII Protocol v8.1.0 S-Series Sensor v8.1.0 Legend: ADR Node/Slave Address TIME STAT Status Byte ERR CTRL Control Byte SP # POS Position DATA TARG Target CHAR VEL Velocity OFF SN CODE PAR # Serial Number Security Code Parameter

More information

Serial Communication. Transmit. Receive To EECC250 - Shaaban. From Universal Asynchronous Receiver/Transmitter (UART) Parity Bit

Serial Communication. Transmit. Receive To EECC250 - Shaaban. From Universal Asynchronous Receiver/Transmitter (UART) Parity Bit Parity Bit ASCII Character From 68000 Transmit Transmitter Buffer (TB) Serial Communication Receive To 68000 ASCII Character Parity Bit To device Parity Bit ASCII Character Receiver Buffer (RB) Universal

More information

FD-011WU. 2D Barcode Reader User Guide V1.6CC

FD-011WU. 2D Barcode Reader User Guide V1.6CC FD-011WU 2D Barcode Reader User Guide V1.6CC Table of Contents 1 Getting Started... 1 1.1 Factory Defaults... 1 2 Communication Interfaces...2 2.1 TTL-232 Interface... 2 2.2 Baud Rate... 3 2.3 Data Bit

More information

Serial Interfaces Part 1. ECE 153B Sensor & Peripheral Interface Design Winter 2016

Serial Interfaces Part 1. ECE 153B Sensor & Peripheral Interface Design Winter 2016 Serial Interfaces Part 1 ECE 153B Sensor & Peripheral Interface Design Serial Interfaces Simple Serial Interfaces RS-232C (UART) Provides for point to point communications, primarily Among the simplest

More information

Chapter 3. Information Representation

Chapter 3. Information Representation Chapter 3 Information Representation Instruction Set Architecture APPLICATION LEVEL HIGH-ORDER LANGUAGE LEVEL ASSEMBLY LEVEL OPERATING SYSTEM LEVEL INSTRUCTION SET ARCHITECTURE LEVEL 3 MICROCODE LEVEL

More information

CMSC 313 Lecture 03 Multiple-byte data big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes

CMSC 313 Lecture 03 Multiple-byte data big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes Multiple-byte data CMSC 313 Lecture 03 big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes UMBC, CMSC313, Richard Chang 4-5 Chapter

More information

MK D Imager Barcode Scanner Configuration Guide

MK D Imager Barcode Scanner Configuration Guide MK-5500 2D Imager Barcode Scanner Configuration Guide V1.4 Table of Contents 1 Getting Started... 3 1.1 About This Guide... 3 1.2 Barcode Scanning... 3 1.3 Factory Defaults... 3 2 Communication Interfaces...

More information

Chapter 11: Input/Output Organisation. Lesson 05: Asynchronous RS232C Serial Port data transfer

Chapter 11: Input/Output Organisation. Lesson 05: Asynchronous RS232C Serial Port data transfer Chapter 11: Input/Output Organisation Lesson 05: Asynchronous RS232C Serial Port data transfer Objective Understand the RS232C asynchronous data transfer and signals Learn the RS232C serial port communication

More information

Positional Number System

Positional Number System Positional Number System A number is represented by a string of digits where each digit position has an associated weight. The weight is based on the radix of the number system. Some common radices: Decimal.

More information

PD1100 STAND-ALONE PROGRAMMING & USER S GUIDE. use the freedom

PD1100 STAND-ALONE PROGRAMMING & USER S GUIDE. use the freedom PD1100 STAND-ALONE ALPHANUMERIC POLE DISPLAY PROGRAMMING & USER S GUIDE use the freedom Forward The information contained in this user s guide is subject to change without notice. This Programming and

More information

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, FALL 2012

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, FALL 2012 CMSC 33 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 2, FALL 22 TOPICS TODAY Bits of Memory Data formats for negative numbers Modulo arithmetic & two s complement Floating point formats

More information

Select a Data Communication Interface

Select a Data Communication Interface Printer Setup and Operation Select a Data Communication Interface Select a Data Communication Interface You may connect your print engine to a computer using one or more of the available connections. The

More information

PS232. RS-232 to PS/2 Keyboard Port Adapter Part # SA0009 (Version 4.0) Copyright 2003 L3 Systems, Inc. Redmond

PS232. RS-232 to PS/2 Keyboard Port Adapter Part # SA0009 (Version 4.0) Copyright 2003 L3 Systems, Inc. Redmond PS232 RS-232 to PS/2 Keyboard Port Adapter Part # SA0009 (Version 4.0) Copyright 2003 L3 Systems, Inc. Redmond Quick Reference Command Description Pg ~H Help Screen Displays short command reference 4 ~V

More information

RS-232 Digital Relay I/O

RS-232 Digital Relay I/O RS-232 Digital Relay I/O Model 232DRIO Documentation Number 232DRIO1005 pn#4520-r2 This product Designed and Manufactured In Ottawa, Illinois USA of domestic and imported parts by B&B Electronics Mfg.

More information

2a. Codes and number systems (continued) How to get the binary representation of an integer: special case of application of the inverse Horner scheme

2a. Codes and number systems (continued) How to get the binary representation of an integer: special case of application of the inverse Horner scheme 2a. Codes and number systems (continued) How to get the binary representation of an integer: special case of application of the inverse Horner scheme repeated (integer) division by two. Example: What is

More information

Chapter 2 Number System

Chapter 2 Number System Chapter 2 Number System Embedded Systems with ARM Cortext-M Updated: Tuesday, January 16, 2018 What you should know.. Before coming to this class Decimal Binary Octal Hex 0 0000 00 0x0 1 0001 01 0x1 2

More information

1. Character/String Data, Expressions & Intrinsic Functions. Numeric Representation of Non-numeric Values. (CHARACTER Data Type), Part 1

1. Character/String Data, Expressions & Intrinsic Functions. Numeric Representation of Non-numeric Values. (CHARACTER Data Type), Part 1 Character/String Data, Expressions Intrinsic Functions (CHARACTER Data Type), Part 1 1. Character/String Data, Expressions Intrinsic Functions (CHARACTER Data Type), Part 1 2. Numeric Representation of

More information

2D BARCODE SCANNER CA-SC-20200B

2D BARCODE SCANNER CA-SC-20200B D BARCODE SCANNER CA-SC-B Quick Start Guide Getting Familiar with Your Device Thank you for choosing Capture Bar Code Scanner. All Devices deliver world-class performance for a broad range of applications

More information

Serial Interfacing. Asynchronous Frame

Serial Interfacing. Asynchronous Frame Serial Interfacing Serial Data Transfer used by keyboards, plotters, modems and other peripherals with low data transfer rates (low bandwidth) 2 Types: Asynchronous CPU and device are not using a common

More information

Bits and Bytes. Data Representation. A binary digit or bit has a value of either 0 or 1; these are the values we can store in hardware devices.

Bits and Bytes. Data Representation. A binary digit or bit has a value of either 0 or 1; these are the values we can store in hardware devices. Bits and Bytes 1 A binary digit or bit has a value of either 0 or 1; these are the values we can store in hardware devices. A byte is a sequence of 8 bits. A byte is also the fundamental unit of storage

More information

8051SERIAL PORT PROGRAMMING

8051SERIAL PORT PROGRAMMING 8051SERIAL PORT PROGRAMMING Basics of Serial Communication Computers transfer data in two ways: Parallel Often 8 or more lines (wire conductors) are used to transfer data to a device that is only a few

More information

Fundamentals of Programming

Fundamentals of Programming Fundamentals of Programming Lecture 2 Number Systems & Arithmetic Lecturer : Ebrahim Jahandar Some Parts borrowed from slides by IETC1011-Yourk University Common Number Systems System Base Symbols Used

More information

ADDMASTER. Addmaster Corporation. IJ-3080 Journal/Validation Printer. Specification. IJ-3080 Specification

ADDMASTER. Addmaster Corporation. IJ-3080 Journal/Validation Printer. Specification. IJ-3080 Specification IJ-3080 Journal/Validation Printer Specification Provides the electrical, mechanical, and interface specifications of the IJ-3080 Journal/Validation Printer. Cover Models: IJ-3080 The Addmaster Model IJ-3080

More information

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved.

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved. Serial Communication Prof. James L. Frankel Harvard University Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved. Overview of the Serial Protocol Simple protocol for communicating

More information

Addmaster Corporation

Addmaster Corporation IJ-1000 Ink-Jet Validation Printer Specification Addmaster Corporation Address: 225 East Huntington Drive Monrovia, CA 91016 Web: www.addmaster.com Phone: (626) 358-2395 FAX: (626) 358-2784 Document: ij1w.doc

More information

Serial Communication. Spring, 2018 Prof. Jungkeun Park

Serial Communication. Spring, 2018 Prof. Jungkeun Park Serial Communication Spring, 2018 Prof. Jungkeun Park Serial Communication Serial communication Transfer of data over a single wire for each direction (send / receive) Process of sending data one bit at

More information

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON Prof. Gurindar Sohi TAs: Pradip Vallathol and Junaid Khalid Midterm Examination 1 In Class (50 minutes) Friday, September

More information

Number Systems II MA1S1. Tristan McLoughlin. November 30, 2013

Number Systems II MA1S1. Tristan McLoughlin. November 30, 2013 Number Systems II MA1S1 Tristan McLoughlin November 30, 2013 http://en.wikipedia.org/wiki/binary numeral system http://accu.org/index.php/articles/18 http://www.binaryconvert.com http://en.wikipedia.org/wiki/ascii

More information

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, SPRING 2013

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, SPRING 2013 CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, SPRING 2013 TOPICS TODAY Bits of Memory Data formats for negative numbers Modulo arithmetic & two s complement Floating point

More information

PD1100 PASS-THROUGH PROGRAMMING & USER S GUIDE. use the freedom

PD1100 PASS-THROUGH PROGRAMMING & USER S GUIDE. use the freedom PD1100 PASS-THROUGH ALPHANUMERIC POLE DISPLAY PROGRAMMING & USER S GUIDE use the freedom Forward The information contained in this user s guide is subject to change without notice. This Programming and

More information

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON Prof. Gurindar Sohi TAs: Junaid Khalid and Pradip Vallathol Midterm Examination 1 In Class (50 minutes) Friday, September

More information

Characters Lesson Outline

Characters Lesson Outline Outline 1. Outline 2. Numeric Encoding of Non-numeric Data #1 3. Numeric Encoding of Non-numeric Data #2 4. Representing Characters 5. How Characters Are Represented #1 6. How Characters Are Represented

More information

4.3 Digital Communication

4.3 Digital Communication Data Acquisition & Computer Control 11 4.3 Digital Communication Why digital communication (often termed digital input/output, or DIO)? Because the language of computers (and many peripheral devices) is

More information

User s Manual. Xi3000 Scanner. Table of Contents

User s Manual. Xi3000 Scanner. Table of Contents Xi3000 Scanner User s Manual Table of Contents Restore Default Settings... 1 Exit Setup without Changes... 1 Configure Through RS232... 1 List Setting... 1 Buzzer Settings... 2 Reading Redundancy Setting...

More information

Xi2000-BT Series Configuration Guide

Xi2000-BT Series Configuration Guide U.S. Default Settings Sequence Reset Scanner Xi2000-BT Series Configuration Guide Auto-Sense Mode ON UPC-A Convert to EAN-13 OFF UPC-E Lead Zero ON Save Changes POS-X, Inc. 2130 Grant St. Bellingham, WA

More information

FEC-240G. Rev. Date

FEC-240G. Rev. Date Model User s Manual Contents Contents. 1 Features... 2 Type Model and Serial Number... 2 Specifications... 3 Interface Connections...... 4 DIP Switch Setting... 6 Dimension... 7 Command Set Table... 8

More information

CS341 *** TURN OFF ALL CELLPHONES *** Practice NAME

CS341 *** TURN OFF ALL CELLPHONES *** Practice NAME CS341 *** TURN OFF ALL CELLPHONES *** Practice Final Exam B. Wilson NAME OPEN BOOK / OPEN NOTES: I GIVE PARTIAL CREDIT! SHOW ALL WORK! 1. Processor Architecture (20 points) a. In a Harvard architecture

More information

Number System (Different Ways To Say How Many) Fall 2016

Number System (Different Ways To Say How Many) Fall 2016 Number System (Different Ways To Say How Many) Fall 2016 Introduction to Information and Communication Technologies CSD 102 Email: mehwish.fatima@ciitlahore.edu.pk Website: https://sites.google.com/a/ciitlahore.edu.pk/ict/

More information

EE 109 Unit 3. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL

EE 109 Unit 3. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL 3. 3. EE 9 Unit 3 Binary Representation Systems ANALOG VS. DIGITAL 3.3 3. Analog vs. Digital The analog world is based on continuous events. Observations can take on any (real) value. The digital world

More information

PureScan - ML1. Configuration Guide. Wireless Linear Imager Wireless Laser scanner - 1 -

PureScan - ML1. Configuration Guide. Wireless Linear Imager Wireless Laser scanner - 1 - PureScan - ML1 Wireless Linear Imager Wireless Laser scanner Configuration Guide - 1 - Table of Contents Chapter 1 System Information 1.1 About this manual 3 1.2 How to set up the parameter 3 Chapter 2

More information

Menu & commands booklet FOR BAR CODE SCANNERS * *

Menu & commands booklet FOR BAR CODE SCANNERS * * Menu & commands booklet FOR BAR CODE SCANNERS *201002993520* Caution! This menu book may be revised or withdrawn at any time. Copyright 1993-99, Datalogic S.p.A. All Rights Reserved. No part of this publication

More information

Lecture (09) x86 programming 8

Lecture (09) x86 programming 8 Lecture (09) x86 programming 8 By: Dr. Ahmed ElShafee 1 Basic Input Output System BIOS BIOS refers to a set of procedures or functions that enable the programmer have access to the hardware of the computer.

More information

2D Barcode Reader User Guide V 1.2.1

2D Barcode Reader User Guide V 1.2.1 2D Barcode Reader User Guide V 1.2.1 Table of Contents 1 Getting Started... 3 1.1 About This Guide... 3 1.2 Barcode Scanning... 3 1.3 Factory Defaults... 3 1.4 Firmware Version Number... 3 2 Communication

More information

Binary Numbers. The Basics. Base 10 Number. What is a Number? = Binary Number Example. Binary Number Example

Binary Numbers. The Basics. Base 10 Number. What is a Number? = Binary Number Example. Binary Number Example The Basics Binary Numbers Part Bit of This and a Bit of That What is a Number? Base Number We use the Hindu-Arabic Number System positional grouping system each position represents a power of Binary numbers

More information

ASCII Code - The extended ASCII table

ASCII Code - The extended ASCII table ASCII Code - The extended ASCII table ASCII, stands for American Standard Code for Information Interchange. It's a 7-bit character code where every single bit represents a unique character. On this webpage

More information

KB232. PS/2 Keyboard RS-232 Adapter Part # SA0008 (Version 3.0) Copyright 2003 L3 Systems, Inc. Redmond

KB232. PS/2 Keyboard RS-232 Adapter Part # SA0008 (Version 3.0) Copyright 2003 L3 Systems, Inc. Redmond KB232 PS/2 Keyboard RS-232 Adapter Part # SA0008 (Version 3.0) Copyright 2003 L3 Systems, Inc. Redmond Command C Displays Configuration String CW= D Lkk=aa,bb P E H V T Quick Reference Notes Field

More information

EE 109 Unit 2. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL

EE 109 Unit 2. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL EE 9 Unit Binary Representation Systems ANALOG VS. DIGITAL Analog vs. Digital The analog world is based on continuous events. Observations can take on any (real) value. The digital world is based on discrete

More information

ASSIGNMENT 5 TIPS AND TRICKS

ASSIGNMENT 5 TIPS AND TRICKS ASSIGNMENT 5 TIPS AND TRICKS linear-feedback shift registers Java implementation a simple encryption scheme http://princeton.edu/~cos26 Last updated on /26/7 : PM Goals OOP: implement a data type; write

More information

n NOPn Unary no operation trap U aaa NOP Nonunary no operation trap i

n NOPn Unary no operation trap U aaa NOP Nonunary no operation trap i Instruction set Instruction Mnemonic Instruction Addressing Status Specifier Mode Bits 0000 0000 STOP Stop execution U 0000 0001 RET Return from CALL U 0000 0010 RETTR Return from trap U 0000 0011 MOVSPA

More information

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, FALL 2012

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, FALL 2012 CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, FALL 2012 ANNOUNCEMENTS TA Office Hours (ITE 334): Genaro Hernandez, Jr. Mon 10am 12noon Roshan Ghumare Wed 10am 12noon Prof.

More information

Data Representa5on. CSC 2400: Computer Systems. What kinds of data do we need to represent?

Data Representa5on. CSC 2400: Computer Systems. What kinds of data do we need to represent? CSC 2400: Computer Systems Data Representa5on What kinds of data do we need to represent? - Numbers signed, unsigned, integers, floating point, complex, rational, irrational, - Text characters, strings,

More information

Do not start the test until instructed to do so!

Do not start the test until instructed to do so! Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet. No calculators or other electronic devices

More information

3170 Series Touch Screen POS Workstation

3170 Series Touch Screen POS Workstation Congratulations on your purchase of UTC RETAIL s innovative 3170 Series Touch Screen POS Workstation. The 3170 Series was designed to conserve counter space and it comes standard with a rich set of features.

More information

Data Representa5on. CSC 2400: Computer Systems. What kinds of data do we need to represent?

Data Representa5on. CSC 2400: Computer Systems. What kinds of data do we need to represent? CSC 2400: Computer Systems Data Representa5on What kinds of data do we need to represent? - Numbers signed, unsigned, integers, floating point, complex, rational, irrational, - Text characters, strings,

More information

BARCODE SCANNER. Configuration Guide - 1 -

BARCODE SCANNER. Configuration Guide - 1 - BARCODE SCANNER Configuration Guide - 1 - Table of Contents Chapter 1 System Information 1.1 About this manual 3 1.2 How to set up the parameter 3 1.3 How to set up the parameter - II 4 Chapter 2 System

More information

Configuration Manual PULSAR C CCD SCANNER. Table of Contents

Configuration Manual PULSAR C CCD SCANNER. Table of Contents Table of Contents PULSAR C CCD SCANNER Configuration Manual Metrologic Instruments GmbH Dornier Strasse 2 82178 Puchheim Germany Tel +49 89 890190 Fax +49 89 89019200 www.europe.metrologic.com Metrologic

More information

Chapter 2 Bits, Data Types, and Operations

Chapter 2 Bits, Data Types, and Operations Chapter Bits, Data Types, and Operations How do we represent data in a computer? At the lowest level, a computer is an electronic machine. works by controlling the flow of electrons Easy to recognize two

More information

Lecture-65 SERIAL DATA COMMMUNICATION The data bus of a microcomputer system is designed to transfer data to and from I/O device in parallel - all

Lecture-65 SERIAL DATA COMMMUNICATION The data bus of a microcomputer system is designed to transfer data to and from I/O device in parallel - all Lecture-65 SERIAL DATA COMMMUNICATION The data bus of a microcomputer system is designed to transfer data to and from I/O device in parallel - all bits of a data word are transformed simultaneously. This

More information

Number Representations

Number Representations Simple Arithmetic [Arithm Notes] Number representations Signed numbers Sign-magnitude, ones and twos complement Arithmetic Addition, subtraction, negation, overflow MIPS instructions Logic operations MIPS

More information

Data Communications & Computer Networks. Digital Data Communications Techniques

Data Communications & Computer Networks. Digital Data Communications Techniques Data Communications & Computer Networks Chapter 6 Digital Data Communications Techniques Fall 2008 Agenda Preface Asynchronous & Synchronous transmission Error Detection & Correction Line configurations

More information

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Communication Module No: CS/ES/11 Quadrant 1 e-text

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Communication Module No: CS/ES/11 Quadrant 1 e-text e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Communication Module No: CS/ES/11 Quadrant 1 e-text In this lecture, serial port communication will be discussed in

More information

VIGOR PROGRAMMABLE LOGICAL CONTROLLERS VIGOR ELECTRIC CORP.

VIGOR PROGRAMMABLE LOGICAL CONTROLLERS VIGOR ELECTRIC CORP. VIGOR PROGRAMMABLE LOGICAL CONTROLLERS VIGOR ELECTRIC CORP. 232G RX TX VB-1COM VIGOR + 24V IN - SHORT FOR TR 485G D+ D- VB-1COM Serial Foreword This manual contains text, diagrams and explanations which

More information

Connecting UniOP to Datalogic Barcode Readers

Connecting UniOP to Datalogic Barcode Readers Connecting UniOP to Datalogic Barcode Readers This Technical Note contains the information needed to connect UniOP to Datalogic Barcode Scanners. Contents 1. Introduction...1 2. Designer setup...1 2.1

More information

Customer Pole Display. Model: WD-304 Version: 1.12

Customer Pole Display. Model: WD-304 Version: 1.12 Customer Pole Display Model: WD-304 Version: 1.12 INDEX 1 FEATURES... 3 2 GENERAL SPECIFICATIONS... 4 3 UNPACKING... 5 3.1 PARTS LIST (WITH BASE PCB)... 5 3.2 PARTS LIST (WITHOUT BASE PCB)... 6 4 CONFIGURATION...

More information

NC-1200 BARCODE SCANNER. Configuration Guide - 1 -

NC-1200 BARCODE SCANNER. Configuration Guide - 1 - NC-1200 BARCODE SCANNER Configuration Guide - 1 - Table of Contents Chapter 1 System Information 1.1 About this manual 3 1.2 How to set up the parameter-i 3 1.3 How to set up the parameter II 4 1.4 Resetting

More information

Oberon Data Types. Matteo Corti. December 5, 2001

Oberon Data Types. Matteo Corti. December 5, 2001 Oberon Data Types Matteo Corti corti@inf.ethz.ch December 5, 2001 1 Introduction This document is aimed at students without any previous programming experience. We briefly describe some data types of the

More information

Chapter 8. Characters and Strings

Chapter 8. Characters and Strings Chapter 8 Characters and s OJECTIVES After you have read and studied this chapter, you should be able to Declare and manipulate data of the char data type. Write string processing programs using and uffer

More information

Do not start the test until instructed to do so!

Do not start the test until instructed to do so! Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet. No calculators or other electronic devices

More information

DB-II Serial Communication Protocol Revision 0.2(English)

DB-II Serial Communication Protocol Revision 0.2(English) DB-II Serial Communication Protocol Revision 0.2(English) Final Revision: 2005. 4. 25 Page 1 3/2/2007 < Table of Contents > 1. The Serial Interface...3 1.1. Transmission Control Character...3 1.2. Synchronization...3

More information

Chapter 2 Bits, Data Types, and Operations

Chapter 2 Bits, Data Types, and Operations Chapter 2 Bits, Data Types, and Operations Original slides from Gregory Byrd, North Carolina State University Modified slides by Chris Wilcox, Colorado State University How do we represent data in a computer?!

More information

TABLE OF CONTENTS. Communication Functions

TABLE OF CONTENTS. Communication Functions TABLE OF CONTENTS Chapter 1: Chapter 2: Chapter 3: Chapter 4: General Features....................................................... 1-1 Functions......................................................

More information

QTERM-J10/N15 USER'S MANUAL REVISION 13

QTERM-J10/N15 USER'S MANUAL REVISION 13 QTERM-J0/N5 USER'S MANUAL REVISION 3 M0-009-00 Rev 3 QSI CORPORATION 222 South West Temple #50 Salt Lake City, UTAH 845-2648 USA Phone 80-466-8770 Fax 80-466-8792 Email info@qsicorp.com Web www.qsicorp.com

More information

Chapter 2 Bits, Data Types, and Operations

Chapter 2 Bits, Data Types, and Operations Chapter 2 Bits, Data Types, and Operations How do we represent data in a computer? At the lowest level, a computer is an electronic machine. works by controlling the flow of electrons Easy to recognize

More information

Chapter 9: Data Transmission

Chapter 9: Data Transmission Chapter 9: Data Transmission MULTIPLE CHOICE 1. In practical terms, parallel data transmission is sent: a. over short distances only c. over any distance b. usually over long distances d. usually over

More information

RS-232 DATA COMMUNICATIONS WITH THE TANDY COLOR COMPUTER

RS-232 DATA COMMUNICATIONS WITH THE TANDY COLOR COMPUTER By Tom Gunnison 1998 DISCLAIMER These plans and software are provided "as is" with no guarantee of fitness for the purpose either explicit or implied. I disclaim any responsibility for losses incurred

More information

Datalogic Scanning, Inc. 959 Terry Street Eugene, Oregon Telephone: (541) Fax: (541)

Datalogic Scanning, Inc. 959 Terry Street Eugene, Oregon Telephone: (541) Fax: (541) Datalogic Scanning, Inc. 959 Terry Street Eugene, Oregon 97402 Telephone: (541) 683-5700 Fax: (541) 345-7140 An Unpublished Work - All rights reserved. No part of the contents of this documentation or

More information

Input-Output Organization

Input-Output Organization Ted Borys - CSI 404 5/1/2004 Page 11-1 Section 11 Input-Output Organization ASCII Character Set 94 printable characters Upper & lowercase letters 10 numerals Special characters such as $, @, #, % 34 control

More information

DS-800. ::: Receipt Printer User s manual :::

DS-800. ::: Receipt Printer User s manual ::: DS-800 ::: Receipt Printer User s manual ::: All specifications are subjected to change without notice TABLE OF CONTENTS 1. Parts Identifications 2 2. Setting up the printer 3 2.1 Unpacking 3 2.2 Connecting

More information

CPS 104 Computer Organization and Programming Lecture-2 : Data representations,

CPS 104 Computer Organization and Programming Lecture-2 : Data representations, CPS 104 Computer Organization and Programming Lecture-2 : Data representations, Sep. 1, 1999 Dietolf Ramm http://www.cs.duke.edu/~dr/cps104.html CPS104 Lec2.1 GK&DR Fall 1999 Data Representation Computers

More information

XR-200 MINI DOT IMPACT PRINTER PRODUCT SPECIFICATION DATE : MAY 3, 2004 MANUAL REVISION 2.0

XR-200 MINI DOT IMPACT PRINTER PRODUCT SPECIFICATION DATE : MAY 3, 2004 MANUAL REVISION 2.0 XR-200 MINI DOT IMPACT PRINTER PRODUCT SPECIFICATI DATE : MAY 3, 2004 MANUAL REVISI 2.0 Features Dip Switch Configuration Emulation mode, communications mode, baud rate, serial/parallel handshake, and

More information

COPYRIGHT 2009,SCSC. Manual P/No: SCCM - 80S-01A Released Date: Oct 31, 2009

COPYRIGHT 2009,SCSC. Manual P/No: SCCM - 80S-01A Released Date: Oct 31, 2009 To begin the configuration procedures Thank you for purchasing the scanner. Inside each packaging box, you may find the scanner, the interface cable and user's fuide. Configuration manual might be optional

More information

Table of Contents Sleep Settings How to Configure the Scanner. 7 Chapter 2 System Setup

Table of Contents Sleep Settings How to Configure the Scanner. 7 Chapter 2 System Setup Table of Contents Chapter 1 System Information 1.1 Setup Scanner with PC 1.2 Setup Scanner with Mobile Device 1.3 Configure ios On-Screen Keyboard 1.4 Memory Mode 3 4 4 5 1.5 Sleep Settings 6 1.6 How to

More information

MOBILE THERMAL PRINTER

MOBILE THERMAL PRINTER MOBILE THERMAL PRINTER MODEL CMP-20 series Technical Manual Rev. 1.00 TABLE OF CONTENTS 1. General Specifications 1.1 Printing Specifications 1.2 Character Specifications 1.3 Paper Specification 1.4 Printable

More information

TSP552 TSP552II TSP2000

TSP552 TSP552II TSP2000 THERMAL PRINTER TSP552 TSP552II TSP2000 PROGRAMMER'S MANUAL Trademark acknowledgments TSP552, TSP552II, TSP2000: Star Micronics Co., Ltd. ESC/POS: Seiko Epson Corporation Notice All rights reserved. Reproduction

More information

EE 109 Unit 2. Binary Representation Systems

EE 109 Unit 2. Binary Representation Systems EE 09 Unit 2 Binary Representation Systems ANALOG VS. DIGITAL 2 3 Analog vs. Digital The analog world is based on continuous events. Observations can take on (real) any value. The digital world is based

More information

Numbers and Computers. Debdeep Mukhopadhyay Assistant Professor Dept of Computer Sc and Engg IIT Madras

Numbers and Computers. Debdeep Mukhopadhyay Assistant Professor Dept of Computer Sc and Engg IIT Madras Numbers and Computers Debdeep Mukhopadhyay Assistant Professor Dept of Computer Sc and Engg IIT Madras 1 Think of a number between 1 and 15 8 9 10 11 12 13 14 15 4 5 6 7 12 13 14 15 2 3 6 7 10 11 14 15

More information

RS-232 Control of the Advantage EQ281/8, EQ282/8 and Advantage SMS200

RS-232 Control of the Advantage EQ281/8, EQ282/8 and Advantage SMS200 RS-232 Control of the Advantage EQ281/8, EQ282/8 and Advantage SMS200 Biamp Systems, 14130 N.W. Science Park, Portland, Oregon 97229 U.S.A. (503) 641-7287 an affiliate of Rauland-Borg Corp. Introduction

More information