ChipFind - документация

Электронный компонент: ELM622SM

Скачать:  PDF   ZIP
ELM622
Elm Electronics Circuits for the Hobbyist
< http://www.elmelectronics.com/ >
Connection Diagram
PDIP and SOIC
(top view)
V
DD
V
SS
1
2
3
4
8
7
6
5
Infrared Remote Interpreter
The ELM622 is an interface circuit for converting
infrared control codes to an eight bit serial format.
This device is well suited to applications that only
require occasional input from humans, or where a
hidden interface is desired.
When connected to a standard infrared receiver
module, the ELM622 continually scans the data
stream for SonyTM television control codes. If
detected, the codes are retransmitted serially, with
hardware handshaking. This data can then be used
directly by logic circuits, or suitably buffered and
transmitted on a standard RS232 connection.
For convenience, some of the control codes are
translated to their ASCII equivalents before
retransmission, allowing direct display of the
common control signals on an ASCII terminal.
Many products that currently rely on a keyboard
for input can benefit from the small size and
simplicity that an ELM622 provides, and several
others are likely to benefit from the at-a-distance
control that this circuit offers.
Low power CMOS design - typically 1mA at 5V
RS232 formatted output at 9600 baud
Hardware handshaking provided
Signal received output for visual feedback
Simple interface to standard receiver modules
Works with universal TV remote transmitters
Reset output on command
High current drive outputs - up to 25 mA
Alternative to keyboard interface
Hidden security system control
Non-contact device control for safety
Home automation receiver
IRRx
LED
Reset
Tx
Description
Applications
Block Diagram
1 of 5
Features
ELM622DSA
RTS
CTS
2
3
4
6
Data
Decoder
5
Reset
Tx
RS232
Encoder
Code
Translator
99999
Detector
LED
IRRx
7
RTS
CTS
100ms
Pulse
Generator
ELM622
Elm Electronics Circuits for the Hobbyist
< http://www.elmelectronics.com/ >
Pin Descriptions
Ordering Information
These integrated circuits are available in either the 300 mil plastic DIP format, or in the 200 mil SOIC surface
mount type of package. To order, add the appropriate suffix to the part number:
300 mil Plastic DIP............................... ELM622P
200 mil SOIC..................................... ELM622SM
2 of 5
All rights reserved. Copyright 1998 Elm Electronics.
Every effort is made to verify the accuracy of information provided in this document, but no representation or warranty can be
given and no liability assumed by Elm Electronics with respect to the accuracy and/or use of any products or information
described in this document. Elm Electronics will not be responsible for any patent infringements arising from the use of these
products or information, and does not authorize or warrant the use of any Elm Electronics product in life support devices and/or
systems. Elm Electronics reserves the right to make changes to the device(s) described in this document in order to improve
reliability, function, or design.
V
DD
(pin 1)
This pin is the positive supply pin, and should
always be the most positive point in the circuit.
Internal circuitry connected to this pin is used to
provide power on reset of the microprocessor, so
an external reset signal is not required. Refer to
the Electrical Characteristics section for further
information.
Tx (pin 2)
The transmit data output. When a valid byte is
received it is retransmitted from this pin at 9600
baud, least significant bit first, with one start bit,
no parity bit, and one stop bit. The pin is normally
held at a logic high level when in the idle state,
and goes to true logic levels when transmitting
data. The output is compatible with standard
RS232 data transmission, when coupled through
appropriate buffers (transistors or interface ICs
such as the MAX232).
RTS (pin 3)
RTS is the request to send handshaking output.
When a valid byte is ready to be sent, this pin will
be brought low and will remain at that level until
the stop bit has been sent, or the send is aborted
due to a time-out.
CTS (pin 4)
This input pin is used to control the transmission
of data. A logic low level allows sending, and a
high level forces the ELM622 to wait. The system
waits no longer than about 2 seconds, however,
before discarding the byte and reverting to the
idle condition. The state of the pin is tested just
prior to sending data, and is not monitored once
data transmission begins.
IRRx (pin 5)
The output of a standard 40KHz infrared receiver
module is connected to this pin, through a series
resistor of about 5K
value. The output of such a
module is normally at a high level, and switches
to a logic low when modulated carrier is received.
LED (pin 6)
This pin provides a logic high level output when a
valid code has been received and remains at that
level until the data has been sent by the ELM622.
The output is suitable for driving an LED through
a current limiting resistor.
Reset (pin 7)
A high level 100msec wide pulse is output on this
pin when the sequence 99999 is received. This
can be used for special functions such as
resetting the system, or momentarily triggering a
control point.
V
SS
(pin 8)
Circuit common is connected to this pin. This is
the most negative point in the circuit.
ELM622DSA
Elm Electronics Circuits for the Hobbyist
< http://www.elmelectronics.com/ >
ELM622
Electrical Characteristics
Absolute Maximum Ratings
Storage Temperature....................... -65C to +150C
Ambient Temperature with
Power Applied....................................-40C to +85C
Voltage on V
DD
with respect to V
SS
............ 0 to +7.5V
Voltage on any other pin with
respect to V
SS
........................... -0.6V to (V
DD
+ 0.6V)
Note:
Stresses beyond those listed here will likely damage
the device. These values are given as a design
guideline only. The ability to operate to these levels
is neither inferred nor recommended.
3 of 5
All values are for operation at 25C and a 5V supply, unless otherwise noted. For further information, refer to note 1 below.
Characteristic
Minimum
Typical
Maximum
Conditions
Units
Supply Voltage, V
DD
4.5
5.0
5.5
V
V
DD
rate of rise
0.05
V/ms
Average Supply Current, I
DD
1.0
2.4
mA
Notes:
1. This integrated circuit is produced with a Microchip Technology Inc.'s PIC12C5XX as the core embedded
microcontroller. For further device specifications, and possibly clarification of those given, please refer to the
appropriate Microchip documentation.
2. This spec must be met in order to ensure that a correct power on reset occurs. It is quite easily achieved
using most common types of supplies, but may be violated if one uses a slowly varying supply voltage, as
may be obtained through direct connection to solar cells, or some charge pump circuits.
3. Device only. Does not include any LED or drive currents.
4. Pulse timing is internally generated, and affected by both temperature and supply voltage. Times shown are
the widest variation that can normally be expected.
5. Data is sent at this rate with eight data bits, no parity bit, and one stop bit. Process and temperature
variatons could typically result in as much as 3% error in this rate, but most UARTs would be tolerant of this.
In high reliability applications, one might use the fact that the eighth data bit is always `0' to calibrate a timing
loop to the ELM622's speed. The receiver could then compensate for variations in the data rate.
Input low voltage
V
SS
0.15 V
DD
V
Input high voltage
V
DD
V
0.85 V
DD
Output low voltage
0.6
V
Output high voltage
V
V
DD
- 0.7
Current (sink) = 8.7mA
Current (source) = 5.4mA
see note 2
ELM622DSA
Reset Output Pulse Width
100
msec
Transmit Baud Rate
baud
see notes 4 and 5
90
110
see note 4
9600
see note 3
9300
9900
Data Translation Table
4 of 5
Table 1. Data Translation Values
To allow easier interfacing with computer
equipment, some of the SonyTM control codes that
are received by the ELM622 are replaced with
their ASCII equivalents. Conversely, when keys
representing these ASCII characters are received,
the original number codes are sent.
ELM622
ELM622DSA
Elm Electronics Circuits for the Hobbyist
< http://www.elmelectronics.com/ >
Value
Key Pressed
Value
ASCII Char
Received
Are Sent As
Also, the Codes...
Received Codes
Are Transmitted As...
0
1
2
3
4
5
6
7
8
9
11
21
59
49
50
51
52
53
54
55
56
57
48
13
46
8
49
50
51
52
53
54
55
56
57
48
13
46
0
1
2
3
4
5
6
7
59
9
11
21
0
1
2
3
4
5
6
7
8
9
Enter
0
1
2
3
4
5
6
7
8
9
Carriage
Return
Decimal
Point
Power
Back
Space
Jump or
Prev
Table 1 below summarizes the code values that
are exchanged. All other codes received are re-
transmitted without modification.
Example Application
5 of 5
Figure 1. Infrared to RS232 Circuit
Figure 1 shows an example circuit using the
ELM622. Keypresses on a television remote control
transmitter are received by this circuit, interpreted, and
retransmitted to a monitoring computer.
The television remote control used is one of the low
cost universal types, set to generate SonyTM codes. This
is often the default power-up mode for most of these
remotes. Output is by way of a simple one transistor
RS232 connection, with no handshaking. The auxiliary
reset output is not used in this case, and power for the
entire circuit is provided by a 5 volt regulated supply.
Operation is straight-forward. When a button on the
remote is pressed, the serial data stream is detected by
the infrared module and passed onto the ELM622 as a
series of negative-going pulses. The data is then
decoded, and if found to contain a SonyTM control code,
is retransmitted. The type of receiver modules required
are commonly available on the market, and are
manufactured by companies such as SharpTM or
LiteOnTM. A 40KHz module is required for a SonyTM
infrared remote, although 38KHz ones have been used
successfully.
In operation, ambient light can occasionally cause
an infrared receiver's bias level to drift towards V
SS
,
possibly tripping the ELM622's Schmitt trigger input. As
the receiver output drifts high again, the Schmitt trigger
ELM622
ELM622DSA
560
4.7K
78L05
LED
+12V
0.1F
1
2
3
4
8
7
6
5
+5V
0.1F
40 KHz IR
Receiver
10K
4.7K
2N3906
1N4001
+5V
3
7
2
DB25F
Connector
Elm Electronics Circuits for the Hobbyist
< http://www.elmelectronics.com/ >
may not always reset, so that it might appear that there
is carrier present when it is not. This condition is
accounted for within the integrated circuit by
momentarily changing pin 5 to a high level output before
taking any measurements, thus reseting the trigger. The
series resistor must be used on pin 5 to protect both
circuits during this momentary high level pulse. Typically
a value of 4.7K
is sufficient.
The output of the ELM622 is shown coupled to a
monitoring computer through a simple one transistor
buffer circuit. The circuit uses the computer's idle
transmit line as a source of negative voltage, and
includes a diode for protection from backfeeds. Output
connections are made through a standard DB25 female
modem type connector with the pin numbers as shown.
This is all that is required to receive control codes
from a standard infrared remote control, and to transmit
them to a computer. At the computer, the data can be
displayed using a terminal program, used to control the
computer, or possibly used to control other devices.
Alternatively, the ELM622 could simply be connected
directly to a microcontroller, providing a very low parts
count alternative to the use of keyboards...