EDE1400 Serial to Parallel-Printer Interface IC

Similar documents
Advanced Data Capture and Control Systems

DK40 Datasheet & Hardware manual Version 2

User Manual. AS-Interface Programmer

USER GUIDE Programming Adapter Cable for Fujitsu Flash Microcontroller- F²MC-16LX/FR Family Fujitsu Microelectronics America, Inc.

RDF1. RF Receiver Decoder. Features. Applications. Description. Ordering Information. Part Number Description Packages available

udrive-usd-g1 Embedded DOS micro-drive Module Data Sheet

TTL to RS232 Adapter User Guide

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

TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL

Technical Manual. For use with Caller ID signaling types: Belcore 202, British Telecom, & ETSI

Brushless DC Motor Controller Product Specification Assembly 025F0129

AN2680 Application note

USB / Data-Acquisition Module NOW LEAD-FREE

RIGtalk. Revision 5. Owner s Manual 2012.

RS-232 to TTL Converter Cables SuperDroid Robots

Part Number Description Packages available

EVAL-UFDC-1/UFDC-1M-16

ELAN DIGITAL SYSTEMS LTD. SL232 PC- CARD USER S GUIDE

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

EMC6D103S. Fan Control Device with High Frequency PWM Support and Hardware Monitoring Features PRODUCT FEATURES ORDER NUMBERS: Data Brief

Serial Communications

Modification of an AOR AR-8600 receiver to tune it with a ACECO FC-3002 frequency finder

Application Note 83 Fundamentals of RS 232 Serial Communications

Moxa TCC-100/100I User s Guide

CENTRONICS interface and Parallel Printer Port LPT

ET-BASE AVR ATmega64/128

RS-232 Communications Using BobCAD-CAM. RS-232 Introduction

4 Port VGA Video Audio Switch with RS232 control

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Copyrights 2010 Victron Energy B.V. All Rights Reserved

USB to serial chip CH340

RS232 Board datasheet

MACTek Corporation. USB HART Interface. Users Manual

SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual

SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE

Revision Date: September 19, 2006

LC898300XA. Functions Automatic adjustment to the individual resonance frequency Automatic brake function Initial drive frequency adjustment function

AP KHz, 2A PWM BUCK DC/DC CONVERTER. Description. Pin Assignments V IN. Applications. Features. (Top View) GND GND. Output AP1509 GND GND

Allen-Bradley/Rockwell

INTMOD485-LH Protocol Converter

Using Xbee in Serial Communication

USB to RS232 Adapter User s Manual

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description

MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual

TECHNICAL NOTE 7-1. ARCNET Cable Length vs. Number of Nodes for the HYC9088 in Coaxial Bus Topology By: Daniel Kilcourse May 1991.

Sierra Dual 24 Volt Brushless DC Motor Controller Product Specification

OPERATING INSTRUCTIONS Model ST-888 DTMF ANI/ENI Display Decoder

GSM Interfacing Board

Lab Experiment 1: The LPC 2148 Education Board

Eliminate Risk of Contention and Data Corruption in RS-485 Communications

Atmel AVR1017: XMEGA - USB Hardware Design Recommendations. 8-bit Atmel Microcontrollers. Application Note. Features.

KAB-ADAPT-LVDStoTTL. Document Revision 1.0

Single Port T1/E1 Tap

Temp. & humidity Transmitter Instructions

Hi5. HD-SDI/SDI To HDMI Video and Audio Converter User Manual. December 17, 2008 P/N For Hi5 Serial Number or Later

Microstep Driver Manual Version 6/13/2006

Ash Capture Control User Guide

DVI to Analog Converter

Data Cables. Schmitt TTL LABORATORY ELECTRONICS II

Current Loop Application Note 1495

BitBlaster Serial Download Cable

Serial Communications

Harris IRT Enterprises Digital Resistance Tester Model XR

Signal Manager Installation and Operation Manual

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

Measuring Resistance Using Digital I/O

LB1836M. Specifications. Monolithic Digital IC Low-Saturation Bidirectional Motor Driver for Low-Voltage Drive. Absolute Maximum Ratings at Ta = 25 C

ULN2801A, ULN2802A, ULN2803A, ULN2804A

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

TTL-232R-3V3 USB to TTL Serial Converter Cable

DISCONTINUED. AtlasScientific. as of 10/21/13. E.C. Circuit. Biology Technology. Features

CP2110-EK CP2110 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup

ICS514 LOCO PLL CLOCK GENERATOR. Description. Features. Block Diagram DATASHEET

SyncLink GT2/GT4 Serial Adapter

User Manual IC-485AI

MFRD52x. Mifare Contactless Smart Card Reader Reference Design. Document information

RC2200DK Demonstration Kit User Manual

Using the RS232 serial evaluation boards on a USB port

PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram

SEC 4100 SYSTEM MONITOR Programmable Serial Interface Card Series 2

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

PCMCIA 1 Port RS EDITION OCTOBER 1999

Knowledge Base Article. Integrating ISONAS Access Control System with TagMaster LR-series RFID Readers

The Answer to the 14 Most Frequently Asked Modbus Questions

LDG DTS-4/4R Desktop Coaxial Switch / Remote

NortechCommander Software Operating Manual MAN R6

Switch board datasheet EB

USB I/O CONTROL BOX 8 relays, 8 digital I/O lines and 8 HV inputs

KTA-223 Arduino Compatible Relay Controller

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

AT88CK490 Evaluation Kit

USB to RS-422/485 Serial Adapter (ID-SC0911-S1/SC0A11-S1) User s Manual

Designing VM2 Application Boards

DATASHEET. ADAM Arduino Display Adaptor Module. Arduino Compatible Shield P/N: 4Display-Shield-FT843 For the 4D Systems 4DLCD-FT843 Display

Testing PCI/ISA & PCMCIA Serial Cards

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

USER MANUAL. Kramer Electronics, Ltd. Models:

PICNet 1. PICNet 1 PIC18 Network & SD/MMC Development Board. Features. Applications. Description

ETRX3USB ETRX3USB-LRS ETRX3USB+8M ETRX3USB-LRS+8M PRODUCT MANUAL

Transcription:

EDE1400 Serial to Parallel-Printer Interface IC EDE1400 Printer STROBE Line 1 STROBE BUSY 18 Printer BUSY Line Serial Data Input 2 Serial In Flow 17 Hardware Handshaking (PC Only) Connect to +5V DC 3 +5V OSC1 16 Oscillator Connection Connect to +5V DC 4 +5V OSC2 15 Oscillator Connection Digital Ground 5 GND +5V 14 Connect to +5V DC Printer Data 0 6 D0 D7 13 Printer Data 7 Printer Data 1 7 D1 D6 12 Printer Data 6 Printer Data 2 8 D2 D5 11 Printer Data 5 Printer Data 3 9 D3 D4 10 Printer Data 4 The EDE1400 Serial to Parallel-Printer (Centronics) converter IC is designed to allow printing on most parallel-interface printers via microcontrollers and BASIC Stamps. It allows such devices the ability to create hard-copy output of data or status without the intervention of a PC and without the I/O or timing demands of the printer's parallel interface. Typical applications include data logging, status reports, parameter graphing, etc. Data is written to the EDE1400 over a single serial data wire at 2400 Baud. The EDE1400 generates the appropriate printer control signals as well as monitors printer status to cause the incoming serial stream to be printed on the parallel printer, thus allowing designers the ability to use the less-expensive and more readily available parallel-type printers as opposed to the more costly serial-input printers. The EDE1400 can also be used with most PC's, allowing data to be sent to most parallel printers over a single serial wire; hardware handshaking signals are also generated by the EDE1400 to allow it to communicate properly with the PC. Connection to most microcontrollers, stamps, or microprocessors can be made using a single data wire, without any type of voltage level conversion. Some of the special features of the EDE1400 are as follows: Directly receives RS-232 data from microcontrollers or Stamps Single-chip design is ideal for embedded designs Prints any ASCII character on most Centronics/Parallel type printers Monitors printer status for reliable operation Allows printed data to be sent over a single wire Internal watchdog timer allows for trouble-free operation Operates from single +5V supply 2400 Baud serial input data rate (2400 N-8-1) Available in 18 pin DIP or SOIC packages Copyright 1997 E-Lab Digital Engineering, Inc. All Rights Reserved. Page 1

PIN DEFINITIONS Printer Connection Pins STROBE (Pin 1):... Printer STROBE Line; pin 1 on parallel printer cable BUSY (Pin 18):... Printer BUSY Line; pin 11 on parallel printer cable D0 (Pin 6):... Printer Data 0 Line; pin 2 on parallel printer cable D1 (Pin 7):... Printer Data 1 Line; pin 3 on parallel printer cable D2 (Pin 8):... Printer Data 2 Line; pin 4 on parallel printer cable D3 (Pin 9):... Printer Data 3 Line; pin 5 on parallel printer cable D4 (Pin 10):... Printer Data 4 Line; pin 6 on parallel printer cable D5 (Pin 11):... Printer Data 5 Line; pin 7 on parallel printer cable D6 (Pin 12):... Printer Data 6 Line; pin 8 on parallel printer cable D7 (Pin 13):... Printer Data 7 Line; pin 9 on parallel printer cable GND (Pin 5):... Printer Ground Line; pin 18 on parallel printer cable EDE700 Control & Data Pins Serial Input (Pin 2):... Serial Data Input Flow Control (Pin 17):... Hardware Handshaking (Only for PC interfacing) Clock/ Power Pins OSC1,OSC2 (Pin 16, Pin 15):... 4 MHz Resonator Connections +5V Power (Pin 14, Pin 4, Pin 3):... Connect to +5V DC GND (Pin 5):... Connect to 0 VDC (GND) OVERVIEW OF USE Operation of the EDE1400 is fairly straightforward. Text to be printed is sent serially at 2400 Baud to the EDE1400. The EDE1400 takes care of the entire printer interface protocol. For instance, printing the text "Hello World!" on your printer via the EDE1400 is done by sending the ASCII string 'Hello World' at 2400 Baud, no parity, 8 data bits, and one stop bit (N-8-1, the most popular serial format for RS-232). The text is not actually printed on the printer until the Carriage Return character ($0D Hex, 13 Decimal) is sent. In addition, the Line Feed character ($0A Hex, 10 Decimal) needs to be sent after each line of text to cause the printer to advance one row. The EDE1400 requires a 4MHz resonator or crystal to operate, as illustrated in the schematic in Figure One. Serial data coming from a stamp of microcontroller can be connected directly to the Copyright 1997 E-Lab Digital Engineering, Inc. All Rights Reserved. Page 2

EDE1400 using only a wire; data from a PC must first go through a RS232 to TTL voltage-level converter such as the MAX232. Ordinarily the "Flow" pin (Pin 17) is left unconnected; this pin is used only when connecting the EDE1400 to a PC. It provides a hardware handshaking signal. This signal is not necessary in ordinary asynchronous serial communication. CONNECTION TO PRINTER The EDE1400 requires an 11-wire connection to the printer. Eight of these are data lines, D0 through D7. The other three are the STROBE line, the BUSY line, and Ground. The following table illustrates the interface between the EDE1400 and the parallel printer's Centronics port: Signal Name EDE1400 Pin # D-25 Cable Pin # Connector on Printer D0 Pin 6 Pin 2 Pin 2 D1 Pin 7 Pin 3 Pin 3 D2 Pin 8 Pin 4 Pin 4 D3 Pin 9 Pin 5 Pin 5 D4 Pin 10 Pin 6 Pin 6 D5 Pin 11 Pin 7 Pin 7 D6 Pin 12 Pin 8 Pin 8 D7 Pin 13 Pin 9 Pin 9 STROBE Pin 1 Pin 1 Pin 1 BUSY Pin 18 Pin 11 Pin 11 GND Pin 5 Pins 18-25 Pins 19-30,33 Table One: EDE1400 Connection to Printer Only one Ground (GND) pin needs to be connected from the EDE1400 to the printer. All other pins from the printer that are not shown in this table may be left unconnected. USE OF THE EDE1400 WITH A BASIC STAMP The schematic on the following page illustrates the connection of a BASIC Stamp I to a printer using the EDE1400: Copyright 1997 E-Lab Digital Engineering, Inc. All Rights Reserved. Page 3

Figure One: Connection to BASIC Stamp The following program, written for the BASIC Stamp I, prints the text "This text is from the Stamp I" on the printer, then advances one line and prints the numbers one through nine. serout 7,T2400,("This text is from the Stamp I") serout 7,T2400,(10) : REM Carriage Return serout 7,T2400,(13) : REM Line Feed for b7 = 48 to 57 : REM ASCII 0 through 9 serout 7,T2400,(b7) next b7 serout 7,T2400,(10) : REM Carriage Return If everything is connected properly, you should see the following text on the printer's paper: This text is from the Stamp I 0123456789 Note: If garbled characters appear on the printer, connect a 4.7K Ohm resistor from the serial line to Vcc (+5V). Also, the wires from the EDE1400 to the printer should not exceed 15 feet; however if shielded cable is used, this length may be extended. Copyright 1997 E-Lab Digital Engineering, Inc. All Rights Reserved. Page 4

USE OF THE EDE1400 WITH A PC The EDE1400 can also be used with a PC, causing data sent out the PC serial port to be printed on a parallel printer. This is convenient for extending the distance from printer to PC, testing the EDE1400-printer interface in design projects, etc. The EDE1400 should work with most types of printers, but will, of course, not provide the full range of functions gained when connecting the printer to a PC using the traditional parallel port interface (e.g. paper out, etc.) Serial data from a PC is a true RS-232 voltage levels (-15VDC to +15VDC) and must, therefore, be changed to TTL-level signals. This can be accomplished by the use of a MAX232 voltage level converter or similar device, as illustrated in Figure Two. When writing to the EDE1400 from a terminal program, custom software, or another program that does not require hardware flow control, you will need only to connect the serial data output pin from the PC to the serial data input pin on the EDE1400 (as well as connecting printer Ground) to print on the printer. However, when printing from DOS you will also need to connect the EDE1400's hardware handshaking pin to the PC. This TTL level signal must first be sent through a TTL to RS-232 voltage level converter IC before going back to the PC. Fortunately, one MAX232 IC or similar device contains the necessary drivers to do both the incoming and outgoing conversions in one chip. When using the hardware handshaking, connect the 'Flow' pin (Pin 17) of the EDE1400 to both the PC's CTS (Clear to Send) and DSR (Data Set Ready) inputs. The following table illustrates the RS-232 pins required for both a 9-pin and a 25- pin connector: Signal Name 9-Pin D Connector 25-Pin D Connector Ground Pin 5 Pin 7 Serial Transmit Pin 3 Pin 2 CTS Pin 8 Pin 5 DSR Pin 6 Pin 6 Table Two: RS-232 Pin Connections Note: The CTS and DSR pins are only necessary when the host requires that hardware flow control be used. Most hosts, such and stamps, microcontrollers, and microprocessors, do not require the use of hardware flow control; in these cases the EDE1400's 'Flow' pin would be left unconnected. The schematic in Figure Two illustrates the connection of a parallel printer to a PC via the EDE1400. To print to is through DOS, the following command must first be issued to set serial communications port properly (COM1 is used in this case): MODE COM1 2400 N 8 1 This instructs DOS to set the parameters of COM1 to 2400 Baud, no parity, 8 data bits, and one stop bit. To print a text file on the printer from DOS, you would type: COPY textfile.txt COM1: Copying the entire directory to the printer would be accomplished with: DIR > COM1: To re-route all output going to the LPT1: port (the standard parallel printer port) to the serial port (COM1), type: MODE LPT1: = COM1: Copyright 1997 E-Lab Digital Engineering, Inc. All Rights Reserved. Page 5

The following schematic illustrates the connection of a PC to a parallel printer via the EDE1400. Notice that a MAX232 Voltage level converter IC is used to provide the interface between the EDE1400 and the PC. Figure Two: Connection to PC EDE1400 SPECIAL POWER CONSIDERATIONS If your application allows the printer to remain powered while the host system is powered down, the EDE1400 will remain powered from leakage current coming from the printer's data and control lines (which it holds high continually). This may cause garbage characters to be printed when the host is again powered up due to noise on the data line. If this is a problem in your application, it can be remedied by supplying power to the EDE1400 through a diode such as the 1N4004. In parallel with this should be a 220 Ohm, 1/8 watt resistor. The diode will allow power to flow to the EDE1400 from the host when it is powered without allowing power to return to the host system from the printer when the printer is on and the host system is powered down. The resistor is necessary to ensure that the EDE1400 will not stay powered up and operative when only the printer is powered. Figure Three: Alternate Power Supply Circuit Note: You might also choose to place a 4.7K pull-up resistor on the serial data line to ensure that no data is printed on the printer due to noise on the serial line. Copyright 1997 E-Lab Digital Engineering, Inc. All Rights Reserved. Page 6

Although we strive to maintain a high degree of technical accuracy, this document may contain typographical errors or other inaccuracies. We reserve the right to correct any inaccuracy in future editions of this document without notice. This document and examples contained herein are provided 'As Is' without warranty of any kind expressed or implied. This document is to be used for informational purposes only and may not be duplicated for commercial purposes other than by distributors authorized by E-Lab. ABSOLUTE MAXIMUM RATINGS Oscillator frequency... 4 MHz Supply Voltage... 6.25V Ambient temperature under bias... -55 C to +125 C Max. current sinked by output pin... 25mA Max. current sourced by output pin... 25mA STANDARD OPERATING CONDITIONS Supply voltage... 3.0V to 5.5V Operating temperature... 0 C to +70 C The EDE1400 IC is implemented as firmware on a PIC16C54A microcontroller, manufactured by Microchip Technology, Inc. For a more comprehensive technical summary of this device, please refer to the PIC16C54A datasheet (accessible from the E-Lab web site). IMPORTANT NOTICE E-LAB Digital Engineering, Inc. (E-LAB), reserves the right to change products or specifications without notice. Customers are advised to obtain the latest versions of product specifications, which should be considered when evaluating a product s appropriateness for a particular use. THIS PRODUCT IS WARRANTED TO COMPLY WITH E-LAB S SPECIFICATION SHEET AT THE TIME OF DELIVERY. BY USING THIS PRODUCT, CUSTOMER AGREES THAT IN NO EVENT SHALL E-LAB BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES AS A RESULT OF THE PERFORMANCE, OR FAILURE TO PERFORM, OF THIS PRODUCT. E-LAB MAKES NO OTHER WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. E-LAB s LIABILITY IS FOR A PERIOD NO GREATER THAN 90 DAYS FROM DATE OF SHIPMENT BY E-LAB AND IS LIMITED TO REPLACEMENT OF DEFECTIVE PRODUCT. This warranty covers only defects arising under normal use and not malfunctions resulting from misuse, abuse, modification, or repairs by anyone other than E-LAB. E-LAB S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT OF E-LAB. Life support devices or systems are those which are intended to support or sustain life and whose failure to perform can be reasonably expected to result in a significant injury or death to the user. Critical components are those whose failure to perform can be reasonably expected to cause failure of a life support device or system or affect its safety or effectiveness. COPYRIGHT NOTICE This product may not be duplicated. E-LAB Digital Engineering, Inc. holds all copyrights on firmware, with all rights reserved. Unauthorized duplication of this device may be subject to penalty under state and/ or federal law. EDE700 and the E-LAB logo are trademarks of E-LAB Digital Engineering, Inc. All other trademarks and registered trademarks are property of their respective owners. CONTACTING US We are continually updating our product line. Please contact us for our latest product information. E-LAB Digital Engineering, Inc. 1600 N. 291 Hwy. Ste. 330 P.O. Box 520436 Independence, MO 64052-0436 Telephone: (816) 257-9954 FAX: (816) 257-9945 Internet: www.elabinc.com E-Mail: support@elabinc.com Copyright 1997 E-Lab Digital Engineering, Inc. All Rights Reserved. Page 7