H Single Chip Bar Code Decode IC Technical Data HBCR-1610 HBCR-1611 HBCR-1612 Features * Supports Five Industry Standard Bar Code Symbologies * Automatic Code Recognition * Choice of Parallel or Full Duplex Serial ASCII Interface * Programmable via Escape Sequences or Pin Strapping * CMOS * Through Hole and Surface Mount Packages * Audio and Visual Feedback Control Description The Hewlett-Packard Single Chip Bar Code Decoder IC offers flexible bar code decoding that is designed to give OEMs the ability to address a growing number of industry segments and applications. Flexibility is made possible through firmware that allows the IC to automatically recognize and decode the most popular bar code symbologies. User implementation is easy since only a few supporting components are required. The HBCR-1610 series decodes the most popular bar code symbologies used in applications in government, retail, industrial and medical markets. The IC 5965-5950E automatically discriminates and decodes the following symbologies: * Code 39 (Standard or Extended) * Interleaved 2 of 5 * UPC A, E0, E1 * EAN/JAN 8, 13 * Codabar * Code 128 All bar codes may be scanned bidirectionally except for UPC/ EAN/JAN bar codes with supplemental digits, which must be scanned so that the supplemental digits are scanned last. Scanner Input The HBCR-1610 decode ICs are designed to accept input from hand held digital scanners and slot readers. The maximum scan speed is 30 ips (73 cm/s). Data Communications The serial port supports a variety of baud rates, parity, and stop bits as described in Table 5. The IC has a "Single Read Mode" which allows the application program to stop data input until a "Next Read" command has been received. This allows the host computer to process data transmissions before enabling subsequent reads. Control of data transmission is available using the standard XON/XOFF (D1/ D3) handshake. The parallel port is accomplished via an external 74HCT646 (octal bus transceiver) or two 74HCT574s (octal latches). There are handshake lines for both data and commands. Feedback Features Both audible and visual feedback are possible with the HBCR-1610 series. In both cases, the feedback outputs from the IC should be buffered before driving the transducer. An LED or beeper connected to the IC is either controlled directly by the IC, with signals generated by successful decodes, or controlled by the host system. The tone of the beeper can be configured to one of 16 tones, or can be silenced. 4-37 Power Requirements The decoder IC is operated from a +5 volt DC power supply. The maximum current draw is 24 mA. The maximum power supply ripple voltage should be less than 100 mV, peak-to-peak. Table 1. Recommended Operating Conditions Idle Mode The IC automatically reduces power consumption whenever there is no scanning or decoding activity, or when there is no activity on the I/O port. See Table 4. Notes: 1. Maximum power supply ripple of 100 mV peak-to-peak. 2. The IC can use either an 11.059 or a 16.000 MHz crystal or ceramic resonator. The FRQ pin selects the frequency that matches the oscillator. Manual The HBCR-1610 Series Users Manual (HBCR-1697) covers the following topics: * Specifications and Timing Diagrams * Pin Definitions and Schematics * General Scanning Tips * Configuration and Operation * Escape Sequence Programming * Data Output Formats * Sample Bar Codes * I/O and Pacing Characteristics Parameter Supply Voltage Ambient Temperature Oscillator Frequency Symbol Minimum Maximum VCC 4.5 5.5 TA 0 +70 FOSC DC 16.000 Units Notes V 1 C MHz 2 Table 2. Absolute Maximum Ratings Parameter Storage Temperature Supply Voltage Pin Voltage Symbol TS Minimum Maximum -65 +150 VCC VIN -0.5 -0.5 +7.0 VCC + 0.5 Units Notes C V V 3 Note: 3. Voltage on any pin with respect to ground. Table 3. Ordering Information Part Number HBCR-1610 HBCR-1611 HBCR-1612 HBCR-1697 Option A01 Option B01 Description CMOS, 40 pin DIP, bulk shipment, no manual CMOS, 44 pin PLCC, bulk shipment, no manual CMOS, 40 pin QFP, bulk shipment, no manual HBCR-1610 Series Users Manual IC individually bagged, no manual IC individually boxed with manual and data sheet IC Configuration The default configuration is set when the IC powers up or when a Hard Reset command is received. Default configuration of many of the options is dependent on the logic states of IC pins, as shown in Table 5. A complete description of the pins and all possible configurations is in the Users Manual. More complete and flexible configuration is achieved using escape sequence commands. There are two pins that cause significant changes in the IC operation. 4-38 FRQ Pin The FRQ pin is used to tell the IC what frequency oscillator is attached to the IC. Using the higher frequency allows greater maximum scan speeds, but causes the IC to draw slightly more supply current. If the state of the FRQ pin does not match the actual oscillator, beeper tones, LED flash length, parallel port timing, and serial port baud rates are adversely affected. FRQ 0 1 Oscillator Frequency 16.000 MHz 11.059 MHz IOM Pin The IOM pin selects between the serial and parallel I/O mode of the IC. Depending on the state of the IOM pin, definitions of several configuration pins change or move to new positions. IOM 0 1 I/O Mode Parallel Serial Escape Sequences Table 7. Escape Sequences The following set of escape sequences is used to control the IC and change its default configuration. Note that all configuration changes will be lost after a Hard Reset, or after power up. Detailed information on how to formulate and use escape sequences is given in the Users Manual. Escape Sequence EC - y b EC - y d EC E EC - y f EC - y g EC - y h EC - y j EC - y k EC - y l EC - y m EC - y O EC - y q EC - y s EC - y t EC - y w Function Good Read Beep Tone Serial Intercharacter Delay Hard Reset Bar Code Symbology Selection Check Character Options Decoding Options Single Read Mode Single Read Control LED Control Interleaved 2 of 5 Length Trailer Selection Code ID Characters Status Request Sound Tone Scanner Enable Table 4. DC Characteristics HBCR-1610, 1611, 1612 (TA = 0 C to +70 C, VCC = 4.5 V to 5.5 V, VSS = 0 V) Symbol Parameter 1610 Pins 1611 Pins VIL Input Low all all Voltage VIH Input High except except Voltage 9, 19 10, 21 VIH1 Input High 9, 19 10, 21 Voltage VOL Output Low 1-8, 10-17, 2-9, 11, Voltage 21-28 13-19, 24-31 VOL1 Output Low 32-39 36-43 Voltage VOH Output High 1-8, 10-17, 2-9, 11, 21-28 Voltage 13-19, 24-31 VOH1 IIL ILI RRST ICC ICC Output High Voltage 32-39 36-43 1612 Pins all Min. -0.5 except 4, 15 4, 15 0.2 VCC + 0.9 0.7 VCC 1-3, 5, 7-13 18-25, 40, 44 30-37 1-3, 5, 7-13 18-25, 40-44 30-37 Input Low 1-8, 10-17, 2-9, 11, 1-3, 5, 7-13, Current 21-28 13-19, 24-31 18-25, 40-44 Input 32-39 36-43 30-37 Leakage Current Pulldown 9 10 4 Resistor Supply 40 44 38 Current 11.059 MHz Supply 40 44 38 Current 16.000 MHz Max. Units 0.2 VCC V - 0.1 VCC V + 0.5 VCC V + 0.5 0.45 V IOL = 1.6 mA 0.45 V IOL = 3.2 mA -50 V V V V V V A IOH = -60 A IOH = -25 A IOH = -10 A IOH = -400 A IOH = -150 A IOH = -40 A VIN = 0.45 V 10 A VSS VIN VCC 150 K 18 mA Scanning 4 mA Idle 24 mA Scanning 6 mA Idle 2.4 0.75 VCC 0.9 VCC 2.4 0.75 VCC 0.9 VCC 50 Test Conditions 4-39 Table 5. Summary of Features and Configurations - HBCR-1610 Series Feature Bar Code Symbology Interleaved 2 of 5 Label Length Check Character Verification Check Character Transmission Extended Code 39 Enable UPC/EAN Decoding Options Function or Value When a symbology is enabled, bar codes of that type can be read, assuming other decoding options are satisfied. Length variable from 4 to 32, or specific lengths from 2 to 32, or 6 or 14 only For Code 39 For Interleaved 2 of 5 For Code 128 For UPC/EAN For Code 39 and Interleaved 2 of 5 For UPC/EAN For Code 128 Converts paired Code 39 data characters to Full ASCII characters UPC vs. UPC/EAN UPC E expansion to UPC A UPC E Version 1 autodiscrimination UPC/EAN supplemental digits Codabar Start/ Stop Transmission Baud Rates UPC/EAN check digit UPC/EAN output format Transmits or suppresses Codabar start/stop characters 1200, 2400, 4800, 9600 Parity 0s, 1s, even, odd Stop Bits XON/XOFF Pacing Transmitted Character Delay Enable Trailer Selection 1 or 2 Controls data flow on either port Controls 10 millisecond intercharacter delay on the serial port Single Read Mode Code ID Character Enable Good Read Beep Tone Selection LED Control Controls when labels can be read Controls the transmission of the Code ID characters before decoded data Controls the tone sounded when a bar code label is read Controls LED function: flash or turn off after a label is read Not configurable. 4-40 String of characters appended to the decoded message (4 maximum) Default Setting Serial Mode Parallel Mode Depends on pins: C39, I25, UPC All codes enabled CDB and C28. Variable, 4-32 Variable, 4-32 Depends on pin C3C Depends on pin I2C Enabled Enabled Depends on pin CST Enabled Enabled Depends on pin EX3 Depends on pin C3C Depends on pin I2C Enabled Enabled Depends on pin CST Enabled Enabled Depends on pin EX3 UPC/EAN Depends on pin UEE Depends on pin UE1 Depends on pins US2 and US5 Transmitted Standard Depends on pin CSS UPC/EAN Depends on pin UEE Depends on pin UE1 Disabled Transmitted Standard Depends on pin CSS Depends on pins BR0 and BR1 Depends on pins PT0 and PT1 Depends on pin STB Enabled Depends on pin ICD - Enabled - CR, CR LF, HT, CR - 0s or none Depends on pins TR0 and TR1 Disabled Disabled Disabled Disabled High or low pitch Depends on pin GRB Auto Flash Mode High or low pitch Depends on pin GRB Auto Flash Mode Table 6. Summary of Commands - HBCR-1610 Series Feature Scanner Enable Hard Reset Self Test Failure Message Status Request Sound Tone Description When enabled, scans from a wand or a slot reader are decoded; otherwise, they are ignored. Resets the IC as though it were just powered up. An error message is transmitted over the serial port at 9600 baud at power up if the IC self test fails. Returns the version number of the software. Causes the IC to sound a tone of the selected pitch for 120 milliseconds. Stand Alone Decoder (Serial Mode) +5 V 8 x 10 K C39 I25 UPC CDB C28 U2S U5S CSS BR0 BR1 STB EX3 C3C I2C CST GRB ICD UEE UE1 FRQ PT0 PT1 TR0 TR1 +5 V 150 2N5088 VCC EA IOM 500 RST 1N4148 +5 V 10 1N4148 2N2907 BPR 10 K 0.047 F 10 9 11 12 1 TxD RxD RTS CTS C1 +5 V 10 K SDI +5 V 10 F LED 47 K +5 V PIEZO BEEPER 10 mH T2IN T2OUT R2OUT R2IN T1IN T1OUT R1OUT R1IN C1+ V+ 7 8 14 13 2 3 4 C1C2+ VCC 16 V- 6 5 C2- GND 15 XTAL 2 TxD RxD RTS CTS C3 +5 V +5 V MAX232 0 V LT1081 or LT1181 C4 C2 SDI XTAL 1 NOTES: 1. USE THE CORRECT CAPACITOR FOR EITHER A CRYSTAL OR A CERAMIC RESONATOR. SEE USERS MANUAL, PAGE 2-16. 2. SEE THE PIN DIAGRAMS FOR THE PINOUT OF THE DECODE IC. PIN NUMBERS VARY WITH PACKAGE. 3. VOLUME OF THE BEEPER CIRCUIT IS ADJUSTABLE BY VARYING THE VALUE OF THE 500 POT. 4. THE EIGHT PULL UP RESISTORS SHOWN IN THE SCHEMATIC ARE ONLY NEEDED IF A DIP SWITCH IS USED. IF THE PINS ARE STRAPPED DIRECTLY TO GROUND OR VCC, THE RESISTORS ARE NOT NEEDED. 5. THE LOGIC LEVELS OF THE SDI SCANNER INPUT IS AS FOLLOWS: BLACK = HIGH, WHITE = LOW. SERIAL LEVEL CONVERTER GND HBCR-161X 4-41 Surface Mount IC Drying Whenever Vapor Phase or Infrared Reflow technologies are used to mount either of the surface mount packages, there is a possibility that previously absorbed moisture, heated very rapidly to the reflow temperatures, may cause the package to crack from internal stresses. There is a reliability concern that moisture may then enter the package over a period of time, and metal corrosion may take place, degrading the IC performance. To reduce the amount of absorbed moisture and prevent cracking, all of the surface mount ICs should undergo one of the following baking cycles. The parts MUST then be mounted within 48 hours. If the parts are not mounted within 48 hours, they must be rebaked. The total number of baking cycles must not exceed two (2). If the ICs are baked more than twice, Hewlett-Packard cannot guarantee the performance and reliability of the parts. Neither bake cycle can be performed in the standard shipping tubes. The ICs must be baked in an ESD safe, mechanically stable container, such as an aluminum tube or pan. Cycle A B Temperature 125C 60C Time 24 Hours 96 Hours Note: Cycle B must be done in an atmosphere of <5% relative humidity air or nitrogen. Stand Alone Decoder (Parallel Mode) EX3 C3C I2C CST UEE UE1 FRQ CSS GRB U5S U2S VCC EA +5 V +5 V 500 10 F RST +5 V 10 1N4148 1N4148 2N2907 10 K BPR 0.047 F +5 V 150 BEEPER CRD CDY DWR DDY RTS 47 K 2N5088 1 CAB 23 CBA 3 DIR 21 G SDI XTAL 1 PP7 PP6 PP5 PP4 PP3 PP2 PP1 PP0 11 10 9 8 7 6 5 4 XTAL 2 IOM GND 10 K SDI CRD CDY DWR DDY RTS WR RD PDR PGB LED +5 V HBCR-161X 4-42 PIEZO 10 mH A8 A7 A6 A5 A4 A3 A2 A1 VCC SBA SAB VSS 24 22 2 12 +5 V B8 B7 B6 B5 B4 B3 B2 B1 13 14 15 16 17 18 19 20 D8 D7 D6 D5 D4 D3 D2 D1 74HCT646 NOTES: 1. USE THE CORRECT CAPACITOR FOR EITHER A CRYSTAL OR A CERAMIC RESONATOR. SEE THE USERS MANUAL. 2. SEE PIN DIAGRAMS FOR THE PINOUT OF THE DECODE IC. PIN NUMBERS VARY WITH PACKAGE. 3. VOLUME OF THE BEEPER CIRCUIT IS ADJUSTABLE BY VARYING THE VALUE OF THE 500 POT. 4. AN ALTERNATIVE CIRCUIT USING TWO 74HCT574 OCTAL LATCHES INSTEAD OF THE 74HCT646 IS IN THE USERS MANUAL. 5. THE LOGIC LEVELS OF THE SDI SCANNER INPUT IS AS FOLLOWS: BLACK = HIGH, WHITE = LOW. Parallel I/O Handshake COMMANDS RECEIVED BY THE IC CDY 1 CRD PROTOCOL 4 2 D1-8 6 3 5 7 DATA TRANSMITTED FROM THE IC RTS DDY D1-8 DWR PROTOCOL 1 2 5 3 7 4 1. THE HOST INDICATES THAT A COMMAND IS PENDING BY LOWERING CDY. 2. THE IC INDICATES THAT IT IS READY FOR A COMMAND BY LOWERING CRD. 3. THE HOST OUTPUTS THE COMMAND ONTO THE DATA BUS. 4. THE HOST INDICATES THAT THE DATA IS STABLE BY RAISING CDY. 5. THE IC READS THE COMMAND FROM THE BUS. 6. THE IC INDICATES THAT THE COMMAND WAS ACCEPTED BY RAISING CRD. 7. THE HOST REMOVES THE DATA FROM THE DATA BUS. 6 1. THE IC INDICATES DATA IS READY TO BE TRANSMITTED BY LOWERING RTS; RTS STAYS LOW UNTIL THE LAST BYTE HAS BEEN TRANSMITTED. 2. THE HOST SIGNALS THE IC THAT IT IS READY FOR DATA BY LOWERING DDY. 3. THE IC OUTPUTS DATA ONTO THE BUS. 4. THE IC INDICATES THAT THE DATA IS STABLE BY LOWERING DWR. 5. THE HOST ACKNOWLEDGES THAT THE DATA IS RECEIVED BY RAISING DDY. 6. THE IC INDICATES THE END OF THE OUTPUT CYCLE BY RAISING DWR. 7. THE IC REMOVES DATA FROM THE BUS. 4-43 Serial Pinout 5 36 CDB EX3 7 39 C28 EX3 6 35 C28 C3C 8 38 U2S C3C 7 34 U2S I2C 9 37 U5S I2C 8 33 U5S RST 10 36 CSS RST 9 32 CSS RxD 11 35 EA + 5 V RxD 10 TxD 11 5 4 3 2 1 44 43 42 CDB RTS 6 UPC UPC I25 I25 37 C39 38 4 VCC 3 CTS NC STB BR0 C39 BR1 VCC 39 STB 40 2 CTS 1 BR1 RTS BR0 41 40 1611 31 EA + 5 V TxD 12 34 NC 30 NC NC 13 33 NC SDI 14 32 NC 1610 SDI 12 29 NC CST 13 28 IOM + 5 V CST 15 31 IOM + 5 V TR1 LED 16 30 TR1 BPR 17 29 TR0 LED 14 BPR 27 26 TR0 CDB UPC I25 C39 35 34 EX3 1 33 C28 C3C 2 32 U2S I2C 3 31 U5S RST 4 30 CSS RxD 5 29 EA + 5 V TxD 6 28 NC NC 7 27 NC SDI 8 26 NC CST 9 25 IOM + 5 V LED 10 24 TR1 BPR 11 23 TR0 1612 PT1 PT0 UE1 FRQ UEE NC VSS XTAL 1 XTAL 2 ICD 12 13 14 15 16 17 18 19 20 21 22 GRB PT1 PT0 FRQ UE1 PIN MNEMONICS 44 43 42 41 40 39 38 37 36 4-44 UEE UE1 NC UEE 21 VSS 22 20 XTAL 1 19 VSS ICD XTAL 1 XTAL 2 FRQ VCC 23 NC 18 BR0 PT0 XTAL 2 BR1 PT1 24 STB 25 17 CTS 16 ICD RTS GRB 18 19 20 21 22 23 24 25 26 27 28 GRB 15 RxD TxD BR0-BR1 PT0-PT1 TR0-TR1 CTS RTS C39 EX3 I25 UPC CDB C28 UEE UE1 U2S U5S CSS STB C3C I2C CST SDI IOM RST EA GRB FRQ LED BPR ICD XTAL1 XTAL2 VCC VSS RECEIVED DATA TRANSMITTED DATA BAUD RATE SELECT PARITY SELECT TRAILER CHARACTERS SELECT CLEAR TO SEND REQUEST TO SEND CODE 39 ENABLE EXTENDED CODE 39 ENABLE INTERLEAVED 2 OF 5 ENABLE UPC/EAN ENABLE CODABAR ENABLE CODE 128 ENABLE UPC E EXPANSION ENABLE UPC E VERSION 1 ENABLE UPC 2 DIGIT SUPPLEMENTALS ENABLE UPC 5 DIGIT SUPPLEMENTALS ENABLE CODABAR START/STOP CHAR. ENABLE STOP BITS SELECT CODE 39 CHECKSUM ENABLE INTERLEAVED 2 OF 5 CHECKSUM ENABLE CHECKSUM TRANSMIT ENABLE SCANNER DIGITAL INPUT I/O MODE SELECT IC RESET EXTERNAL PROGRAM MEMORY ENABLE GOOD READ BEEP TONE SELECT OSCILLATOR FREQUENCY SELECT LED CONTROL LINE BEEPER CONTROL LINE INTERCHARACTER DELAY ENABLE OSCILLATOR INPUT OSCILLATOR INPUT POWER GROUND Parallel Pinout PP2 RTS 5 36 PP3 EX3 7 39 PP4 EX3 6 35 PP4 C3C 8 38 PP5 C3C 7 34 PP5 I2C 9 37 PP6 I2C 8 33 PP6 RST 10 36 PP7 RST 9 32 PP7 PGB 11 35 EA + 5 V 34 NC PGB 10 PDR 11 12 CST LED 3 2 1 44 43 42 41 40 1611 EA + 5 V PDR 30 NC NC 13 33 NC NC SDI 14 32 NC IOM + 0 V CST 15 31 IOM + 0 V U5S LED 16 30 U5S BPR 17 29 U2S 28 27 17 24 CSS 18 23 FRQ XTAL 1 19 22 UEE VSS 20 21 UE1 GRB RD XTAL 2 CSS 18 19 20 21 22 23 24 25 26 27 28 FRQ GRB UE1 25 NC 16 UEE WR VSS U2S XTAL 1 26 XTAL 2 15 RD BPR WR 14 4 31 29 13 5 12 1610 SDI 6 PP3 37 PP2 4 PP1 DDY PP0 PP1 VCC 38 NC 3 CRD PP0 DWR CDY VCC 39 DWR 40 2 DDY 1 CDY RTS CRD 44 43 42 41 40 39 38 37 36 PP3 PP2 PP1 PP0 VCC NC CRD CDY DWR DDY RTS PIN MNEMONICS 35 34 EX3 1 33 PP4 C3C 2 32 PP5 I2C 3 31 PP6 RST 4 30 PP7 PGB 5 29 EA + 5 V PDR 6 28 NC NC 7 27 NC SDI 8 26 NC CST 9 25 IOM + 0 V LED 10 24 U5S BPR 11 23 U2S 1612 GRB CSS FRQ UE1 NC UEE VSS XTAL 1 XTAL 2 RD WR 12 13 14 15 16 17 18 19 20 21 22 PP0-PP7 DWR DDY CRD CDY RTS C3C I2C CST EX3 WR RD U2S U5S CSS PGB PDR UEE UE1 SDI IOM RST EA FRQ GRB LED BPR XTAL1 XTAL2 VCC VSS PARALLEL PORT BUS DATA WRITE HANDSHAKE READY FOR DATA HANDSHAKE COMMAND READ HANDSHAKE COMMAND READY HANDSHAKE REQUEST TO SEND CODE 39 CHECKSUM ENABLE INTERLEAVED 2 OF 5 CHECKSUM ENABLE CHECKSUM TRANSMIT ENABLE EXTENDED CODE 39 ENABLE DATA WRITE DATA READ UPC 2 DIGIT SUPPLEMENTALS ENABLE UPC 5 DIGIT SUPPLEMENTALS ENABLE CODABAR START/STOP CHAR. ENABLE TRANSCEIVER DRIVE ENABLE TRANSCEIVER DIRECTION CONTROL UPC E EXPANSION ENABLE UPC E VERSION 1 ENABLE SCANNER DIGITAL INPUT I/O MODE SELECT IC RESET EXTERNAL PROGRAM MEMORY ENABLE OSCILLATOR FREQUENCY SELECT GOOD READ BEEP TONE SELECT LED CONTROL LINE BEEPER CONTROL LINE OSCILLATOR INPUT OSCILLATOR INPUT POWER GROUND 4-45 Mechanical Specifications - Units (mm) 52.8 51.9 40 21 14.2 13.0 1 16.0 14.9 20 0.3 5.1 MIN. MAX. 0.65 MAX. 2.54 0.25 2.54 MIN. 0 ~ 15 0.6 MAX. SEATING PLANE HBCR-1610 14.50 0.40 17.7 17.2 16.7 16.2 10.50 0.30 39 29 40 23 33 28 22 34 17.7 17.2 16.7 16.2 16.0 15.0 INDEX MARK 1 0.90 0.66 6 12 44 17 1 0.80 0.10 0.51 MIN. 11 0.30 0.10 4.57 4.20 0.15 2.45 0.15 0.53 0.33 16.0 15.0 0.1 ~ 0.3 1.0 HBCR-1611 4-46 13.50 0.40 INDEX MARK 18 7 9.50 0.30 1.32 1.22 0 ~ 10 HBCR-1612