Universal Asynchronous Receiver Transmitter Communication

Size: px
Start display at page:

Download "Universal Asynchronous Receiver Transmitter Communication"

Transcription

1 Universal Asynchronous Receiver Transmitter Communication 13 October 2011

2 Synchronous Serial Standard SPI I 2 C

3 Asynchronous Serial Standard UART

4 Asynchronous Resynchronization

5 Asynchronous Data Transmission Standard Data transmission uses 10 bits A start bit of 0 7 or 8 data bits transmitted from LSB to MSB An optional parity bit A stop bit Mark coding means the stop bit is a 1 Space coding means thhe stop bit is a 0 Parity Coding Even Parity Generation: P = ( d n) mod 2 Test: E = ( d n + P) mod 2 Odd Parity Generation: P = ( d n + 1) mod 2 Test: E = ( d n + P + 1) mod 2

6 ASCII Standards American Standard Code for Information Interchange 7-bits First 32 codes for printer control Last 96 printable characters IBM added 8th bit NUL DLE space 0 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 u 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

7 PIC24F UART Protocols EIA-232 (RS-232) EIA-485 (RS-485) LIN bus (Local Interconnect Network) IrDA (Infrared Data Association)

8 UART Drivers and Standards Use MC1488 and MC1489 drives with PIC for EIA232, requires 12 VDC, +12 VDC, and +5 VDC supply Use MC3487 and MC3486 drivers with PIC for EIA422 requires +5 VDC supply MAX232A provides two EIA232 outputs and two EIA232 inputs requires +5 VDC supply

9 EIA Terminology Standards DTE Data terminal equipment (computer) DCE Data communication equipment (modem) RxD Receiver data TxD Transmitter data DCD Data carrier detect (valid modem connection)

10 EIA Terminology (cont d) DTR Data terminal ready (Computer on and software is ready) DSR Data set ready (Modem on and software ready) RTS Request to send (DTE wants to send character) CTS Clear to send (DCE acknowledge to RTS from DTE) RI Ring indicator from telephone

11 DE-9 and DB-25 Connector Signal DE-9 DB-25 DCD 1 8 RxD 2 3 TxD 3 2 DTR 4 20 GND 5 7 DSR 6 6 RTS 7 4 CTS 8 5 RI 9 22

12 Baud Rate Standards Baud is state changes per second. When there are two states the baud equals bits per second or bps Standard baud rates for PIC: 300, 1200, 2400, 9600, 19200, 38400, 57600, 76800, 96000, and others The baud rate is specified in UxBRG and BRGH

13 Calculations with BRGH = 0 Baud rate = F CYC 16 (UxBRG + 1) Baud rate = F CYC UxBRG = 16 Baud rate 1 = = ( ) = 9615(0.16%error)

14 Calculations with BRGH = 1 Baud rate = F CYC 4 (UxBRG + 1) Baud rate = F CYC UxBRG = 4 Baud rate 1 = = ( ) = 9615(0.16%error)

15 Software Handshake

16 Hardware - UART Tx

17 Hardware - UART Rx

18 Hardware - UART (BRGH=1) Receive (4 (X + 1) T CYC = 1 bit period) Wait for 0 Wait 2 (X + 1) T CYC, If 0 continue else restart Wait 4 (X + 1) T CYC, get D 0 Wait 4 (X + 1) T CYC, get D 1. Wait 4 (X + 1) T CYC, get D 7 or parity Wait 4 (X + 1) T CYC, If 1 okay else frame error.

19 Hardware - UART (BRGH=0) Receive (16 (X + 1) T CYC = 1 bit period) Wait for 0 Wait 8 (X + 1) T CYC, If 0 continue else restart Wait 16 (X + 1) T CYC, get D 0 Wait 16 (X + 1) T CYC, get D 1. Wait 16 (X + 1) T CYC, get D 7 or parity Wait 16 (X + 1) T CYC, If 1 okay else frame error.

20 UART Definitions #include<p24fj128ga010.h> #define CTS RF12 // Clear To Send, input, HW handshake #define RTS RF13 // Request To Send, input, HW handshake #define TRTS TRISF13 // Tris control for RTS pin #define U ENABLE 0x8008 //enable UART, BREGH=1, 1 stop, no parity #define U TX 0x0400 //enable transmission, clear all flags

21 Configuring UART void initu2(int baudrate) { U2BRG=baudrate; // initialize the baud rate generator U2MODE=U ENABLE; //initialize the UART module U2STA = U TX; //enable the tansmitter TRTS=0; // make RTS an output pin RTS=1; //set RTS default status (not ready) }//initu2

22 Send (Transmit) a Character int putu2(int c) { while(cts); //wait for!cts (active low) Clear To Send while(u2stabits.utxbf); //wait while Tx buffer is full U2TXREG=c; return c; }//putu2

23 Receive a Character char getu2(void) { RTS=0; //asset Request To Send while(!u2stabits.urxda); //wait for a new character to arrive return U2RXREG; //read the character from the receive buffer RTS=1; }//getu2

24 Error Detection Standards Parity Bits Pro: Calculated by UART hardware Cons: Does not detect pair reversals Hamming Code Pro: Corrects errors Con: Requires 12-bits per byte and bit oriented Checksum Pros: Simple algorithm Cons: Does not detect reordered byte, inserted or deleted zero-value bytes, and multiple errors which sum to zero Cyclic Redundancy Check Pros: Detects All single bit errors, all two-bit errors within order of polynomial, all odd number bit errors, and all burst error less than order of polynomial Cons: Bit oriented. Does not detect strings of zeros

25 (11,7) Hamming Code (11,7) Hamming Code adds 4 parity bits to a 7-bit message Each parity bit covers certain message bits This code uses even parity

26 (11,7) Hamming Code (cont d) p 1 p 2 d 1 p 3 d 2 d 3 d 4 p 4 d 5 d 6 d 7 Data word p p p p Tx data

27 Checksum Standards Message M i of length n Standard ( n ) Checksum = M i mod 256 Flecher-32 A = ( 1 + ( B = n + i=0 ) n M i mod ( ) i=0 ) n (n 1)M i i=0 Checksum = B A mod ( )

28 Cyclic Redundancy Check All arithmetic is Modulo-2 By bit manipulation By byte-wise table look-up M(x) is the message Q(x) is the quotient result K(x) is the key polynomial (example CRC-16 IBM) R(x) is the remainder of result (CRC) M(x)x n = Q(x) R(x) + R(x) M(x)x n K(x) = Q(x) + R(x) K(x)

29 Common CRCs Standards Name Polynomial Use CRC-1 x + 1 Parity CRC-5 USB x 5 + x USB CRC-15 CAN x 15 + x 14 + x 10 + x 8 + x 7 + x 4 + x CAN CRC-16 IBM x 16 + x 15 + x Serial CRC-32 MPEG2 See internet MPEG2 CRC-32 IEEE See internet Ethernet 802.3

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

Serial I/O. 4: Serial I/O. CET360 Microprocessor Engineering. J. Sumey 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Real-Time Embedded Systems. CpE-450 Spring 06

Real-Time Embedded Systems. CpE-450 Spring 06 Real-Time Embedded Systems CpE-450 Spring 06 Class 5 Bruce McNair bmcnair@stevens.edu 5-1/42 Interfacing to Embedded Systems Distance 100 m 10 m 1 m 100 cm 10 cm "Transmission line" capacitance ( C) Distance

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

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

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

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

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

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

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

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

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

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

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

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

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

FACTORY AUTOMATION. MANUAL OHV-F230-B17 PROFINET Gateway for OHV Handheld

FACTORY AUTOMATION. MANUAL OHV-F230-B17 PROFINET Gateway for OHV Handheld FACTORY AUTOMATION MANUAL OHV-F230-B17 PROFINET Gateway for OHV Handheld R With regard to the supply of products, the current issue of the following document is applicable: The General Terms of Delivery

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

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

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

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

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

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

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

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

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

Buffered Data Broadcast

Buffered Data Broadcast JULY 1999 TL160A-R2 TL160-C TL484 TL485 Buffered Data Broadcast BUFFERED DATA BROADCAST CHANNEL PORTS MASTER 0 1 2 3 4 5 6 7 8 POWER CUSTOMER SUPPORT INFORMATION Order toll-free in the U.S. 24 hours, 7

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Product Manual Serial Controlled Input/Output Module. Quartech Corporation Angelo Drive Macomb Township, Michigan

Product Manual Serial Controlled Input/Output Module. Quartech Corporation Angelo Drive Macomb Township, Michigan Product Manual 9110 Serial Controlled Input/ Module Quartech Corporation 15923 Angelo Drive Macomb Township, Michigan 48042-4050 Phone: (586) 781-0373 FAX: (586) 781-0378 www.quartechcorp.com The product

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 by Chris Wilcox, S. Rajopadhye Colorado State University How do we represent data

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

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

COMMUNICATION INSTRUCTION MANUAL PC-935, PC-955 (OPTION CODES: C, C5, SVTC)

COMMUNICATION INSTRUCTION MANUAL PC-935, PC-955 (OPTION CODES: C, C5, SVTC) COMMUNICATION INSTRUCTION MANUAL PC-935, PC-955 (OPTION CODES: C, C5, SVTC) --- CONTENTS --- 1. System configuration 1.1 System configuration (1) RS-232C (option C) -------------------------------------------------------------

More information

Start Configuration. Chap.1 System Information. Set All default

Start Configuration. Chap.1 System Information. Set All default SC2100B Chap.1 System Information Set All default S/W Version Chap.2 System Installation 2.1 Interface Selection If you change the interface from others to USB, the program needs to restart plug the installation.

More information

Number Systems for Computers. Outline of Introduction. Binary, Octal and Hexadecimal numbers. Issues for Binary Representation of Numbers

Number Systems for Computers. Outline of Introduction. Binary, Octal and Hexadecimal numbers. Issues for Binary Representation of Numbers Outline of Introduction Administrivia What is computer architecture? What do computers do? Representing high level things in binary Data objects: integers, decimals, characters, etc. Memory locations (We

More information

5/17/2009. Digitizing Discrete Information. Ordering Symbols. Analog vs. Digital

5/17/2009. Digitizing Discrete Information. Ordering Symbols. Analog vs. Digital Chapter 8: Bits and the "Why" of Bytes: Representing Information Digitally Digitizing Discrete Information Fluency with Information Technology Third Edition by Lawrence Snyder Copyright 2008 Pearson Education,

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

E1 and T1 RJ-48 Cable Pinouts on page 208. Fast Ethernet 12-port Cable Pinouts on page 211

E1 and T1 RJ-48 Cable Pinouts on page 208. Fast Ethernet 12-port Cable Pinouts on page 211 Appendix A This chapter contains tables that list the pinouts for the following cable connectors on the router: RJ-45 Connector Pinouts for the Ethernet Management Port on page 207 DB-9 Connector Pinouts

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

Source coding and compression

Source coding and compression Computer Mathematics Week 5 Source coding and compression College of Information Science and Engineering Ritsumeikan University last week binary representations of signed numbers sign-magnitude, biased

More information

Unit 3, Lesson 2 Data Types, Arithmetic,Variables, Input, Constants, & Library Functions. Mr. Dave Clausen La Cañada High School

Unit 3, Lesson 2 Data Types, Arithmetic,Variables, Input, Constants, & Library Functions. Mr. Dave Clausen La Cañada High School Unit 3, Lesson 2 Data Types, Arithmetic,Variables, Input, Constants, & Library Functions Mr. Dave Clausen La Cañada High School Vocabulary Variable- A variable holds data that can change while the program

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

8.2 User Defined Protocol Communication

8.2 User Defined Protocol Communication 8.2 User Defined Protocol Communication 8.2.1 Introduction User Defined Protocol Communication allows users who do communication between GM7 Basic Unit and other kind of device to define the other company

More information

Command Table 4 Data Buffer Function

Command Table 4 Data Buffer Function ASCII Code Table Character Hex Decimal Character Hex Decimal Character Hex Decimal NUL 0 0 2B 43 V 56 86 SOH 1 1 2C 44 W 57 87 STX 2 2 2D 45 X 58 88 ETX 3 3 2E 46 Y 59 89 EOT 4 4 2F 47 Z 5A 90 ENQ 5 5

More information

广州虹源电子有限公司. Guangzhou Hong yuan Electronic co.,ltd. Configuration Manual

广州虹源电子有限公司. Guangzhou Hong yuan Electronic co.,ltd. Configuration Manual 广州虹源电子有限公司 Guangzhou Hong yuan Electronic co.,ltd Configuration Manual 1 TABLE OF CONTENTS Barcode Scanner Install Flow Chart 3 1 SYSTEM INFORMATION 1.1 Resume Defaults...3 1.2 Software Version...3 1.3

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

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

Hardware. ( Not so hard really )

Hardware. ( Not so hard really ) Hardware ( Not so hard really ) Introduction to Computers What is a computer? Why use a computer anyway? Do they have limitations? What s next? A bit of history Mechanical Early 1614 1643 1673 Abacus Slide

More information

The modems are made in industrial 108mm wide aluminium housing for DIN rail mounting. UCM RS232 interface

The modems are made in industrial 108mm wide aluminium housing for DIN rail mounting. UCM RS232 interface DESCRIPTION The modems are a series of general-purpose industrial modems, which can be used for data communication through Public Switched Telephone Networks (PSTN). The modems can operate in 2-wire, full-duplex,

More information

Homework. Reading. Continue mp1. Labs. Tokheim, Section Questions? Continue labs with your assigned section

Homework. Reading. Continue mp1. Labs. Tokheim, Section Questions? Continue labs with your assigned section Homework Reading Tokheim, Section 13-6 Continue mp1 Questions? Labs Continue labs with your assigned section 1 I/O Devices Examples of I/O Devices Serial ports Parallel ports Floppy, Zip, and hard disk

More information

EX & EX-45362IS 2S RS232/422/485 3-in-1 Serial PCIe Card

EX & EX-45362IS 2S RS232/422/485 3-in-1 Serial PCIe Card EX-45362 & EX-45362IS 2S RS232/422/485 3-in-1 Serial PCIe Card Congratulation on your purchasing this high performance 2-Port RS232/422/485 3-in-1 Serial PCIe Host Adapter. The adapter is high speed PCIe

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

RS-232 Control of the Advantage DRI

RS-232 Control of the Advantage DRI RS-232 Control of the Advantage DRI Biamp Systems, 14130 N.W. Science Park, Portland, Oregon 97229 U.S.A. (503) 641-7287 an affiliate of Rauland-Borg Corp. Introduction This document contains technical

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

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

Number Systems Base r

Number Systems Base r King Fahd University of Petroleum & Minerals Computer Engineering Dept COE 2 Fundamentals of Computer Engineering Term 22 Dr. Ashraf S. Hasan Mahmoud Rm 22-44 Ext. 724 Email: ashraf@ccse.kfupm.edu.sa 3/7/23

More information

Table of Contents. Introduction Installation Pin Assignments Method of Programming Setup Commands... 9

Table of Contents. Introduction Installation Pin Assignments Method of Programming Setup Commands... 9 Table of Contents Introduction... 3 Installation... 4 Pin Assignments... 5 Method of Programming... 7 Setup Commands... 9 Interface selection... 10 Reading Mode... 11 RS 232 Communication Parameters...

More information

Vacuum Fluorescent Customer Display. Model: WD-2030 XXXX Version: 1.10

Vacuum Fluorescent Customer Display. Model: WD-2030 XXXX Version: 1.10 Vacuum Fluorescent Customer Display Model: WD-2030 XXXX Version: 1.10 INDEX 1. FEATURES... 3 2. GENERAL SPECIFICATIONS... 4 3. UNPACKING AND CHECKING THE PARTS... 5 3.1 PARTS LIST (WITH BASE PCB)... 5

More information

Variables and data types

Variables and data types Programming with Python Module 1 Variables and data types Theoretical part Contents 1 Module overview 4 2 Writing computer programs 4 2.1 Computer programs consist of data and instructions......... 4 2.2

More information

Introduction to Decision Structures. Boolean & If Statements. Different Types of Decisions. Boolean Logic. Relational Operators

Introduction to Decision Structures. Boolean & If Statements. Different Types of Decisions. Boolean Logic. Relational Operators Boolean & If Statements Introduction to Decision Structures Chapter 4 Fall 2015, CSUS Chapter 4.1 Introduction to Decision Structures Different Types of Decisions A decision structure allows a program

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

Users Manual. Thermal printer controller PRN R FOR FUJITSU THERMAL PRINTERS FTP-639MCL364 FTP-639MCL383 FTP-639MCL393.

Users Manual. Thermal printer controller PRN R FOR FUJITSU THERMAL PRINTERS FTP-639MCL364 FTP-639MCL383 FTP-639MCL393. Users Manual Thermal printer controller PRN609-012R FOR FUJITSU THERMAL PRINTERS FTP-629MCL103 FTP-629MCL363 FTP-629MCL364 FTP-629MCL383 FTP-639MCL064 FTP-639MCL103 FTP-639MCL303 FTP-639MCL363 FTP-639MCL364

More information

D730. Remote Display Installation Manual

D730. Remote Display Installation Manual D730 Remote Display Installation Manual Copyright All Rights Reserved. No part of this document may be copied, reproduced, republished, uploaded, posted, transmitted, distributed, stored in or introduced

More information