Documente Academic
Documente Profesional
Documente Cultură
Faculty of Engineering
CENG499A
Final Project Report
By Matthew Green
Dennis Leote
Kevin Harmon
i
Receiving the Data ------------------------------------------------ Page 14
References ----------------------------------------------------------------------------Page 17
ii
List of Tables and Figures
iii
iv
Abstract
In the human body, the heart is responsible for pumping oxygen carrying blood to the
entire body. To do this, it emits a small electrical charge that will cause the muscles
around the heart to contract in a sequential way such that the blood is pumped through
arteries to the intended tissues. If there are deficiencies or abnormalities, the individual
may be susceptible to serious health issues including cardiac arrest.
Care givers in hospitals world wide must be able to monitor these electrical charges and,
in doing so, be able to predict complications before they cause serious harm. To do this,
a device called an electrocardiogram (ECG/EKG) is used. An ECG involves placing
small pads in a triangular fashion on the patient’s chest, with the perimeter of the triangle
completely encompassing the heart (Figure 1). The lead placements are labelled
according to their location on the human body; Left Arm (LA), Right Arm (RA) and Left
Leg (LL). The corresponding waveforms are numbered using Roman numerals.
These pads are actually small leads connected back to a monitoring system that will
measure the potential voltage differences around the heart. Figure 2 depicts an ideal I-
Waveform taken from a healthy human body. When these results are displayed, the
doctors and nurses will be able to verify proper operation or predict possible
complications.
1
Objective
The main problem with the current method of monitoring a patient’s heart is very
awkward and restricting. The leads are constantly being dislodged from the patient by
the nurses, doctors, and even the patient themselves. This causes complications because
it appears to the monitoring station that the patient is going into cardiac arrest. (Figures 3
& 4 show a typical operating room with an excess of wires)
Another problem with the current system is that the mobility of the care givers is limited
due to the number of wires connecting the patient to various monitoring equipment. It is
not possible for a nurse or doctor to completely walk around the patient without having to
navigate the wires.
A solution to this would be to make the hospital utilize wireless data transmission as
much as possible to eliminate the need for wires. This process is currently being
experimented with. Currently there are various wireless applications in use in the
hospital industry. The most common are wireless pulse oxymetry, a method for
2
measuring the oxygen content in the blood. Another example is wireless temperature
sensors in which the patient swallows a small transponder that will constantly transmit
the body’s core temperature.
The objective of this project is to design a Wireless ECG Monitoring System. This
product will reliably measure the electrical activity around the heart and transmit this data
to a receiver connected to a PC. The data will then be displayed on the PC in the same
manner that the current method already does.
Project Design
This project was split into two main tasks, hardware and software. It is the responsibility
of the hardware to collect and compare the data, filter out the harmful 60 Hz signals and
transmit the data. It is the software’s responsibilities to digitize the signal, package the
data and synchronize the receiver and the transmitter.
Hardware
As mentioned above, the hardware is responsible for capturing and isolating the signal.
The hardware was divided up into stages; the power supply, instrumentation amplifiers,
operational amplifiers, filters, analog to digital converters, microcontroller, transceivers
and a MAX232. Figure 5 shows a block diagram of how the transmitter and receiver are
configured. The schematics and PCB layout are attached in Appendix A.
3
The Power Supply
To supply power to the wireless transmitter of this project, a 12 Volt battery was chosen.
Table 1 shows a list of all various components and their minimum input voltages.
Device Vmin
Instrumentation Amplifiers ± 2.3 -18 Volts
Operational Amplifiers ± 18 Volts
Microcontroller 2.0 – 5.5 Volts
MAX232 0.3 – 6 Volts
Transceiver 3 Volts
To guarantee the microcontroller received the required 5 volts, a voltage regulator was
used, which required a minimum of 7 volts.
Another issue that needed to be resolved was the DC offset. Since the typical ECG wave
will contain both positive and negative values, it was important to bias the signal such
that the ADC (analog to digital converter) would only see a level between zero and five
volts. To accomplish this, a small power supply was designed (Figure 6) using zener
diodes.
4
Instrumentation Amplifier
To measure the difference in voltage between any two points on the human body, we
used an instrumentation amplifier made by Analog Devices, called an AD620 (Data
Sheets Attached in Appendix B).
An instrumentation amplifier is a
special type of differential
amplifier that will amplify the
difference between its two inputs
(Figure 7). The gain can be set by
adjusting only one resistor, Rgain.
The resulting output will be:
R
Vout = (V2 − V1 )(1 + )
R gain
Operational Amplifiers
The signal that is being analyzed on the individual’s chest has a typical maximum value
of 1mV. To make this useful, the signal would need to be amplified to approximately
5Vpp, which equates to a gain of roughly 5000. The AD620 does offer a certain amount
of gain; however it was observed that it functioned best when the gain was kept quite
low. We therefore divided up the amplification into 2 stages. The first was done using
the AD620 and the second done using a non-inverting op-amp.
We chose the gain to be 5 for the first stage and 1000 – 2000 for the next. We included a
potentiometer in the feedback loop of the op-amp to allow for some adjustment to the
gain as necessary.
5
Filters
The line interference (the 60Hz signal from the power lines) is abundant in the ECG
signal. The human body acts like a giant antenna to this frequency, and the amplitude of
the noise is roughly the same size of the ECG signal. It is therefore very difficult to
monitor the ECG wave through the noise. Figure 9 shows a typical display of an ECG
signal if the 60 Hz noise has not been removed.
The actual signal that is measured on the human body is in the range of 1-2 mV. The
useful information is in the frequency range of 1-250 Hz, although the most important
data is below 40Hz. It is therefore desirable to filter out all of unwanted signals. To do
this some 4 stages of filtering was used. The intended result was to produce a Band Pass
Filter with the pass frequency between 1 - 40Hz.
The first stage of filtering was done prior to any amplification. It was a simple high pass
filter (HPF) that was designed using a simple RC circuit (Figure 10). This pre-filter was
designed to eliminate all of the low frequency noise. It was designed with a cut-off
frequency of 0.5 Hz.
1
f cutoff =
2πRC
To eliminate the 60 Hz signal, a 4th order low pass filter (LPF) was used. This was
designed by using a 1st order RC filter in series with a 2nd order Butterworth Filter and
finally another the 1st order RC circuit. The RC circuit (Figure 11) is very similar to the
HPF defined above. In fact the cut-off frequency is calculated the same way. These were
designed to eliminate signals above 40Hz.
6
The Butterworth Filter (Figure 12) is an active filter that uses an op-amp to help get rid of
the noise. All filters will attenuate frequencies above and below the desired cut-off
frequency. The goal is to pick a filter that will be the least damaging to the desired signal
while offering maximum filtering to the unwanted signal. The benefit of the Butterworth
is that it will have a much more accurate cut-off frequency. It will therefore allow for
more of the desired signal to get through unscathed.
1
f cutoff =
2π R1 R2 C1C 2
The filter values were chosen according to the above formulas. In practice, however,
these values were only helpful in getting us close to the desired signal. The actual values
used were found by using a trial and error method. Various values were tested until the
best signal resulted. The final values of our filters were:
7
Microcontroller
The microcontroller performed all of the decision making processes. It was responsible
for the analog to digital conversion (ADC), data packaging and transceiver
synchronization. Refer to the following section on software for more information about
this.
The microcontroller used was a PIC16F877. The main reason this microcontroller was
used was because we were most familiar with it. The main features that it has that made
it quite useful are:
Transceivers
To transmit and receive all of the data, a single chip transceiver was chosen. The
nRF24L01 by Nordic Semiconductor was used. This was chosen because of its’ wide
range of features:
8
MAX232
The final piece of hardware that was involved in the design of the wireless ECG machine
was the MAX232. This IC is used to convert TTL to RS232 and vice versa.
RS232 data will range from -5V to -15V for a logical high and +5V to +15V for a logical
low (Figure 13). The microcontroller will output data in the range of 0-5V (TTL). The
data must therefore be buffered before the two devices will be able to communicate with
one another.
The MAX232 buffers the signal in both directions allowing the microcontroller to
communicate with the PC. The data can now be passed to the PC and displayed on the
graphic user interface (GUI)
9
Software
Once the electrical potential difference between leads has been acquired, the signal must
then be converted to the digital domain and communicated to the monitor display. The
software component of the ECG monitor includes processing the signal with the PIC
16f877A microprocessor, transmitting the signal to the display using the Nordic
nRF24L01 transceiver modules and displaying the information on a PC oscilloscope
application.
The software was written in C for the microprocessor and in Basic to write the display
application. The C compiler used was Hi-Tech C Trial version from Hi-Tech Software.
The display application was designed using Visual Basic 6.0 by Microsoft.
Transmitter Module
The transmitter module is responsible for obtaining and converting the analog ECG
signal into an 8-bit digital representation. It is also responsible for formatting and
transmitting the data. The transmitter module is within the immediate proximity of the
patient being monitored. As the system diagram presented in figure 1 shows, there are
four main steps required to transmit the ECG signal.
PIC 16f877A
The amplified ECG signal is fed into the on-board ADC of the PIC. The PIC is capable of
10-bit resolution but an 8-bit digital representation provides enough accuracy and reduces
the bit-rate by half. The three analog leads each have their own ADC channel and are
sampled sequentially.
10
Sampling Rate
The sampling rate was determined by observing the highest frequency component of the
ECG signal, the QRS complex as depicted in figure 2, and using the Nyquist criteria. The
QRS complex has a possible range of frequencies between 12 Hz and 28 Hz. The Nyquist
frequency is thus taken to be 28 Hz and a sampling rate of 2 * Nyquist frequency = 56 Hz
must be observed. A sampling rate of 2 KHz was used for increased accuracy. The timing
was accomplished manually using delay routines that wait 500us between sampling.
Formatting
The data obtained from the ADC is bundled into an array of 30 bytes. This is done to
conform to the Enhanced ShockburstTM protocol employed by the nRF24L01 transceiver
module. Enhanced ShockburstTM allows for packets containing up to 30 bytes of data. To
maximize the ratio of data bits to total bits in a packet and thus increase efficiency, the
full 30 bytes allowed was utilized.
The format of used in constructing the 30-byte array is shown in Table 3 below.
To communicate with the nRF24L01 transceiver module, the Serial Port Interface (SPI)
module on the PIC was used. The SPI mode allows 8 bits of data to be synchronously
transmitted and received simultaneously. The SPI was configured with the following
parameters:
The activity diagram shown in figure depicts the general process followed by the PIC
microprocessor.
11
A/D Wait
Conver 500 us
Store Trans
Data [array full] mit
RF Transmitter
Receiver Module
The process of receiving the digital data from the patient is the responsibility of the
receiver module. The receiver is connected to a PC for display. As the system diagram
presented in figure 16 shows, there are four main components required to receive before
the data can be sent to the PC.
PIC 16f877A
SPI Pars U
Nf24L0 ing A PC
1 R Display
Rx T
RF Receiver
The nRF24L01 transceiver configured to perform as a receiver is much the same as the
transmitter with the same parameters. Only one data pipe is used to transfer the data. This
is in contrast to using a separate data pipe for each lead of the ECG. The reasoning
behind this is that there is less overhead involved by eliminating the need to continuously
change between data pipes.
12
The data is transferred from the transceiver to the PIC via an SPI interface. The data is
received in the format described in figure 16 and the 30 bytes of data is traversed
beginning with byte 0. As each byte is received, the data is sent to the PC through the
PIC’s on-board USART module at a baud rate of 115.2 kbps. The data is transmitted at
regular intervals of 500 us which corresponds to the sampling rate.
PC display
13
Figure 18 – Multiple Lead Display
The data is received through the serial port using COMM 2 at a baud rate of 115.2 kbps
in 500us intervals. The application receives the data for the three leads of the ECG signal
continuously in the following order: LeadI data byte, LeadII data byte, LeadIII, data byte.
As the data is received, the appropriate display area is updated.
X Plot
Horizontal scaling provides a means of controlling the number of pulses displayed. The
person observing the signal has limited control over how long it takes the ECG signal to
pan the width of the display through a scroll bar located directly beneath the display. The
horizontal range was chosen to be able to display 2 beats. Heart rates can vary between
40 and 240 beats per minute or 1.5 and 0.25 seconds per beat respectively so the refresh
rate was chosen to vary between 0.125 sec and 3 sec. To achieve refresh rates
14
wihthin0.125 sec and 3 sec, the display width was set to be between 500 and 6000 pixels.
The scroll bar controls this “scale factor”
Y Plot
The y-coordinate is obtained directly from the incoming data. Since the incoming data is
within the range of 0 to 255, the vertical scaling for each lead translates to the same
range.
Reliability Considerations
The ECG monitor needs to be very reliable considering its’ application in the medical
field. The transmission frequency of 2.45 GHz is within the ISM band which is the band
reserved for non-commercial use of RF electromagnetic fields for industrial, scientific
and medical purposes. To avoid interference and loss of data, the nRF24L01 transceiver
modules are capable of addressing up to six data pipes per module. In addition, reliability
is ensured in the form of error detection and correction.
Each data packet includes one byte for a cyclic redundancy check (CRC) to detect the
presence of errors. Upon detection of any errors, a retransmission is requested to recover
the data that may have been lost. Up to 15 retransmissions will be requested before
finally discarding the data packet and carry on. The system can handle up to four packet
losses and still maintain the integrity of the displayed signal.
Testing was performed to determine the range with which the transceivers could reliable
operate within, i.e. 0 packet loss. The methodology used was to observe the number lost
packets in software at various distances. A radius of up to 5m found to be reliable. This
was the target radius since this is roughly the upper limit on the distance between
transmitter and receiver in an operating room.
The Wireless ECG/EKG Monitoring System was designed and built, and was very
successful. A few modifications would be implemented if time permitted.
The first and most obvious change involves the circuit board. It was very big and
awkward. It served its purpose as a prototype board. However, if this product were to
got to production, the board would need to be re-designed into a smaller package using
surface mount components.
Next time, the filtering would be done digitally using a DSP chip. This would allow for
much more accurate filtering using an FIR or Wavelets.
The final change that would be considered would be to allow for some sort of automatic
adjustments of the gain. Every individual has a unique heartbeat. The amplitudes will
vary from person to person. The current configuration allows the gain to be adjusted
15
manually, but this is a slow and tedious task. Next time the gain would be adjusted in
firmware. This would be much faster and more accurate.
The overall performance of this project was excellent. There was positive feedback from
the judges, and we were awarded 3rd prize for our efforts. Below are a series of photos
from the demonstration.
16
References
17
Appendix A
PCB Files
1 2 3 4 5 6 7 8
+6V
R3 R15
R2 1K Res1
1K 10K R18
200K C13
+6V
R1
7
Vref (micro) +6V
7
1K +6V 100nF U4 8
7
1 U1 U7 8 2
8 2 6
RA 2 C1 6 R21 R24 R27 3
D1 D2
5.1V Zener 6 3 3.9K 82K 82K 5
-6V -6V3.3 V Zener LA 3 5 1 R30
Cap Pol3 C4 C5 45K
1 C10 LM741
4
A 5 100uF LM741 10nF A
1uF 1uF
4
-6V AD620AN R6 R12 -6V Lead I
4
2.2K 1K -6V
C16
100nF
R16
R9 10K
1K
R4 R19
1K 200K C14
1K +6V
7
+6V
7
JP1 +6V 100nF U5 8
7
+6V 1 U2 U8 8 2
1
8 2 6
2 R22 R25 R28
-6V RA 2 C2 6 3
3
LL 6 3 3.9K 82K 82K 5
4 R31
LA LL 3 5 1
5 Cap Pol3 C6 C7 45K
RA 1 C11 LM741
4
6 100uF
5 LM741 1uF 1uF 10nF Lead II
4
Header 6H -6V AD620AN R13 -6V
4
1K -6V
R7 C17
2.2K 100nF
R10
1K
R5 R17 R20
1K 10K 200K C15
+6V
7
+6V
7
+6V 100nF U6 8
7
B 1 U3 U9 8 2 B
8 2 6
LA 2 C3 6 R23 R26 R29 3
6 3 3.9K 82K 82K 5
LL 3 5 1 R32
Cap Pol3 C8 C9 45K
1 C12 LM741
4
5 100uF R14 LM741 1uF 1uF 10nF Lead III
4
-6V AD620AN R8 1K -6V
4
2.2K
-6V
C18
100nF
R11
1K
C23
0.1uF
U11
C25 1 16 VDD C24
C1+ VCC
3 2 VDD
C1- V+
VDD 4
Cap C2+ 0.1uF
5
R36 0.1uF C2-
VDD VCC
47 TX 11 14
R33
4.7K 10 7
D5
OSC1 3.3 V Zener RX 12 13
9 8
1 2 OSC2 Vref (micro) C26
C Vref (micro) 15 6 Vref (micro) C
XTAL1 GND V-
C20 C19 MAX232 0.1uF
22pF 22pF
U10
Vref (micro) Vref (micro) OSC1 13 11 VDD
OSC1/CLKI VDD
MCLR! 1 32 VDD
MCLR/VPP VDD
14 OSC2
OSC2/CLKO
JP2
Lead I 2 15 Vref (micro)
RA0 RC0/T1OSI/T1CKI 1
Lead II 3 16 CSN IRQ
RA1 RC1/T1OSO/CCP2 2
VDD 4 17 CE MISO
RA2 RC2/CCP1 3
5 18 SCK MOSI
RA3 RC3/SCK/SCL 4
R34 6 23 MISO SCK
RA4/T0CKI RC4/SDI/SDA 5
4.7K Lead III 7 24 MOSI CSN Vref (micro)
RA5/SS RC5/SDO 6
5
9
4
8
3
7
2
6
1
25 TX CE
RC6/TX/CK 7
MCLR! 26 RX VCC
RC7/RX/DT 8 J3
D3 33 19 Header 8 D Connector 9
RB0/INT RD0/PSP0
C27 34 20
RB1 RD1/PSP1
SW1 0.1uF 35 21
RB2 RD2/PSP2
SW-PB 36 22
10
11
RB3 RD3/PSP3
37 27
RB4 RD4/PSP4
IRQ 38 28
RB5 RD5/PSP5
39 29
RB6 RD6/PSP6
40 30
RB7 RD7/PSP7
8
RE0/RD
Vref (micro) Vref (micro) Vref (micro) 12 9
VSS RE1/WR
Vref (micro) 31 10
VSS RE2/CS
PIC16C65-20I/P
VR1
D 5 Volt Reg D
+6V VDD
Vin Vout
D6 GND R35 C22
C21 470 0.1uF
22uF
1 2 3 4 5 6 7 8
Designator Description Footprint Comment
C1 100u RAD-0.1 Cap Pol3
C2 100u RAD-0.1 Cap Pol3
C3 100u RAD-0.1 Cap Pol3
C4 1u RAD-0.1 Cap Pol3
C5 1u RAD-0.1 Cap Pol3
C6 1u RAD-0.1 Cap Pol3
C7 1u RAD-0.1 Cap Pol3
C8 1u RAD-0.1 Cap Pol3
C9 1u RAD-0.1 Cap Pol3
C10 10n RAD-0.1 Cap
C11 10n RAD-0.1 Cap
C12 10n RAD-0.1 Cap
C13 100n RAD-0.1 Cap
C14 100n RAD-0.1 Cap
C15 100n RAD-0.1 Cap
C16 100n RAD-0.1 Cap
C17 100n RAD-0.1 Cap
C18 100n RAD-0.1 Cap
C19 22p RAD-0.1 Cap
C20 22p RAD-0.1 Cap
C21 0.1u RAD-0.1 Cap Pol1
C22 22u RAD-0.1 Cap
C23 0.1u RAD-0.1 Cap
C24 0.1u RAD-0.1 Cap
C25 0.1u RAD-0.1 Cap
C26 0.1u RAD-0.1 Cap
C27 0.1u RAD-0.1 Cap
D1 5.1V Zener AXIAL-0.3 5.1V Zener
D2 3.3 V Zener AXIAL-0.3 3.3 V Zener
D3 D Zener AXIAL-0.3 D Zener
D4 LED1 AXIAL-0.3 LED1
D5 3.3 V Zener AXIAL-0.3 3.3 V Zener
D6 Diode AXIAL-0.3 Diode
J3 D Connector 9 DSUB1.385-2H9 D Connector 9
JP1 Header 6H HDR1X6 Header 6H
JP2 Header 8 HDR1X8 Header 8
R1 1K AXIAL-0.3 Res1
R2 1K AXIAL-0.3 Res1
R3 1K AXIAL-0.3 Res1
R4 1K AXIAL-0.3 Res1
R5 1K AXIAL-0.3 Res1
R6 2K2 AXIAL-0.3 Res1
R7 2K2 AXIAL-0.3 Res1
R8 2K2 AXIAL-0.3 Res1
R9 1K VR4 RPot1
R10 1K VR4 RPot1
R11 1K VR4 RPot1
R12 1K AXIAL-0.3 Res1
R13 1K AXIAL-0.3 Res1
R14 1K AXIAL-0.3 Res1
R15 10K AXIAL-0.3 Res1
R16 10K AXIAL-0.3 Res1
R17 10K AXIAL-0.3 Res1
R18 200K VR4 RPot1
R19 200K VR4 RPot1
R20 200K VR4 RPot1
R21 3K9 AXIAL-0.3 Res1
R22 3K9 AXIAL-0.3 Res1
R23 3K9 AXIAL-0.3 Res1
R24 82K AXIAL-0.3 Res1
R25 82K AXIAL-0.3 Res1
R26 82K AXIAL-0.3 Res1
R27 82K AXIAL-0.3 Res1
R28 82K AXIAL-0.3 Res1
R29 82K AXIAL-0.3 Res1
R30 45K AXIAL-0.3 Res1
R31 45K AXIAL-0.3 Res1
R32 45K AXIAL-0.3 Res1
R33 4K7 AXIAL-0.3 Res1
R34 4K7 AXIAL-0.3 Res1
R35 470R AXIAL-0.3 Res1
R36 47R AXIAL-0.3 Res1
SW1 Push Button Switch SPST-2 SW-PB
U1 AD620AN DIP-8 AD620AN
U2 AD620AN DIP-8 AD620AN
U3 AD620AN DIP-8 AD620AN
U4 LM741 DIP-8 LM741
U5 LM741 DIP-8 LM741
U6 LM741 DIP-8 LM741
U7 LM741 DIP-8 LM741
U8 LM741 DIP-8 LM741
U9 LM741 DIP-8 LM741
U10 PIC16C65-20I/P DIP-P40/X.85 PIC16C65-20I/P
U11 MAX232 DIP-16/X1.5 MAX232
VR1 5 Volt Reg SPDT-3 5 Volt Reg
XTAL1 XTAL RAD-0.1 XTAL
Appendix B
Datasheets
a Low Cost, Low Power
Instrumentation Amplifier
AD620
FEATURES CONNECTION DIAGRAM
EASY TO USE 8-Lead Plastic Mini-DIP (N), Cerdip (Q)
Gain Set with One External Resistor and SOIC (R) Packages
(Gain Range 1 to 1000)
Wide Power Supply Range (62.3 V to 618 V)
RG 1 8 RG
Higher Performance than Three Op Amp IA Designs
Available in 8-Lead DIP and SOIC Packaging –IN 2 7 +VS
Low Power, 1.3 mA max Supply Current +IN 3 6 OUTPUT
30,000 10,000
TOTAL ERROR, PPM OF FULL SCALE
25,000 3 OP-AMP
IN-AMP 1,000
(3 OP-07s) TYPICAL STANDARD
RTI VOLTAGE NOISE
(0.1 – 10Hz) – mV p-p
15,000 G = 100
AD620A
10
10,000
RG
AD620 SUPERbETA
BIPOLAR INPUT
1 IN-AMP
5,000
0 0.1
0 5 10 15 20 1k 10k 100k 1M 10M 100M
SUPPLY CURRENT – mA SOURCE RESISTANCE – V
Figure 1. Three Op Amp IA Designs vs. AD620 Figure 2. Total Voltage Noise vs. Source Resistance
REV. E
Information furnished by Analog Devices is believed to be accurate and
reliable. However, no responsibility is assumed by Analog Devices for its
use, nor for any infringements of patents or other rights of third parties One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A.
which may result from its use. No license is granted by implication or Tel: 781/329-4700 World Wide Web Site: http://www.analog.com
otherwise under any patent or patent rights of Analog Devices. Fax: 781/326-8703 © Analog Devices, Inc., 1999
AD620–SPECIFICATIONS (Typical @ +258C, VS = 615 V, and RL = 2 kV, unless otherwise noted)
AD620A AD620B AD620S1
Model Conditions Min Typ Max Min Typ Max Min Typ Max Units
INPUT CURRENT
Input Bias Current 0.5 2.0 0.5 1.0 0.5 2 nA
Over Temperature 2.5 1.5 4 nA
Average TC 3.0 3.0 8.0 pA/°C
Input Offset Current 0.3 1.0 0.3 0.5 0.3 1.0 nA
Over Temperature 1.5 0.75 2.0 nA
Average TC 1.5 1.5 8.0 pA/°C
INPUT
Input Impedance
Differential 10i2 10i2 10i2 GΩipF
Common-Mode 10i2 10i2 10i2 GΩipF
Input Voltage Range 3 VS = ± 2.3 V to ± 5 V –VS + 1.9 +VS – 1.2 –VS + 1.9 +VS – 1.2 –VS + 1.9 +VS – 1.2 V
Over Temperature –VS + 2.1 +VS – 1.3 –VS + 2.1 +VS – 1.3 –VS + 2.1 +VS – 1.3 V
VS = ± 5 V to ± 18 V –VS + 1.9 +VS – 1.4 –VS + 1.9 +VS – 1.4 –VS + 1.9 +VS – 1.4 V
Over Temperature –VS + 2.1 +VS – 1.4 –VS + 2.1 +VS – 1.4 –VS + 2.3 +VS – 1.4 V
Common-Mode Rejection
Ratio DC to 60 Hz with
I kΩ Source Imbalance VCM = 0 V to ± 10 V
G=1 73 90 80 90 73 90 dB
G = 10 93 110 100 110 93 110 dB
G = 100 110 130 120 130 110 130 dB
G = 1000 110 130 120 130 110 130 dB
OUTPUT
Output Swing RL = 10 kΩ,
VS = ± 2.3 V to ± 5 V –VS + 1.1 +VS – 1.2 –VS + 1.1 +VS – 1.2 –VS + 1.1 +VS – 1.2 V
Over Temperature –VS + 1.4 +VS – 1.3 –VS + 1.4 +VS – 1.3 –VS + 1.6 +VS – 1.3 V
VS = ± 5 V to ± 18 V –VS + 1.2 +VS – 1.4 –VS + 1.2 +VS – 1.4 –VS + 1.2 +VS – 1.4 V
Over Temperature –VS + 1.6 +VS – 1.5 –VS + 1.6 +VS – 1.5 –VS + 2.3 +VS – 1.5 V
Short Current Circuit ± 18 ± 18 ± 18 mA
–2– REV. E
AD620
AD620A AD620B AD620S1
Model Conditions Min Typ Max Min Typ Max Min Typ Max Units
DYNAMIC RESPONSE
Small Signal –3 dB Bandwidth
G=1 1000 1000 1000 kHz
G = 10 800 800 800 kHz
G = 100 120 120 120 kHz
G = 1000 12 12 12 kHz
Slew Rate 0.75 1.2 0.75 1.2 0.75 1.2 V/µs
Settling Time to 0.01% 10 V Step
G = 1–100 15 15 15 µs
G = 1000 150 150 150 µs
NOISE
Voltage Noise, 1 kHz Total RTI Noise = (e2 ni ) + (eno / G)2
Input, Voltage Noise, e ni 9 13 9 13 9 13 nV/√Hz
Output, Voltage Noise, e no 72 100 72 100 72 100 nV/√Hz
RTI, 0.1 Hz to 10 Hz
G=1 3.0 3.0 6.0 3.0 6.0 µV p-p
G = 10 0.55 0.55 0.8 0.55 0.8 µV p-p
G = 100–1000 0.28 0.28 0.4 0.28 0.4 µV p-p
Current Noise f = 1 kHz 100 100 100 fA/√Hz
0.1 Hz to 10 Hz 10 10 10 pA p-p
REFERENCE INPUT
RIN 20 20 20 kΩ
IIN VIN+ , VREF = 0 +50 +60 +50 +60 +50 +60 µA
Voltage Range –VS + 1.6 +VS – 1.6 –VS + 1.6 +VS – 1.6 –VS + 1.6 +VS – 1.6 V
Gain to Output 1 ± 0.0001 1 ± 0.0001 1 ± 0.0001
POWER SUPPLY
Operating Range 4 ± 2.3 ± 18 ± 2.3 ± 18 ± 2.3 ± 18 V
Quiescent Current VS = ± 2.3 V to ± 18 V 0.9 1.3 0.9 1.3 0.9 1.3 mA
Over Temperature 1.1 1.6 1.1 1.6 1.1 1.6 mA
TEMPERATURE RANGE
For Specified Performance –40 to +85 –40 to +85 –55 to +125 °C
NOTES
1
See Analog Devices military data sheet for 883B tested specifications.
2
Does not include effects of external resistor R G.
3
One input grounded. G = 1.
4
This is defined as the same supply range which is used to specify PSR.
Specifications subject to change without notice.
REV. E –3–
AD620
ABSOLUTE MAXIMUM RATINGS 1 ORDERING GUIDE
Supply Voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ± 18 V
Internal Power Dissipation2 . . . . . . . . . . . . . . . . . . . . . 650 mW Model Temperature Ranges Package Options*
Input Voltage (Common Mode) . . . . . . . . . . . . . . . . . . . . ± VS AD620AN –40°C to +85°C N-8
Differential Input Voltage . . . . . . . . . . . . . . . . . . . . . . . .± 25 V AD620BN –40°C to +85°C N-8
Output Short Circuit Duration . . . . . . . . . . . . . . . . . Indefinite AD620AR –40°C to +85°C SO-8
Storage Temperature Range (Q) . . . . . . . . . . –65°C to +150°C AD620AR-REEL –40°C to +85°C 13" REEL
Storage Temperature Range (N, R) . . . . . . . . –65°C to +125°C AD620AR-REEL7 –40°C to +85°C 7" REEL
Operating Temperature Range AD620BR –40°C to +85°C SO-8
AD620 (A, B) . . . . . . . . . . . . . . . . . . . . . . –40°C to +85°C AD620BR-REEL –40°C to +85°C 13" REEL
AD620 (S) . . . . . . . . . . . . . . . . . . . . . . . . –55°C to +125°C AD620BR-REEL7 –40°C to +85°C 7" REEL
Lead Temperature Range AD620ACHIPS –40°C to +85°C Die Form
(Soldering 10 seconds) . . . . . . . . . . . . . . . . . . . . . . . +300°C AD620SQ/883B –55°C to +125°C Q-8
NOTES
1 *N = Plastic DIP; Q = Cerdip; SO = Small Outline.
Stresses above those listed under Absolute Maximum Ratings may cause perma-
nent damage to the device. This is a stress rating only; functional operation of the
device at these or any other conditions above those indicated in the operational
section of this specification is not implied. Exposure to absolute maximum rating
conditions for extended periods may affect device reliability.
2
Specification is for device in free air:
8-Lead Plastic Package: θJA = 95°C/W
8-Lead Cerdip Package: θJA = 110°C/W
8-Lead SOIC Package: θJA = 155°C/W
METALIZATION PHOTOGRAPH
Dimensions shown in inches and (mm).
Contact factory for latest dimensions.
8 7 6
5 REFERENCE
8
0.0708
(1.799)
1 2 3 4
0.125 –VS
RG* (3.180)
–IN +IN
*FOR CHIP APPLICATIONS: THE PADS 1RG AND 8RG MUST BE CONNECTED IN PARALLEL
TO THE EXTERNAL GAIN REGISTER RG. DO NOT CONNECT THEM IN SERIES TO RG. FOR
UNITY GAIN APPLICATIONS WHERE RG IS NOT REQUIRED, THE PADS 1RG MAY SIMPLY
BE BONDED TOGETHER, AS WELL AS THE PADS 8RG.
CAUTION
ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily
accumulate on the human body and test equipment and can discharge without detection. WARNING!
Although the AD620 features proprietary ESD protection circuitry, permanent damage may
occur on devices subjected to high energy electrostatic discharges. Therefore, proper ESD ESD SENSITIVE DEVICE
precautions are recommended to avoid performance degradation or loss of functionality.
–4– REV. E
AD620
Typical Characteristics (@ +258C, V = 615 V, R = 2 kV, unless otherwise noted) S L
50 2.0
SAMPLE SIZE = 360
1.5
40
1.0
+IB
–I B
30 0.5
20
–0.5
–1.0
10
–1.5
0
–2.0
–80 –40 0 +40 +80 –75 –25 25 75 125 175
INPUT OFFSET VOLTAGE – mV TEMPERATURE – 8C
Figure 3. Typical Distribution of Input Offset Voltage Figure 6. Input Bias Current vs. Temperature
50 2
30
20
0.5
10
0
0
–1200 –600 0 +600 +1200 0 1 2 3 4 5
INPUT BIAS CURRENT – pA WARM-UP TIME – Minutes
Figure 4. Typical Distribution of Input Bias Current Figure 7. Change in Input Offset Voltage vs.
Warm-Up Time
50 1000
40 GAIN = 1
PERCENTAGE OF UNITS
100
30
GAIN = 10
20
10
10
GAIN = 100, 1,000
GAIN = 1000
BW LIMIT
0 1
–400 –200 0 +200 +400
1 10 100 1k 10k 100k
INPUT OFFSET CURRENT – pA FREQUENCY – Hz
Figure 5. Typical Distribution of Input Offset Current Figure 8. Voltage Noise Spectral Density vs. Frequency,
(G = 1–1000)
REV. E –5–
AD620–Typical Characteristics
1000
CURRENT NOISE – fA/!Hz
100
10
1 10 100 1000
FREQUENCY – Hz
Figure 9. Current Noise Spectral Density vs. Frequency Figure 11. 0.1 Hz to 10 Hz Current Noise, 5 pA/Div
100,000
FET INPUT
IN-AMP
1000
AD620A
100
10
TIME – 1 SEC/DIV 1k 10k 100k 1M 10M
SOURCE RESISTANCE – V
Figure 10a. 0.1 Hz to 10 Hz RTI Voltage Noise (G = 1) Figure 12. Total Drift vs. Source Resistance
+160
+140 G = 1000
G = 100
+120
RTI NOISE – 0.1mV/DIV
G = 10
+100
CMR – dB
G=1
+80
+60
+40
+20
0
TIME – 1 SEC/DIV 0.1 1 10 100 1k 10k 100k 1M
FREQUENCY – Hz
Figure 10b. 0.1 Hz to 10 Hz RTI Voltage Noise (G = 1000) Figure 13. CMR vs. Frequency, RTI, Zero to 1 kΩ Source
Imbalance
–6– REV. E
AD620
180 35
G = 10, 100, 1000
160
30
20
100 G = 100
BW LIMIT
15
80
G = 10
10
60
G=1 5
40
G = 1000
G = 100
20 0
0.1 1 10 100 1k 10k 100k 1M 1k 10k 100k 1M
FREQUENCY – Hz FREQUENCY – Hz
Figure 14. Positive PSR vs. Frequency, RTI (G = 1–1000) Figure 17. Large Signal Frequency Response
160 –0.5
120 –1.5
PSR – dB
100
G = 1000
80 +1.5
G = 100
60 +1.0
G = 10
40 +0.5
G=1
20 –VS +0.0
0.1 1 10 100 1k 10k 100k 1M 0 5 10 15 20
FREQUENCY – Hz SUPPLY VOLTAGE 6 Volts
Figure 15. Negative PSR vs. Frequency, RTI (G = 1–1000) Figure 18. Input Voltage Range vs. Supply Voltage, G = 1
–0.5
(REFERRED TO SUPPLY VOLTAGES)
OUTPUT VOLTAGE SWING – Volts
RL = 10kV
100 –1.0
RL = 2kV
–1.5
GAIN – V/V
10
+1.5
RL = 2kV
1 +1.0
+0.5 RL = 10kV
Figure 16. Gain vs. Frequency Figure 19. Output Voltage Swing vs. Supply Voltage,
G = 10
REV. E –7–
AD620
30
OUTPUT VOLTAGE SWING – Volts p-p
10
0
0 100 1k 10k
LOAD RESISTANCE – V
Figure 20. Output Voltage Swing vs. Load Resistance Figure 23. Large Signal Response and Settling Time,
G = 10 (0.5 mV = 001%)
.... .... .... ........ ........ .... ........ .... .... ........ .... ........ .... ........
.... .... .... ........ ........ .... ........ .... .... ........ .... ........ .... ........
Figure 21. Large Signal Pulse Response and Settling Time Figure 24. Small Signal Response, G = 10, RL = 2 kΩ,
G = 1 (0.5 mV = 0.01%) CL = 100 pF
.... .... .... ........ ........ .... ........ .... .... .... ........ ........ .... ........
.... .... .... ........ ........ .... ........ .... .... .... ........ ........ .... ........
Figure 22. Small Signal Response, G = 1, RL = 2 kΩ, Figure 25. Large Signal Response and Settling Time,
CL = 100 pF G = 100 (0.5 mV = 0.01%)
–8– REV. E
AD620
20
SETTLING TIME – ms
TO 0.1%
10
5
.... .... .... ........ ........ .... ........
0
0 5 10 15 20
OUTPUT STEP SIZE – Volts
Figure 26. Small Signal Pulse Response, G = 100, Figure 29. Settling Time vs. Step Size (G = 1)
RL = 2 kΩ, CL = 100 pF
1000
10
1
1 10 100 1000
GAIN
Figure 27. Large Signal Response and Settling Time, Figure 30. Settling Time to 0.01% vs. Gain, for a 10 V Step
G = 1000 (0.5 mV = 0.01%)
.... .... .... ........ ........ .... ........ .... .... ........ ........ .... .... ........
.... .... .... ........ ........ .... ........ .... .... ........ ........ .... .... ........
Figure 28. Small Signal Pulse Response, G = 1000, Figure 31a. Gain Nonlinearity, G = 1, RL = 10 kΩ
RL = 2 kΩ, CL = 100 pF (10 µ V = 1 ppm)
REV. E –9–
AD620
I1 20mA VB 20mA I2
R3 10kV 10kV
R1 R2 REF
400V
– IN Q1 Q2 +IN
R4
.... .... .... ........ .... .... .... ........ RG 400V
GAIN GAIN
SENSE SENSE
–VS
49.4 kΩ
RG =
G −1
–10– REV. E
AD620
Make vs. Buy: A Typical Bridge Application Error Budget systems, absolute accuracy and drift errors are by far the most
The AD620 offers improved performance over “homebrew” significant contributors to error. In more complex systems with
three op amp IA designs, along with smaller size, fewer compo- an intelligent processor, an autogain/autozero cycle will remove all
nents and 10× lower supply current. In the typical application, absolute accuracy and drift errors leaving only the resolution
shown in Figure 34, a gain of 100 is required to amplify a bridge errors of gain nonlinearity and noise, thus allowing full 14-bit
output of 20 mV full scale over the industrial temperature range accuracy.
of –40°C to +85°C. The error budget table below shows how to Note that for the homebrew circuit, the OP07 specifications for
calculate the effect various error sources have on circuit accuracy. input voltage offset and noise have been multiplied by √2. This
Regardless of the system in which it is being used, the AD620 is because a three op amp type in-amp has two op amps at its
provides greater accuracy, and at low power and price. In simple inputs, both contributing to the overall input error.
+10V
10kV* 10kV*
OP07D
R = 350V R = 350V
10kV**
RG
499V AD620A 100V** 10kV** OP07D
R = 350V R = 350V
REFERENCE
OP07D
10kV* 10kV*
AD620A MONOLITHIC
PRECISION BRIDGE TRANSDUCER INSTRUMENTATION “HOMEBREW” IN-AMP, G = 100
AMPLIFIER, G = 100 *0.02% RESISTOR MATCH, 3PPM/8C TRACKING
**DISCRETE 1% RESISTOR, 100PPM/8C TRACKING
SUPPLY CURRENT = 15mA MAX
SUPPLY CURRENT = 1.3mA MAX
REV. E –11–
AD620
+5V
20kV
7
3
3kV 3kV REF
8
G=100 AD620B 6 IN
499V DIGITAL
3kV 3kV 5
1 10kV ADC DATA
OUTPUT
2 4
AD705 AGND
20kV
0.6mA
1.7mA 1.3mA 0.10mA
MAX
MAX
+3V
PATIENT/CIRCUIT
PROTECTION/ISOLATION
R1 R3
C1 24.9kV 0.03Hz
10kV RG HIGH OUTPUT
8.25kV AD620A PASS G = 143 1V/mV
R4 R2 G=7 FILTER
1MV 24.9kV
OUTPUT
AMPLIFIER
AD705J
–3V
–12– REV. E
AD620
Precision V-I Converter INPUT AND OUTPUT OFFSET VOLTAGE
The AD620, along with another op amp and two resistors, makes The low errors of the AD620 are attributed to two sources,
a precision current source (Figure 37). The op amp buffers the input and output errors. The output error is divided by G when
reference terminal to maintain good CMR. The output voltage referred to the input. In practice, the input errors dominate at
VX of the AD620 appears across R1, which converts it to a high gains and the output errors dominate at low gains. The
current. This current less only, the input bias current of the op total VOS for a given gain is calculated as:
amp, then flows out to the load.
Total Error RTI = input error + (output error/G)
+VS Total Error RTO = (input error × G) + output error
REV. E –13–
AD620
COMMON-MODE REJECTION GROUNDING
Instrumentation amplifiers like the AD620 offer high CMR, Since the AD620 output voltage is developed with respect to the
which is a measure of the change in output voltage when both potential on the reference terminal, it can solve many grounding
inputs are changed by equal amounts. These specifications are problems by simply tying the REF pin to the appropriate “local
usually given for a full-range input voltage change and a speci- ground.”
fied source imbalance. In order to isolate low level analog signals from a noisy digital
For optimal CMR the reference terminal should be tied to a low environment, many data-acquisition components have separate
impedance point, and differences in capacitance and resistance analog and digital ground pins (Figure 41). It would be conve-
should be kept to a minimum between the two inputs. In many nient to use a single ground line; however, current through
applications shielded cables are used to minimize noise, and for ground wires and PC runs of the circuit card can cause hun-
best CMR over frequency the shield should be properly driven. dreds of millivolts of error. Therefore, separate ground returns
Figures 39 and 40 show active data guards that are configured should be provided to minimize the current flow from the sensi-
to improve ac common-mode rejections by “bootstrapping” the tive points to the system ground. These ground returns must be
capacitances of input cable shields, thus minimizing the capaci- tied together at some point, usually best at the ADC package as
tance mismatch between the inputs. shown.
+VS
ANALOG P.S. DIGITAL P.S.
– INPUT +15V C –15V C +5V
AD648
100V
0.1mF 0.1mF
1mF 1mF 1mF
RG
AD620 VOUT
100V +
–VS
AD620 DIGITAL
REFERENCE AD585 AD574A DATA
S/H ADC OUTPUT
+ INPUT
–VS
Figure 41. Basic Grounding Practice
Figure 39. Differential Shield Driver
+VS
– INPUT
RG
100V 2
AD548 AD620 VOUT
RG
2
REFERENCE
+ INPUT
–VS
–14– REV. E
AD620
GROUND RETURNS FOR INPUT BIAS CURRENTS sources such as transformers, or ac-coupled sources, there must
Input bias currents are those currents necessary to bias the input be a dc path from each input to ground as shown in Figure 42.
transistors of an amplifier. There must be a direct return path Refer to the Instrumentation Amplifier Application Guide (free
for these currents; therefore, when amplifying “floating” input from Analog Devices) for more information regarding in amp
applications.
+VS +VS
– INPUT – INPUT
LOAD LOAD
–VS –VS
TO POWER TO POWER
SUPPLY SUPPLY
GROUND GROUND
Figure 42a. Ground Returns for Bias Currents with Figure 42b. Ground Returns for Bias Currents with
Transformer Coupled Inputs Thermocouple Inputs
+VS
– INPUT
RG AD620 VOUT
LOAD
+ INPUT REFERENCE
100kV 100kV –VS
TO POWER
SUPPLY
GROUND
Figure 42c. Ground Returns for Bias Currents with AC Coupled Inputs
REV. E –15–
AD620
OUTLINE DIMENSIONS
Dimensions shown in inches and (mm).
0.430 (10.92)
0.348 (8.84)
C1599c–0–7/99
8 5
0.280 (7.11)
0.240 (6.10)
1 4
0.325 (8.25)
0.300 (7.62)
PIN 1 0.060 (1.52)
0.015 (0.38) 0.195 (4.95)
0.210 (5.33)
MAX 0.115 (2.93)
0.130
0.160 (4.06) (3.30)
0.115 (2.93) MIN
0.015 (0.381)
0.022 (0.558) 0.100 0.070 (1.77) SEATING 0.008 (0.204)
PLANE
0.014 (0.356) (2.54) 0.045 (1.15)
BSC
8 5
0.310 (7.87)
0.220 (5.59)
1 4
PIN 1
0.320 (8.13)
0.405 (10.29) 0.290 (7.37)
MAX 0.060 (1.52)
0.200 (5.08) 0.015 (0.38)
MAX 0.150
0.200 (5.08) (3.81)
0.125 (3.18) MIN
0.015 (0.38)
0.023 (0.58) 0.100 0.070 (1.78) SEATING 15° 0.008 (0.20)
PLANE
0.014 (0.36) (2.54) 0.030 (0.76) 0°
BSC
0.1968 (5.00)
0.1890 (4.80)
8 5
0.1574 (4.00) 0.2440 (6.20)
0.1497 (3.80) 1 4 0.2284 (5.80)
8°
0.0500 0.0192 (0.49) 0° 0.0500 (1.27)
SEATING (1.27) 0.0098 (0.25)
PLANE BSC 0.0138 (0.35) 0.0075 (0.19)
PRINTED IN U.S.A.
0.0160 (0.41)
–16– REV. E
LM741 Operational Amplifier
August 2000
LM741
Operational Amplifier
General Description output, no latch-up when the common mode range is ex-
ceeded, as well as freedom from oscillations.
The LM741 series are general purpose operational amplifi-
The LM741C is identical to the LM741/LM741A except that
ers which feature improved performance over industry stan-
the LM741C has their performance guaranteed over a 0˚C to
dards like the LM709. They are direct, plug-in replacements
+70˚C temperature range, instead of −55˚C to +125˚C.
for the 709C, LM201, MC1439 and 748 in most applications.
The amplifiers offer many features which make their appli-
cation nearly foolproof: overload protection on the input and
Features
Connection Diagrams
Metal Can Package Dual-In-Line or S.O. Package
00934102 00934103
Note 1: LM741H is available per JM38510/10101 Order Number LM741J, LM741J/883, LM741CN
Order Number LM741H, LM741H/883 (Note 1), See NS Package Number J08A, M08A or N08E
LM741AH/883 or LM741CH
See NS Package Number H08C
Ceramic Flatpak
00934106
Order Number LM741W/883
See NS Package Number W10A
Typical Application
Offset Nulling Circuit
00934107
www.national.com 2
LM741
Electrical Characteristics (Note 5) (Continued)
Parameter Conditions LM741A LM741 LM741C Units
Min Typ Max Min Typ Max Min Typ Max
Large Signal Voltage Gain TA = 25˚C, RL ≥ 2 kΩ
VS = ± 20V, VO = ± 15V 50 V/mV
VS = ± 15V, VO = ± 10V 50 200 20 200 V/mV
TAMIN ≤ TA ≤ TAMAX,
RL ≥ 2 kΩ,
VS = ± 20V, VO = ± 15V 32 V/mV
VS = ± 15V, VO = ± 10V 25 15 V/mV
VS = ± 5V, VO = ± 2V 10 V/mV
Output Voltage Swing VS = ± 20V
RL ≥ 10 kΩ ± 16 V
RL ≥ 2 kΩ ± 15 V
VS = ± 15V
RL ≥ 10 kΩ ± 12 ± 14 ± 12 ± 14 V
RL ≥ 2 kΩ ± 10 ± 13 ± 10 ± 13 V
Output Short Circuit TA = 25˚C 10 25 35 25 25 mA
Current TAMIN ≤ TA ≤ TAMAX 10 40 mA
Common-Mode TAMIN ≤ TA ≤ TAMAX
Rejection Ratio RS ≤ 10 kΩ, VCM = ± 12V 70 90 70 90 dB
RS ≤ 50Ω, VCM = ± 12V 80 95 dB
Supply Voltage Rejection TAMIN ≤ TA ≤ TAMAX,
Ratio VS = ± 20V to VS = ± 5V
RS ≤ 50Ω 86 96 dB
RS ≤ 10 kΩ 77 96 77 96 dB
Transient Response TA = 25˚C, Unity Gain
Rise Time 0.25 0.8 0.3 0.3 µs
Overshoot 6.0 20 5 5 %
Bandwidth (Note 6) TA = 25˚C 0.437 1.5 MHz
Slew Rate TA = 25˚C, Unity Gain 0.3 0.7 0.5 0.5 V/µs
Supply Current TA = 25˚C 1.7 2.8 1.7 2.8 mA
Power Consumption TA = 25˚C
VS = ± 20V 80 150 mW
VS = ± 15V 50 85 50 85 mW
LM741A VS = ± 20V
TA = TAMIN 165 mW
TA = TAMAX 135 mW
LM741 VS = ± 15V
TA = TAMIN 60 100 mW
TA = TAMAX 45 75 mW
Note 2: “Absolute Maximum Ratings” indicate limits beyond which damage to the device may occur. Operating Ratings indicate conditions for which the device is
functional, but do not guarantee specific performance limits.
3 www.national.com
LM741
Electrical Characteristics (Note 5) (Continued)
Note 3: For operation at elevated temperatures, these devices must be derated based on thermal resistance, and Tj max. (listed under “Absolute Maximum
Ratings”). Tj = TA + (θjA PD).
Thermal Resistance Cerdip (J) DIP (N) HO8 (H) SO-8 (M)
θjA (Junction to Ambient) 100˚C/W 100˚C/W 170˚C/W 195˚C/W
θjC (Junction to Case) N/A N/A 25˚C/W N/A
Note 4: For supply voltages less than ± 15V, the absolute maximum input voltage is equal to the supply voltage.
Note 5: Unless otherwise specified, these specifications apply for VS = ± 15V, −55˚C ≤ TA ≤ +125˚C (LM741/LM741A). For the LM741C/LM741E, these
specifications are limited to 0˚C ≤ TA ≤ +70˚C.
Note 6: Calculated value from: BW (MHz) = 0.35/Rise Time(µs).
Note 7: For military specifications see RETS741X for LM741 and RETS741AX for LM741A.
Note 8: Human body model, 1.5 kΩ in series with 100 pF.
Schematic Diagram
00934101
www.national.com 4
LM741
Physical Dimensions inches (millimeters)
unless otherwise noted
5 www.national.com
LM741
Physical Dimensions inches (millimeters) unless otherwise noted (Continued)
www.national.com 6
LM741 Operational Amplifier
Physical Dimensions inches (millimeters) unless otherwise noted (Continued)
National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves
the right at any time without notice to change said circuitry and specifications.
For the most current product information visit us at www.national.com.
MAX220–MAX249
The MAX220–MAX249 family of line drivers/receivers is Device Features
intended for all EIA/TIA-232E and V.28/V.24 communica- ♦ For Low-Voltage, Integrated ESD Applications
tions interfaces, particularly applications where ±12V is MAX3222E/MAX3232E/MAX3237E/MAX3241E/
not available. MAX3246E: +3.0V to +5.5V, Low-Power, Up to
These parts are especially useful in battery-powered sys- 1Mbps, True RS-232 Transceivers Using Four
tems, since their low-power shutdown mode reduces 0.1µF External Capacitors (MAX3246E Available
power dissipation to less than 5µW. The MAX225, in a UCSP™ Package)
MAX233, MAX235, and MAX245/MAX246/MAX247 use ♦ For Low-Cost Applications
no external components and are recommended for appli- MAX221E: ±15kV ESD-Protected, +5V, 1µA,
cations where printed circuit board space is critical. Single RS-232 Transceiver with AutoShutdown™
For pricing, delivery, and ordering information, please contact Maxim/Dallas Direct! at
1-888-629-4642, or visit Maxim’s website at www.maxim-ic.com.
+5V-Powered, Multichannel RS-232
Drivers/Receivers
ABSOLUTE MAXIMUM RATINGS—MAX220/222/232A/233A/242/243
MAX220–MAX249
Supply Voltage (VCC) ...............................................-0.3V to +6V 18-Pin Plastic DIP (derate 11.11mW/°C above +70°C)..889mW
V+ (Note 1) ..................................................(VCC - 0.3V) to +14V 20-Pin Plastic DIP (derate 8.00mW/°C above +70°C) ..440mW
V- (Note 1) .............................................................+0.3V to +14V 16-Pin Narrow SO (derate 8.70mW/°C above +70°C) ...696mW
Input Voltages 16-Pin Wide SO (derate 9.52mW/°C above +70°C)......762mW
TIN..............................................................-0.3V to (VCC - 0.3V) 18-Pin Wide SO (derate 9.52mW/°C above +70°C)......762mW
RIN (Except MAX220) ........................................................±30V 20-Pin Wide SO (derate 10.00mW/°C above +70°C)....800mW
RIN (MAX220).....................................................................±25V 20-Pin SSOP (derate 8.00mW/°C above +70°C) ..........640mW
TOUT (Except MAX220) (Note 2) .......................................±15V 16-Pin CERDIP (derate 10.00mW/°C above +70°C).....800mW
TOUT (MAX220)...............................................................±13.2V 18-Pin CERDIP (derate 10.53mW/°C above +70°C).....842mW
Output Voltages Operating Temperature Ranges
TOUT ...................................................................................±15V MAX2_ _AC_ _, MAX2_ _C_ _ .............................0°C to +70°C
ROUT .........................................................-0.3V to (VCC + 0.3V) MAX2_ _AE_ _, MAX2_ _E_ _ ..........................-40°C to +85°C
Driver/Receiver Output Short Circuited to GND.........Continuous MAX2_ _AM_ _, MAX2_ _M_ _ .......................-55°C to +125°C
Continuous Power Dissipation (TA = +70°C) Storage Temperature Range .............................-65°C to +160°C
16-Pin Plastic DIP (derate 10.53mW/°C above +70°C)..842mW Lead Temperature (soldering, 10s) (Note 3) ...................+300°C
Note 1: For the MAX220, V+ and V- can have a maximum magnitude of 7V, but their absolute difference cannot exceed 13V.
Note 2: Input voltage measured with TOUT in high-impedance state, SHDN or VCC = 0V.
Note 3: Maximum reflow temperature for the MAX223A is +225°C.
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional
operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to
absolute maximum rating conditions for extended periods may affect device reliability.
ELECTRICAL CHARACTERISTICS—MAX220/222/232A/233A/242/243
(VCC = +5V ±10%, C1–C4 = 0.1µF‚ MAX220, C1 = 0.047µF, C2–C4 = 0.33µF, TA = TMIN to TMAX‚ unless otherwise noted.)
PARAMETER CONDITIONS MIN TYP MAX UNITS
RS-232 TRANSMITTERS
Output Voltage Swing All transmitter outputs loaded with 3kΩ to GND ±5 ±8 V
Input Logic Threshold Low 1.4 0.8 V
All devices except MAX220 2 1.4
Input Logic Threshold High V
MAX220: VCC = 5.0V 2.4
All except MAX220, normal operation 5 40
Logic Pullup/lnput Current SHDN = 0V, MAX222/MAX242, shutdown, µA
±0.01 ±1
MAX220
VCC = 5.5V, SHDN = 0V, VOUT = ±15V,
±0.01 ±10
MAX222/MAX242
Output Leakage Current µA
VOUT = ±15V ±0.01 ±10
VCC = SHDN = 0V
MAX220, VOUT = ±12V ±25
Data Rate 200 116 kbps
Transmitter Output Resistance VCC = V+ = V- = 0V, VOUT = ±2V 300 10M Ω
VOUT = 0V ±7 ±22
Output Short-Circuit Current VOUT = 0V mA
MAX220 ±60
RS-232 RECEIVERS
±30
RS-232 Input Voltage Operating Range V
MAX220 ±25
All except MAX243 R2IN 0.8 1.3
RS-232 Input Threshold Low VCC = 5V V
MAX243 R2 IN (Note 4) -3
All except MAX243 R2IN 1.8 2.4
RS-232 Input Threshold High VCC = 5V V
MAX243 R2 IN (Note 4) -0.5 -0.1
2 _______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
ELECTRICAL CHARACTERISTICS—MAX220/222/232A/233A/242/243 (continued)
(VCC = +5V ±10%, C1–C4 = 0.1µF‚ MAX220, C1 = 0.047µF, C2–C4 = 0.33µF, TA = TMIN to TMAX‚ unless otherwise noted.)
(VCC = +5V ±10%, C1–C4 = 0.1µF‚ MAX220, C1 = 0.047µF, C2–C4 = 0.33µF, TA = TMIN to TMAX‚ unless otherwise noted.)
MAX222/MAX232A/MAX233/
Receiver + to - Propagation Delay 100
tPHLR - tPLHR MAX242/MAX243 ns
Difference (Normal Operation)
MAX220 225
MAX220-02
MAX220-03
1µF V+
8 OUTPUT LOAD CURRENT 1µF CAPS
10 FLOWS FROM V+ TO V-
6 EITHER V+ OR V- LOADED V+
0.1µF CAPS
ALL CAPS +5V
OUTPUT CURRENT (mA)
4 9 1µF +5V
V+, V- VOLTAGE (V)
NO LOAD ON SHDN
2 TRANSMITTER OUTPUTS VCC = +5.25V 0V
8
(EXCEPT MAX220, MAX233A)
0 0V
ALL CAPS
-2 V- LOADED, NO LOAD ON V+ 7 0.1µF
VCC = +4.75V 1µF CAPS
-4 0.1µF 1µF
6
-6
5 0.1µF CAPS
-8 V- V-
V+ LOADED, NO LOAD ON V-
-10 4 -10V
0 5 10 15 20 25 0 10 20 30 40 50 60 500µs/div
LOAD CURRENT (mA) DATA RATE (kbits/sec)
4 _______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
ABSOLUTE MAXIMUM RATINGS—MAX223/MAX230–MAX241
VCC ...........................................................................-0.3V to +6V 20-Pin Wide SO (derate 10 00mW/°C above +70°C).......800mW
V+ ................................................................(VCC - 0.3V) to +14V 24-Pin Wide SO (derate 11.76mW/°C above +70°C).......941mW
V- ............................................................................+0.3V to -14V 28-Pin Wide SO (derate 12.50mW/°C above +70°C) .............1W
Input Voltages 44-Pin Plastic FP (derate 11.11mW/°C above +70°C) .....889mW
TIN ............................................................-0.3V to (VCC + 0.3V) 14-Pin CERDIP (derate 9.09mW/°C above +70°C) ..........727mW
RIN......................................................................................±30V 16-Pin CERDIP (derate 10.00mW/°C above +70°C) ........800mW
Output Voltages 20-Pin CERDIP (derate 11.11mW/°C above +70°C) ........889mW
TOUT ...................................................(V+ + 0.3V) to (V- - 0.3V) 24-Pin Narrow CERDIP
ROUT .........................................................-0.3V to (VCC + 0.3V) (derate 12.50mW/°C above +70°C) ..............1W
Short-Circuit Duration, TOUT ......................................Continuous 24-Pin Sidebraze (derate 20.0mW/°C above +70°C)..........1.6W
Continuous Power Dissipation (TA = +70°C) 28-Pin SSOP (derate 9.52mW/°C above +70°C).............762mW
14-Pin Plastic DIP (derate 10.00mW/°C above +70°C)....800mW Operating Temperature Ranges
16-Pin Plastic DIP (derate 10.53mW/°C above +70°C)....842mW MAX2 _ _ C _ _......................................................0°C to +70°C
20-Pin Plastic DIP (derate 11.11mW/°C above +70°C)....889mW MAX2 _ _ E _ _ ...................................................-40°C to +85°C
24-Pin Narrow Plastic DIP MAX2 _ _ M _ _ ...............................................-55°C to +125°C
(derate 13.33mW/°C above +70°C) ..........1.07W Storage Temperature Range .............................-65°C to +160°C
24-Pin Plastic DIP (derate 9.09mW/°C above +70°C)......500mW Lead Temperature (soldering, 10s) (Note 4) ...................+300°C
16-Pin Wide SO (derate 9.52mW/°C above +70°C).........762mW
Note 4: Maximum reflow temperature for the MAX233/MAX235 is +225°C.
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional
operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to
absolute maximum rating conditions for extended periods may affect device reliability.
ELECTRICAL CHARACTERISTICS—MAX223/MAX230–MAX241
(MAX223/230/232/234/236/237/238/240/241, VCC = +5V ±10; MAX233/MAX235, VCC = 5V ±5%‚ C1–C4 = 1.0µF; MAX231/MAX239,
VCC = 5V ±10%; V+ = 7.5V to 13.2V; TA = TMIN to TMAX; unless otherwise noted.)
PARAMETER CONDITIONS MIN TYP MAX UNITS
Output Voltage Swing All transmitter outputs loaded with 3kΩ to ground ±5.0 ±7.3 V
MAX232/233 5 10
No load,
VCC Power-Supply Current MAX223/230/234–238/240/241 7 15 mA
TA = +25°C
MAX231/239 0.4 1
MAX231 1.8 5
V+ Power-Supply Current mA
MAX239 5 15
MAX223 15 50
Shutdown Supply Current TA = +25°C µA
MAX230/235/236/240/241 1 10
Input Logic Threshold Low TIN; EN, SHDN (MAX233); EN, SHDN (MAX230/235–241) 0.8 V
TIN 2.0
Input Logic Threshold High EN, SHDN (MAX223); V
2.4
EN, SHDN (MAX230/235/236/240/241)
Logic Pull-Up Current TIN = 0V 1.5 200 µA
Receiver Input Voltage
-30 +30 V
Operating Range
_______________________________________________________________________________________ 5
+5V-Powered, Multichannel RS-232
Drivers/Receivers
ELECTRICAL CHARACTERISTICS—MAX223/MAX230–MAX241 (continued)
MAX220–MAX249
(MAX223/230/232/234/236/237/238/240/241, VCC = +5V ±10; MAX233/MAX235, VCC = 5V ±5%‚ C1–C4 = 1.0µF; MAX231/MAX239,
VCC = 5V ±10%; V+ = 7.5V to 13.2V; TA = TMIN to TMAX; unless otherwise noted.)
PARAMETER CONDITIONS MIN TYP MAX UNITS
Normal operation
SHDN = 5V (MAX223) 0.8 1.2
TA = +25°C, SHDN = 0V (MAX235/236/240/241)
RS-232 Input Threshold Low V
VCC = 5V Shutdown (MAX223)
SHDN = 0V, 0.6 1.5
EN = 5V (R4IN, R5IN)
Normal operation
SHDN = 5V (MAX223) 1.7 2.4
TA = +25°C, SHDN = 0V (MAX235/236/240/241)
RS-232 Input Threshold High V
VCC = 5V Shutdown (MAX223)
SHDN = 0V, 1.5 2.4
EN = 5V (R4IN‚ R5IN)
RS-232 Input Hysteresis VCC = 5V, no hysteresis in shutdown 0.2 0.5 1.0 V
RS-232 Input Resistance TA = +25°C, VCC = 5V 3 5 7 kΩ
TTL/CMOS Output Voltage Low IOUT = 1.6mA (MAX231/232/233, IOUT = 3.2mA) 0.4 V
TTL/CMOS Output Voltage High IOUT = -1mA 3.5 VCC - 0.4 V
0V ≤ ROUT ≤ VCC; EN = 0V (MAX223);
TTL/CMOS Output Leakage Current 0.05 ±10 µA
EN = VCC (MAX235–241 )
6 _______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
__________________________________________Typical Operating Characteristics
MAX220–MAX249
MAX223/MAX230–MAX241
TRANSMITTER OUTPUT VOLTAGE (VOH)
TRANSMITTER OUTPUT vs. LOAD CAPACITANCE AT TRANSMITTER SLEW RATE
VOLTAGE (VOH) vs. VCC DIFFERENT DATA RATES vs. LOAD CAPACITANCE
8.5 7.4 12.0
MAX220-04
MAX220-06
MAX220-05
1 TRANSMITTER LOADED TA = +25°C
2 TRANSMITTERS
LOADED 7.2 11.0 VCC = +5V
LOADED, RL = 3kΩ
8.0 10.0 C1–C4 = 1µF
7.0
6.8
VOH (V)
MAX220-09
MAX220-08
MAX220-07
V- LOADED,
VOL (V)
VOL (V)
V+ AND V- V+ LOADED,
160kbits/sec NO LOAD
-7.5 -6.8 0 EQUALLY
80kbits/sec ON V+ NO LOAD
1 TRANS- -2 LOADED ON V-
-7.0 20Kkbits/sec
-8.0 MITTER
LOADED -4
-7.2
2 TRANS- 3 TRANS- -6
-8.5
MITTERS MITTERS -7.4
-8
LOADED LOADED ALL TRANSMITTERS UNLOADED
-9.0 -7.6 -10
4.5 5.0 5.5 0 500 1000 1500 2000 2500 0 5 10 15 20 25 30 35 40 45 50
VCC (V) LOAD CAPACITANCE (pF) CURRENT (mA)
V+
V-
SHDN*
500ms/div
*SHUTDOWN POLARITY IS REVERSED
FOR NON MAX241 PARTS
_______________________________________________________________________________________ 7
+5V-Powered, Multichannel RS-232
Drivers/Receivers
ABSOLUTE MAXIMUM RATINGS—MAX225/MAX244–MAX249
MAX220–MAX249
Supply Voltage (VCC) ...............................................-0.3V to +6V Continuous Power Dissipation (TA = +70°C)
Input Voltages 28-Pin Wide SO (derate 12.50mW/°C above +70°C) .............1W
TIN‚ ENA, ENB, ENR, ENT, ENRA, 40-Pin Plastic DIP (derate 11.11mW/°C above +70°C) ...611mW
ENRB, ENTA, ENTB..................................-0.3V to (VCC + 0.3V) 44-Pin PLCC (derate 13.33mW/°C above +70°C) ...........1.07W
RIN .....................................................................................±25V Operating Temperature Ranges
TOUT (Note 5).....................................................................±15V MAX225C_ _, MAX24_C_ _ ..................................0°C to +70°C
ROUT ........................................................-0.3V to (VCC + 0.3V) MAX225E_ _, MAX24_E_ _ ...............................-40°C to +85°C
Short Circuit (one output at a time) Storage Temperature Range .............................-65°C to +160°C
TOUT to GND ............................................................Continuous Lead Temperature (soldering,10s) (Note 6) ....................+300°C
ROUT to GND............................................................Continuous
Note 5: Input voltage measured with transmitter output in a high-impedance state, shutdown, or VCC = 0V.
Note 6: Maximum reflow temperature for the MAX225/MAX245/MAX246/MAX247 is +225°C.
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional
operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to
absolute maximum rating conditions for extended periods may affect device reliability.
ELECTRICAL CHARACTERISTICS—MAX225/MAX244–MAX249
(MAX225, VCC = 5.0V ±5%; MAX244–MAX249, VCC = +5.0V ±10%, external capacitors C1–C4 = 1µF; TA = TMIN to TMAX; unless oth-
erwise noted.)
PARAMETER CONDITIONS MIN TYP MAX UNITS
RS-232 TRANSMITTERS
Input Logic Threshold Low 1.4 0.8 V
Input Logic Threshold High 2 1.4 V
Normal operation 10 50
Logic Pull-Up/lnput Current Tables 1a–1d µA
Shutdown ±0.01 ±1
Data Rate Tables 1a–1d, normal operation 120 64 kbps
Output Voltage Swing All transmitter outputs loaded with 3kΩ to GND ±5 ±7.5 V
ENA, ENB, ENT, ENTA, ENTB =
±0.01 ±25
VCC, VOUT = ±15V
Output Leakage Current (Shutdown) Tables 1a–1d µA
VCC = 0V,
±0.01 ±25
VOUT = ±15V
Transmitter Output Resistance VCC = V+ = V- = 0V, VOUT = ±2V (Note 7) 300 10M Ω
Output Short-Circuit Current VOUT = 0V ±7 ±30 mA
RS-232 RECEIVERS
RS-232 Input Voltage Operating Range ±25 V
RS-232 Input Threshold Low VCC = 5V 0.8 1.3 V
RS-232 Input Threshold High VCC = 5V 1.8 2.4 V
RS-232 Input Hysteresis VCC = 5V 0.2 0.5 1.0 V
RS-232 Input Resistance 3 5 7 kΩ
TTL/CMOS Output Voltage Low IOUT = 3.2mA 0.2 0.4 V
TTL/CMOS Output Voltage High IOUT = -1.0mA 3.5 VCC - 0.2 V
Sourcing VOUT = GND -2 -10
TTL/CMOS Output Short-Circuit Current mA
Shrinking VOUT = VCC 10 30
Normal operation, outputs disabled,
TTL/CMOS Output Leakage Current ±0.05 ±0.10 µA
Tables 1a–1d, 0V ≤ VOUT ≤ VCC, ENR_ = VCC
8 _______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
ELECTRICAL CHARACTERISTICS—MAX225/MAX244–MAX249 (continued)
MAX220–MAX249
(MAX225, VCC = 5.0V ±5%; MAX244–MAX249, VCC = +5.0V ±10%, external capacitors C1–C4 = 1µF; TA = TMIN to TMAX; unless oth-
erwise noted.)
PARAMETER CONDITIONS MIN TYP MAX UNITS
POWER SUPPLY AND CONTROL LOGIC
MAX225 4.75 5.25
Operating Supply Voltage V
MAX244–MAX249 4.5 5.5
MAX225 10 20
No load
VCC Supply Current MAX244–MAX249 11 30
mA
(Normal Operation) 3kΩ loads on MAX225 40
all outputs MAX244–MAX249 57
TA = +25°C 8 25
Shutdown Supply Current µA
TA = TMIN to TMAX 50
Leakage current ±1 µA
Control Input Threshold low 1.4 0.8
V
Threshold high 2.4 1.4
AC CHARACTERISTICS
CL = 50pF to 2500pF, RL = 3kΩ to 7kΩ, VCC = 5V,
Transition Slew Rate 5 10 30 V/µs
TA = +25°C, measured from +3V to -3V or -3V to +3V
Transmitter + to - Propagation
tPHLT - tPLHT 350 ns
Delay Difference (Normal Operation)
Receiver + to - Propagation
tPHLR - tPLHR 350 ns
Delay Difference (Normal Operation)
Receiver-Output Enable Time, Figure 3 tER 100 500 ns
Receiver-Output Disable Time, Figure 3 tDR 100 500 ns
MAX246–MAX249
5 µs
(excludes charge-pump startup)
Transmitter Enable Time tET
MAX225/MAX245–MAX249
10 ms
(includes charge-pump startup)
Transmitter Disable Time, Figure 4 tDT 100 ns
Note 7: The 300Ω minimum specification complies with EIA/TIA-232E, but the actual resistance when in shutdown mode or VCC =
0V is 10MΩ as is implied by the leakage specification.
_______________________________________________________________________________________ 9
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
MAX220-11
MAX220-12
VCC = 5V VCC = 5V WITH ALL TRANSMITTERS DRIVEN
8 LOADED WITH 5kΩ
16 V+ AND V- LOADED 8.5
TRANSMITTER SLEW RATE (V/µs)
6 EITHER V+ OR 10kb/sec
14 8.0 20kb/sec
V- LOADED
OUTPUT VOLTAGE (V)
V+, V (V)
1µF CAPACITORS
10 0 8 TRANSMITTERS 7.0 60kb/sec
40kb/s DATA RATE DRIVING 5kΩ AND
8 8 TRANSMITTERS -2
2000pF AT 20kbits/sec 6.5
LOADED WITH 3kΩ -4 V- LOADED
6 6.0 100kb/sec
-6 V+ AND V- LOADED
200kb/sec
4 5.5
-8
V+ LOADED ALL CAPACITIORS 1µF
2 -10 5.0
0 1 2 3 4 5 0 5 10 15 20 25 30 35 0 1 2 3 4 5
LOAD CAPACITANCE (nF) LOAD CURRENT (mA) LOAD CAPACITANCE (nF)
10 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+3V
0V* 50% 50%
+3V INPUT
INPUT
0V
VCC
OUTPUT 50% 50%
V+ GND
OUTPUT 0V
V-
tPHLR tPLHR
tPHLS tPLHS
tPLHT tPHLT
EN
RX OUT 1kΩ
RX IN RX VCC - 2V
+3V
SHDN
a) TEST CIRCUIT 0V
150pF
+3V OUTPUT DISABLE TIME (tDT)
EN INPUT V+
0V +5V
EN
OUTPUT ENABLE TIME (tER) 0V
+3.5V -5V
RECEIVER V-
OUTPUTS
+0.8V
a) TIMING DIAGRAM
b) ENABLE TIMING
+3V
EN
0V 1 OR 0 TX
EN INPUT
OUTPUT DISABLE TIME (tDR) 3kΩ 50pF
VOH
VOH - 0.5V
RECEIVER VCC - 2V
OUTPUTS
VOL + 0.5V b) TEST CIRCUIT
VOL
c) DISABLE TIMING
Figure 3. Receiver-Output Enable and Disable Timing Figure 4. Transmitter-Output Disable Timing
______________________________________________________________________________________ 11
+5V-Powered, Multichannel RS-232
Drivers/Receivers
Table 1a. MAX245 Control Pin Configurations
MAX220–MAX249
RA1–RA4 3-State,
1 0 Shutdown All 3-State All Active All Active
RA5 Active
12 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
Table 1d. MAX247/MAX248/MAX249 Control Pin Configurations
MAX220–MAX249
TRANSMITTERS RECEIVERS
OPERATION MAX247 TA1–TA4 TB1–TB4 RA1–RA4 RB1–RB5
ENTA ENTB ENRA ENRB
STATUS MAX248 TA1–TA4 TB1–TB4 RA1–RA4 RB1–RB4
MAX249 TA1–TA3 TB1–TB3 RA1–RA5 RB1–RB5
0 0 0 0 Normal Operation All Active All Active All Active All Active
All 3-State, except
0 0 0 1 Normal Operation All Active All Active All Active RB5 stays active on
MAX247
0 0 1 0 Normal Operation All Active All Active All 3-State All Active
All 3-State, except
0 0 1 1 Normal Operation All Active All Active All 3-State RB5 stays active on
MAX247
0 1 0 0 Normal Operation All Active All 3-State All Active All Active
All 3-State, except
0 1 0 1 Normal Operation All Active All 3-State All Active RB5 stays active on
MAX247
0 1 1 0 Normal Operation All Active All 3-State All 3-State All Active
All 3-State, except
0 1 1 1 Normal Operation All Active All 3-State All 3-State RB5 stays active on
MAX247
1 0 0 0 Normal Operation All 3-State All Active All Active All Active
All 3-State, except
1 0 0 1 Normal Operation All 3-State All Active All Active RB5 stays active on
MAX247
1 0 1 0 Normal Operation All 3-State All Active All 3-State All Active
All 3-State, except
1 0 1 1 Normal Operation All 3-State All Active All 3-State RB5 stays active on
MAX247
Low-Power Low-Power
1 1 0 0 Shutdown All 3-State All 3-State
Receive Mode Receive Mode
Low-Power
1 1 1 0 Shutdown All 3-State All 3-State All 3-State
Receive Mode
______________________________________________________________________________________ 13
+5V-Powered, Multichannel RS-232
Drivers/Receivers
_______________Detailed Description mode, in three-state mode, or when device power is
MAX220–MAX249
14 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
nominal 5kΩ values. The receivers implement Type 1 Shutdown—MAX222–MAX242
MAX220–MAX249
interpretation of the fault conditions of V.28 and On the MAX222‚ MAX235‚ MAX236‚ MAX240‚ and
EIA/TIA-232E. MAX241‚ all receivers are disabled during shutdown.
The receiver input hysteresis is typically 0.5V with a On the MAX223 and MAX242‚ two receivers continue to
guaranteed minimum of 0.2V. This produces clear out- operate in a reduced power mode when the chip is in
put transitions with slow-moving input signals, even shutdown. Under these conditions‚ the propagation
with moderate amounts of noise and ringing. The delay increases to about 2.5µs for a high-to-low input
receiver propagation delay is typically 600ns and is transition. When in shutdown, the receiver acts as a
independent of input swing direction. CMOS inverter with no hysteresis. The MAX223 and
MAX242 also have a receiver output enable input (EN
Low-Power Receive Mode for the MAX242 and EN for the MAX223) that allows
The low-power receive-mode feature of the MAX223, receiver output control independent of SHDN (SHDN
MAX242, and MAX245–MAX249 puts the IC into shut- for MAX241). With all other devices‚ SHDN (SHDN for
down mode but still allows it to receive information. This MAX241) also disables the receiver outputs.
is important for applications where systems are periodi- The MAX225 provides five transmitters and five
cally awakened to look for activity. Using low-power receivers‚ while the MAX245 provides ten receivers and
receive mode, the system can still receive a signal that eight transmitters. Both devices have separate receiver
will activate it on command and prepare it for communi- and transmitter-enable controls. The charge pumps
cation at faster data rates. This operation conserves turn off and the devices shut down when a logic high is
system power. applied to the ENT input. In this state, the supply cur-
Negative Threshold—MAX243 rent drops to less than 25µA and the receivers continue
The MAX243 is pin compatible with the MAX232A, differ- to operate in a low-power receive mode. Driver outputs
ing only in that RS-232 cable fault protection is removed enter a high-impedance state (three-state mode). On
on one of the two receiver inputs. This means that control the MAX225‚ all five receivers are controlled by the
lines such as CTS and RTS can either be driven or left ENR input. On the MAX245‚ eight of the receiver out-
floating without interrupting communication. Different puts are controlled by the ENR input‚ while the remain-
cables are not needed to interface with different pieces of ing two receivers (RA5 and RB5) are always active.
equipment. RA1–RA4 and RB1–RB4 are put in a three-state mode
when ENR is a logic high.
The input threshold of the receiver without cable fault
protection is -0.8V rather than +1.4V. Its output goes Receiver and Transmitter Enable
positive only if the input is connected to a control line Control Inputs
that is actively driven negative. If not driven, it defaults The MAX225 and MAX245–MAX249 feature transmitter
to the 0 or “OK to send” state. Normally‚ the MAX243’s and receiver enable controls.
other receiver (+1.4V threshold) is used for the data line The receivers have three modes of operation: full-speed
(TD or RD)‚ while the negative threshold receiver is con- receive (normal active)‚ three-state (disabled)‚ and low-
nected to the control line (DTR‚ DTS‚ CTS‚ RTS, etc.). power receive (enabled receivers continue to function
Other members of the RS-232 family implement the at lower data rates). The receiver enable inputs control
optional cable fault protection as specified by EIA/TIA- the full-speed receive and three-state modes. The
232E specifications. This means a receiver output goes transmitters have two modes of operation: full-speed
high whenever its input is driven negative‚ left floating‚ transmit (normal active) and three-state (disabled). The
or shorted to ground. The high output tells the serial transmitter enable inputs also control the shutdown
communications IC to stop sending data. To avoid this‚ mode. The device enters shutdown mode when all
the control lines must either be driven or connected transmitters are disabled. Enabled receivers function in
with jumpers to an appropriate positive voltage level. the low-power receive mode when in shutdown.
______________________________________________________________________________________ 15
+5V-Powered, Multichannel RS-232
Drivers/Receivers
Tables 1a–1d define the control states. The MAX244 The MAX249 provides ten receivers and six drivers with
MAX220–MAX249
has no control pins and is not included in these tables. four control pins. The ENRA and ENRB receiver enable
The MAX246 has ten receivers and eight drivers with inputs each control five receiver outputs. The ENTA
two control pins, each controlling one side of the and ENTB transmitter enable inputs control three dri-
device. A logic high at the A-side control input (ENA) vers each. There is no always-active receiver. The
causes the four A-side receivers and drivers to go into device enters shutdown mode and transmitters go into
a three-state mode. Similarly, the B-side control input a three-state mode with a logic high on both ENTA and
(ENB) causes the four B-side drivers and receivers to ENTB. In shutdown mode, active receivers operate in a
go into a three-state mode. As in the MAX245, one A- low-power receive mode at data rates up to 20kb/s.
side and one B-side receiver (RA5 and RB5) remain __________Applications Information
active at all times. The entire device is put into shut-
down mode when both the A and B sides are disabled Figures 5 through 25 show pin configurations and typi-
(ENA = ENB = +5V). cal operating circuits. In applications that are sensitive
to power-supply noise, VCC should be decoupled to
The MAX247 provides nine receivers and eight drivers ground with a capacitor of the same value as C1 and
with four control pins. The ENRA and ENRB receiver C2 connected as close as possible to the device.
enable inputs each control four receiver outputs. The
ENTA and ENTB transmitter enable inputs each control
four drivers. The ninth receiver (RB5) is always active.
The device enters shutdown mode with a logic high on
both ENTA and ENTB.
The MAX248 provides eight receivers and eight drivers
with four control pins. The ENRA and ENRB receiver
enable inputs each control four receiver outputs. The
ENTA and ENTB transmitter enable inputs control four
drivers each. This part does not have an always-active
receiver. The device enters shutdown mode and trans-
mitters go into a three-state mode with a logic high on
both ENTA and ENTB.
16 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+5V INPUT C3
TOP VIEW
C5
16
1 VCC
C1+ 1 16 VCC C1+ V+ 2 +10V
C1 +5V TO +10V
V+ 2 3 C1-
15 GND VOLTAGE DOUBLER
4
C1- 3 C2+ +10V TO -10V 6 -10V
14 T1OUT C2 5 C2- VOLTAGE INVERTER
V-
C4
C2+ 4 MAX220 13 R1IN
+5V
MAX232
C2- 5 MAX232A 12 R1OUT 400kΩ
V- 6 11 T1IN T1OUT 14
11 T1IN
+5V
T2OUT 7 10 T2IN TTL/CMOS RS-232
INPUTS 400kΩ OUTPUTS
R2IN 8 9 R2OUT 10 T2IN T2OUT 7
GND
15
+5V INPUT C3
TOP VIEW ALL CAPACITORS = 0.1µF
C5
17
2 VCC 3 +10V
C1+ +5V TO +10V
C1 V+
(N.C.) EN 1 4 C1- VOLTAGE DOUBLER
20 SHDN
5
(N.C.) EN 1 C1+ 2 C2+ 7 -10V
18 SHDN 19 VCC
C2 +10V TO -10V V-
6 C2- C4
VOLTAGE INVERTER
C1+ 2 17 VCC V+ 3 18 GND
V+ 3 C1- 4 +5V
16 GND 17 T1OUT (EXCEPT MAX220)
400kΩ
C1- 4 15 T1OUT C2+ 5 MAX222 16 N.C.
MAX242 12 T1IN T1OUT 15
C2+ 5 MAX222 14 R1IN C2- 6 15 R1IN +5V
MAX242 TTL/CMOS RS-232
V- 7 400kΩ (EXCEPT MAX220)
C2- 6 13 R1OUT 14 R1OUT INPUTS OUTPUTS
11 T2IN T2OUT 8
V- 7 12 T1IN T2OUT 8 13 N.C.
T2OUT 8 11 T2IN R2IN 9 12 T1IN 13 R1OUT R1IN 14
R2IN 9 10 R2OUT R2OUT 10 11 T2IN
TTL/CMOS 5kΩ RS-232
OUTPUTS INPUTS
DIP/SO 10 R2OUT R2IN 9
SSOP
1 (N.C.) EN 5kΩ
( ) ARE FOR MAX222 ONLY. 18
GND SHDN
PIN NUMBERS IN TYPICAL OPERATING CIRCUIT ARE FOR DIP/SO PACKAGES ONLY.
16
______________________________________________________________________________________ 17
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+5V
TOP VIEW
0.1
28 27
+5V VCC VCC
400kΩ
T1IN
3 11
ENR 1 +5V T1OUT
28 VCC
ENR 2 400kΩ
27 VCC
T2IN
T1IN 3 4 12
26 ENT T2OUT
+5V
T2IN 4 25 T3IN 400kΩ
R1OUT 5 MAX225 24 T4IN T3IN
25 18
+5V T3OUT
R2OUT 6 23 T5IN
400kΩ
R3OUT 7 22 R4OUT
T4IN
24 17
R3IN 8 21 R5OUT +5V T4OUT
R2IN 9 20 R5IN 400kΩ
T5IN T5OUT
R1IN 10 19 R4IN 23 16
T1OUT 11 18 T3OUT ENT
26 15
T2OUT 12 17 T4OUT T5OUT
SO R2OUT R2IN
6 9
5kΩ
R3OUT R3IN
7 8
MAX225 FUNCTIONAL DESCRIPTION
5kΩ
5 RECEIVERS
5 TRANSMITTERS R4OUT R4IN
22 19
2 CONTROL PINS
1 RECEIVER ENABLE (ENR) 5kΩ
1 TRANSMITTER ENABLE (ENT)
R5OUT R5IN
21 20
5kΩ
1 ENR
2 ENR
PINS (ENR, GND, VCC, T5OUT) ARE INTERNALLY CONNECTED. GND GND
CONNECT EITHER OR BOTH EXTERNALLY. T5OUT IS A SINGLE DRIVER. 13 14
18 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+5V INPUT
TOP VIEW 1.0µF
11
12 1.0µF
C1+ VCC 13
1.0µF 14 +5V TO +10V V+
C1- VOLTAGE DOUBLER
15
C2+ +10V TO -10V 17
1.0µF VOLTAGE INVERTER V-
16 C2-
1.0µF
+5V
400kΩ
7 T1IN T1OUT 2
T1
T3OUT 1 28 T4OUT +5V
GND 10 19 R5OUT*
8 R1OUT R1IN 9
VCC 11 18 R5IN* R1
5kΩ
C1+ 12 17 V-
V+ 13 16 C2- R2IN 4
5 R2OUT
R2
C1- 14 15 C2+
5kΩ
Wide SO/
SSOP LOGIC 26 R3OUT R3IN 27 RS-232
R3
OUTPUTS INPUTS
5kΩ
22 R4OUT R4IN 23
R4
5kΩ
19 R5OUT R5IN 18
R5
*R4 AND R5 IN MAX223 REMAIN ACTIVE IN SHUTDOWN 5kΩ
NOTE: PIN LABELS IN ( ) ARE FOR MAX241 24 EN (EN) SHDN 25
(SHDN)
GND
10
______________________________________________________________________________________ 19
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+5V INPUT
TOP VIEW 1.0µF
7 1.0µF
8 C1+ VCC
V+ 9
1.0µF 10 C1- +5V TO +10V
VOLTAGE DOUBLER
T3OUT 1 20 T4OUT 11
C2+ +10V TO -10V 13
1.0µF 12 V-
T1OUT 2 19 T5IN C2- VOLTAGE INVERTER
1.0µF
T2OUT 3 18 N.C. +5V
400kΩ
T2IN 4 17 SHDN 5 T1IN T1OUT 2
T1
T1IN 5 MAX230 16 T5OUT +5V
400kΩ
GND 6 15 T4IN 4 T2IN T2OUT 3
T2
VCC 7 14 T3IN +5V
400kΩ
C1+ 8 13 V-
TTL/CMOS 14 T3IN T3OUT 1 RS-232
T3
V+ 9 12 C2- INPUTS +5V OUTPUTS
400kΩ
C1- 10 11 C2+ 15 T4IN T4OUT 20
T4
+5V
400kΩ
DIP/SO 19 T5IN T5OUT 16
T5
N.C. x 18 GND
17 SHDN
6
+5V INPUT
TOP VIEW 1.0µF +7.5V TO +12V
13 (15)
1 VCC 14 (16)
C1+ V+
1.0µF 2 +12V TO -12V 3
C1- VOLTAGE CONVERTER V-
C2
+5V 1.0µF
C+ 1 14 V+ C+ 1 16 V+
400kΩ
C- 2 13 VCC C- 2 15 VCC (10) (13)
8 T1IN T1OUT 11
T1
V- 3 12 GND V- 3 14 GND +5V
TTL/CMOS RS-232
T2OUT 4 MAX231 11 T1OUT T2OUT 4 MAX231 13 T1OUT INPUTS 400kΩ OUTPUTS
R2IN 5 10 R1IN R2IN 5 12 R1IN 7 T2IN T2OUT 4
T2
R2OUT 6 9 R1OUT R2OUT 6 11 R1OUT
(11) (12)
9 R1OUT R1IN 10
T2IN 7 8 T1IN T2IN 7 10 T1IN R1
GND
PIN NUMBERS IN ( ) ARE FOR SO PACKAGE 12 (14)
20 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+5V INPUT
1.0µF
TOP VIEW 7
+5V VCC
400kΩ
2 T1IN T1OUT 5
T2IN 1 20 R2OUT
+5V
T1IN 2 19 R2IN TTL/CMOS RS-232
INPUTS 400kΩ
R1OUT 3 OUTPUTS
18 T2OUT 1 T2IN T2OUT 18
R1IN 4 17 V-
3 R1OUT R1IN 4
T1OUT 5 MAX233 16 C2-
MAX233A
GND 6 15 C2+ TTL/CMOS 5kΩ RS-232
OUTPUTS INPUTS
VCC 7 14 V+ (C1-)
(V+) C1+ 8 13 C1- (C1+) 20 R2OUT R2IN 19
+5V INPUT
1.0µF
TOP VIEW
6 1.0µF
7
C1+ VCC 8
+5V TO +10V V+
1.0µF 9
C1- VOLTAGE DOUBLER
10
C2+ +10V TO -10V 12
1.0µF VOLTAGE INVERTER V-
11 C2- 1.0µF
T1OUT 1 16 T3OUT
+5V
T2OUT 2 15 T4OUT
400kΩ
T2IN 3 14 T4IN 4 T1IN T1OUT 1
T1
T1IN 4 MAX234 13 T3IN +5V
GND 5 12 V- 400kΩ
VCC 6 11 C2- 3 T2IN T2OUT 3
T2
C1+ 7 10 C2+ TTL/CMOS +5V RS-232
INPUTS 400kΩ OUTPUTS
V+ 8 9 C1-
13 T3IN T3OUT 16
T3
DIP/SO +5V
400kΩ
14 T4IN T4OUT 15
T4
GND
5
______________________________________________________________________________________ 21
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+5V INPUT
TOP VIEW 1.0µF
12
VCC
+5V
400kΩ
8 T1IN T1OUT 3
T1
+5V
400kΩ
7 T2IN T2OUT 4
T2
+5V
400kΩ
TTL/CMOS 15 T3IN T3OUT 2 RS-232
T3
INPUTS OUTPUTS
T4OUT 1 24 R3IN +5V
400kΩ
T3OUT 2 23 R3OUT T4OUT 1
16 T4IN
T4
T1OUT 3 22 T5IN
+5V
T2OUT 4 21 SHDN 400kΩ
R2IN 5 MAX235 20 EN 22 T5IN T5OUT 19
T5
R2OUT 6 19 T5OUT
T2IN 7 18 R4IN
9 R1OUT R1IN 10
T1
T1IN 8 17 R4OUT
5kΩ
R1OUT 9 16 T4IN
17 R4OUT R4IN 18
R4
5kΩ
14 R5OUT R5IN 13
R5
5kΩ
20 EN 21
SHDN
GND
11
22 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
TOP VIEW +5V INPUT
1.0µF
9 1.0µF
10 11
C1+ VCC V+
1.0µF +5V TO +10V
12
C1- VOLTAGE DOUBLER
13 15
C2+ V-
1.0µF +10V TO -10V
14 C2- 1.0µF
VOLTAGE INVERTER
+5V
400kΩ
7 T1IN T1OUT 2
T1
C1+ 10 15 V-
V+ 11 14 C2- R1IN 4
5 R1OUT
R1
C1- 12 13 C2+
5kΩ
DIP/SO
22 R2OUT R2IN 23 RS-232
TTL/CMOS R2
OUTPUTS INPUTS
5kΩ
17 R3OUT R3IN 16
R3
5kΩ
20 EN 21
SHDN
GND
______________________________________________________________________________________ 23
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
TOP VIEW
+5V INPUT
1.0µF
9 1.0µF
10 VCC 11
C1+ V+
+5V TO +10V
1.0µF 12 VOLTAGE DOUBLER
C1-
13 15
C2+ V-
1.0µF +10V TO -10V
14 VOLTAGE INVERTER 1.0µF
C2-
+5V
400kΩ
5kΩ
17 R3OUT R3IN 16
R3
5kΩ
GND
8
24 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
TOP VIEW
+5V INPUT
1.0µF
9 1.0µF
10 VCC 11
C1+ V+
+5V TO +10V
1.0µF 12
C1- VOLTAGE DOUBLER
13
C2+ 15
1.0µF +10V TO -10V V-
14 VOLTAGE INVERTER
C2- 1.0µF
+5V
400kΩ
DIP/SO 5kΩ
4 R2OUT R2IN 3
R2
5kΩ
17 R4OUT R4IN 16
R4
5kΩ
GND
8
______________________________________________________________________________________ 25
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
TOP VIEW
7.5V TO 13.2V
+5V INPUT INPUT
1.0µF
4 5
6 VCC V+
C1+ 8
V-
+10V TO -10V
1.0µF 7 1.0µF
C1- VOLTAGE INVERTER
+5V
400kΩ
24 T1IN T1OUT 19
T1
R1OUT 1 24 T1IN +5V
400kΩ
R1IN 2 23 T2IN
TTL/CMOS 23 T2IN T2OUT 20
GND 3 22 R2OUT T2 RS-232
INPUTS OUTPUTS
+5V
VCC 4 21 R2IN
400kΩ
V+ 5 MAX239 20 T2OUT
16 T3IN T3OUT 13
C+ 6 19 T1OUT T3
C- 7 18 R3IN
V- 8 17 R3OUT 1 R1OUT R1IN 2
R1
R5IN 9 16 T3IN
5kΩ
R5OUT 10 15 N.C.
DIP/SO
TTL/CMOS 17 R3OUT R3IN 18 RS-232
R3
OUTPUTS INPUTS
5kΩ
11 R4OUT R4IN 12
R4
5kΩ
10 R5OUT R5IN 9
R5
5kΩ
14 EN 15
N.C.
GND
3
26 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+5V INPUT
1.0µF
TOP VIEW
19
25 1.0µF
C1+ VCC 26
1.0µF 27 +5V TO +10V V+
C1- VOLTAGE DOUBLER
28
C2+ +5V TO -10V 30
1.0µF VOLTAGE INVERTER V-
29 C2- 1.0µF
+5V
400kΩ
15 T1IN T1OUT 7
T1
+5V
400kΩ
14 T2IN T2OUT 8
T2
R3OUT
T2OUT
T1OUT
T3OUT
T4OUT
R2IN
R3IN
N.C.
N.C.
N.C.
T5IN
+5V
400kΩ
+5V
400kΩ
N.C. 12 44 N.C. 38 T4IN T4OUT 5
T4
R2OUT 13 43 SHDN
T2IN 14 42 EN +5V
400kΩ
T1IN 15 41 T5OUT
R1OUT 16 40 R4IN 2 T5IN T5OUT 41
T5
R1IN 17 39 R4OUT
GND 18 MAX240 38 T4IN R1IN 17
16 R1OUT
VCC 19 37 T3IN R1
N.C. 20 36 R5OUT 5kΩ
N.C. 21 35 R5IN
N.C. 22 34 N.C. 13 R2OUT R2IN 10
R2
23
24
25
26
27
28
29
30
31
32
33
5kΩ
OUTPUTS INPUTS
5kΩ
Plastic FP
39 R4OUT R4IN 40
R4
5kΩ
36 R5OUT R5IN 35
R5
5kΩ
42 EN 43
SHDN
GND
18
______________________________________________________________________________________ 27
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
16
1
C1+ VCC
2 +10V
0.1µF +5V TO +10V V+
3 C1- VOLTAGE DOUBLER
4
C2+
C1+ 1 16 VCC +10V TO -10V 6 -10V
0.1µF 5 C2- V-
VOLTAGE INVERTER
V+ 2 15 GND 0.1µF
C1- 3 14 T1OUT +5V
V- 6 11 T1IN +5V
TTL/CMOS RS-232
INPUTS 400kΩ OUTPUTS
T2OUT 7 10 T2IN
DIP/SO
12 R1OUT R1IN 13
28 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+5V
TOP VIEW 1µF
1µF
20
21
C1+ VCC 22
1µF
TB4OUT
TA4OUT
TA3OUT
TA2OUT
TA1OUT
TB1OUT
TB2OUT
TB3OUT
23 C1- +5V TO +10V VOLTAGE DOUBLER V+
RA4IN
RA5IN
RB5IN
24 26
C2+ V- 1µF
1µF 25 C2-
6 5 4 3 2 1 44 43 42 41 40 +10V TO -10V VOLTAGE INVERTER
2 TA1OUT +5V +5V TB1OUT 44
400kΩ
15 TA1IN TB1IN 30
RA3IN 7 39 RB4IN
RA2IN 8 38 RB3IN +5V +5V
2 TA2OUT TB2OUT 43
RA1IN 9 37 RB2IN
400kΩ
RA1OUT 10 36 RB1IN 16 TA2IN TB2IN 29
RA2OUT 11 35 RB1OUT
RA3OUT 12
MAX244 34 RB2OUT 3 TA3OUT +5V +5V TB3OUT 42
RA4OUT 13 33 RB3OUT 400kΩ
RA5OUT 14 32 RB4OUT 17 TA3IN TB3IN 28
TA1IN 15 31 RB5OUT
4 TA4OUT +5V +5V TB4OUT 41
TA2IN 16 30 TB1IN
400kΩ
TA3IN 17 29 TB2IN 18 TA4IN TB4IN 27
9 RA1IN RB1IN 36
18 19 20 21 22 23 24 25 26 27 28
TA4IN
GND
C1+
V+
C1-
C2+
C2-
V-
TB4IN
TB3IN
VCC
5kΩ 5kΩ
5kΩ 5kΩ
MAX249 FUNCTIONAL DESCRIPTION
10 RECEIVERS 11 RA2OUT RB2OUT 34
5 A-SIDE RECEIVER 7 RA3IN RB3IN 38
5 B-SIDE RECEIVER
8 TRANSMITTERS 5kΩ 5kΩ
4 A-SIDE TRANSMITTERS
4 B-SIDE TRANSMITTERS 12 RA3OUT RB3OUT 33
NO CONTROL PINS 6 RA4IN RB4IN 39
5kΩ 5kΩ
13 RA4OUT RB4OUT 32
5 RA5IN RB5IN 40
5kΩ 5kΩ
14 RA5OUT RB5OUT 31
GND
19
______________________________________________________________________________________ 29
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+5V
TOP VIEW
1µF
40
VCC
ENR 1 40 VCC 16 TA1OUT +5V +5V TB1OUT 24
400kΩ
TA1IN 2 39 ENT
2 TA1IN TB1IN 38
TA2IN 3 38 TB1IN
17 TA2OUT +5V +5V TB2OUT 23
TA3IN 4 37 TB2IN
400kΩ
TA4IN 5 36 TB3IN
3 TA2IN TB2IN 37
RA5OUT 6 35 TB4IN
RA4OUT 7
MAX245 34 RB5OUT 18 TA3OUT +5V +5V TB3OUT 22
400kΩ
RA3OUT 8 33 RB4OUT
4 TA3IN TB3IN 36
RA2OUT 9 32 RB3OUT
19 TA4OUT +5V +5V TB4OUT 21
RA1OUT 10 31 RB2OUT
400kΩ
RA1IN 11 30 RB1OUT 5 TA4IN TB4IN 35
RA2IN 12 29 RB1IN
1 ENR ENT 39
RA3IN 13 28 RB2IN
11 RA1IN RB1IN 29
RA4IN 14 27 RB3IN
RA5IN 15 26 RB4IN
5kΩ 5kΩ
TA1OUT 16 25 RB5IN
TA4OUT 19 22 TB3OUT
5kΩ 5kΩ
GND 20 21 TB4OUT
9 RA2OUT RB2OUT 31
DIP 13 RA3IN RB3IN 27
5kΩ 5kΩ
8 RA3OUT RB3OUT 32
MAX245 FUNCTIONAL DESCRIPTION
14 RA4IN RB4IN 26
10 RECEIVERS
5 A-SIDE RECEIVERS (RA5 ALWAYS ACTIVE)
5 B-SIDE RECEIVERS (RB5 ALWAYS ACTIVE) 5kΩ 5kΩ
8 TRANSMITTTERS
7 RA4OUT RB4OUT 33
4 A-SIDE TRANSMITTERS
15 RA5IN RB5IN 25
2 CONTROL PINS
1 RECEIVER ENABLE (ENR)
5kΩ 5kΩ
1 TRANSMITTER ENABLE (ENT)
6 RA5OUT RB5OUT 34
GND
20
30 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+5V
TOP VIEW
1µF
40
VCC
ENA 1 40 VCC +5V +5V
16 TA1OUT TB1OUT 24
TA1IN 2 39 ENB
400kΩ
TA2IN 3 38 TB1IN
2 TA1IN TB1IN 38
TA3IN 4 37 TB2IN +5V +5V
TA4IN 5 36 TB3IN 17 TA2OUT TB2OUT 23
400kΩ
RA5OUT 6 35 TB4IN
3 TA2IN TB2IN 37
RA4OUT 7 MAX246 34 RB5OUT +5V +5V
RA3OUT 8 33 RB4OUT 18 TA3OUT TB3OUT 22
5kΩ 5kΩ
MAX246 FUNCTIONAL DESCRIPTION
10 RECEIVERS 8 RA3OUT RB3OUT 32
5 A-SIDE RECEIVERS (RA5 ALWAYS ACTIVE)
14 RA4IN RB4IN 26
5 B-SIDE RECEIVERS (RB5 ALWAYS ACTIVE)
8 TRANSMITTERS
5kΩ 5kΩ
4 A-SIDE TRANSMITTERS
4 B-SIDE TRANSMITTERS 7 RA4OUT RB4OUT 33
2 CONTROL PINS 15 RA5IN RB5IN 25
ENABLE A-SIDE (ENA)
ENABLE B-SIDE (ENB) 5kΩ 5kΩ
6 RA5OUT RB5OUT 34
GND
20
______________________________________________________________________________________ 31
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+5V
TOP VIEW
1µF
40
1 ENTA VCC ENTB 39
ENTA 1 40 VCC +5V +5V
16 TA1OUT TB1OUT 24
TA1IN 2 39 ENTB
400kΩ
TA2IN 3 38 TB1IN 2 TA1IN TB1IN 38
TA3IN 4 37 TB2IN +5V +5V
17 TA2OUT TB2OUT 23
TA4IN 5 36 TB3IN
400kΩ
RB5OUT 6 35 TB4IN 3 TA2IN TB2IN 37
RA4OUT 7 MAX247 34 RB4OUT +5V +5V
18 TA3OUT TB3OUT 22
RA3OUT 8 33 RB3OUT
400kΩ
RA2OUT 9 32 RB2OUT
4 TA3IN TB3IN 36
RA1OUT 10 31 RB1OUT +5V +5V
19 TA4OUT TB4OUT 21
ENRA 11 30 ENRB
400kΩ
RA1IN 12 29 RB1IN
5 TA4IN TB4IN 35
RA2IN 13 28 RB2IN
6 RB5OUT RB5IN 25
RA3IN 14 27 RB3IN
TA1OUT 16 25 RB5IN
TA3OUT 18 23 TB2OUT
5kΩ 5kΩ
TA4OUT 19 22 TB3OUT
32 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
TOP VIEW +5V
1µF
1µF
20
21
C1+ VCC 22
TA4OUT
TA3OUT
TA2OUT
TA1OUT
TB1OUT
TB2OUT
TB3OUT
TA4OUT
1µF V+
23 C1-
RA3IN
RA4IN
RB4IN
+5V TO +10V VOLTAGE DOUBLER 26
24 V-
C2+ 1µF
6 5 4 3 2 1 44 43 42 41 40 1µF 25 C2- +10V TO -10V VOLTAGE INVERTER
18 ENTA ENTB 27
+5V +5V
1 TA1OUT TB1OUT 44
RA2IN 7 39 RB3IN 400kΩ
RA1IN 8 38 RB2IN 14 TA1IN TB1IN 31
ENRA 9 37 RB1IN +5V +5V
RA1OUT 10 36 ENRB 2 TA2OUT TB2OUT 43
RA2OUT 11 35 RB1OUT 400kΩ
RA3OUT 12
MAX248 34 RB2OUT 15 TA2IN TB2IN 30
RA4OUT 13 33 RB3OUT +5V +5V
3 TA3OUT TB3OUT 42
TA1IN 14 32 RB4OUT
TA2IN 15 31 TB1IN 400kΩ
16 TA3IN TB3IN 29
TA3IN 16 30 TB2IN
TA4IN 17 29 TB3IN
+5V +5V
4 TA4OUT TB4OUT 41
400kΩ
18 19 20 21 22 23 24 25 26 27 28
17 TA4IN TB4IN 28
ENTA
GND
C1+
V+
C1-
C2+
C2-
V-
ENTB
TB4IN
VCC
8 RA1IN RB1IN 37
PLCC
5kΩ 5kΩ
5kΩ 5kΩ
13 RA4OUT RB4OUT 32
9 ENRA ENRB 36
GND
19
______________________________________________________________________________________ 33
+5V-Powered, Multichannel RS-232
Drivers/Receivers
MAX220–MAX249
+5V
TOP VIEW 1µF
1µF
20
21
C1+ VCC 22
TA3OUT
TA2OUT
TA1OUT
TB1OUT
TB2OUT
TB3OUT
1µF V+
23 C1-
RA3IN
RA4IN
RA5IN
RB5IN
RB4IN
+5V TO +10V VOLTAGE DOUBLER 26
24 V-
C2+ 1µF
6 5 4 3 2 1 44 43 42 41 40 1µF 25 C2- +10V TO -10V VOLTAGE INVERTER
18 ENTA ENTB 27
+5V +5V
1 TA1OUT TB1OUT 44
RA2IN 7 39 RB3IN 400kΩ
RA1IN 8 38 RB2IN 15 TA1IN TB1IN 30
ENRA 9 37 RB1IN +5V +5V
RA1OUT 10 36 ENRB 2 TA2OUT TB2OUT 43
RA2OUT 11 35 RB1OUT 400kΩ
RA3OUT 12
MAX249 34 RB2OUT 16 TA2IN TB2IN 29
RA4OUT 13 33 RB3OUT +5V +5V
3 TA3OUT TB3OUT 42
RA5OUT 14 32 RB4OUT
TA1IN 15 31 RB5OUT 400kΩ
17 TA3IN TB3IN 28
TA2IN 16 30 TB1IN
8 RA1IN RB1IN 37
TA3IN 17 29 TB2IN
18 19 20 21 22 23 24 25 26 27 28 5kΩ 5kΩ
ENTA
GND
C1+
V+
C1-
C2+
C2-
V-
ENTB
TB3IN
VCC
10 RA1OUT RB1OUT 35
7 RA2IN RB2IN 38
PLCC
5kΩ 5kΩ
11 RA2OUT RB2OUT 34
MAX249 FUNCTIONAL DESCRIPTION
6 RA3IN RB3IN 39
10 RECEIVERS
5 A-SIDE RECEIVERS
5kΩ 5kΩ
5 B-SIDE RECEIVERS
6 TRANSMITTERS 12 RA3OUT RB3OUT 33
3 A-SIDE TRANSMITTERS 5 RA4IN RB4IN 40
3 B-SIDE TRANSMITTERS
4 CONTROL PINS
5kΩ 5kΩ
ENABLE RECEIVER A-SIDE (ENRA)
ENABLE RECEIVER B-SIDE (ENRB) 13 RA4OUT RB4OUT 32
ENABLE RECEIVER A-SIDE (ENTA) 4 RA5IN RB5IN 41
ENABLE RECEIVER B-SIDE (ENTB)
5kΩ 5kΩ
14 RA5OUT RB5OUT 31
9 ENRA ENRB 36
GND
19
34 ______________________________________________________________________________________
+5V-Powered, Multichannel RS-232
Drivers/Receivers
___________________________________________Ordering Information (continued)
MAX220–MAX249
PART TEMP RANGE PIN-PACKAGE PART TEMP RANGE PIN-PACKAGE
MAX222CPN 0°C to +70°C 18 Plastic DIP MAX232AC/D 0°C to +70°C Dice*
MAX222CWN 0°C to +70°C 18 Wide SO MAX232AEPE -40°C to +85°C 16 Plastic DIP
MAX222C/D 0°C to +70°C Dice* MAX232AESE -40°C to +85°C 16 Narrow SO
MAX222EPN -40°C to +85°C 18 Plastic DIP MAX232AEWE -40°C to +85°C 16 Wide SO
MAX222EWN -40°C to +85°C 18 Wide SO MAX232AEJE -40°C to +85°C 16 CERDIP
MAX222EJN -40°C to +85°C 18 CERDIP MAX232AMJE -55°C to +125°C 16 CERDIP
MAX222MJN -55°C to +125°C 18 CERDIP MAX232AMLP -55°C to +125°C 20 LCC
MAX223CAI 0°C to +70°C 28 SSOP MAX233CPP 0°C to +70°C 20 Plastic DIP
MAX223CWI 0°C to +70°C 28 Wide SO MAX233EPP -40°C to +85°C 20 Plastic DIP
MAX223C/D 0°C to +70°C Dice* MAX233ACPP 0°C to +70°C 20 Plastic DIP
MAX223EAI -40°C to +85°C 28 SSOP MAX233ACWP 0°C to +70°C 20 Wide SO
MAX223EWI -40°C to +85°C 28 Wide SO MAX233AEPP -40°C to +85°C 20 Plastic DIP
MAX225CWI 0°C to +70°C 28 Wide SO MAX233AEWP -40°C to +85°C 20 Wide SO
MAX225EWI -40°C to +85°C 28 Wide SO MAX234CPE 0°C to +70°C 16 Plastic DIP
MAX230CPP 0°C to +70°C 20 Plastic DIP MAX234CWE 0°C to +70°C 16 Wide SO
MAX230CWP 0°C to +70°C 20 Wide SO MAX234C/D 0°C to +70°C Dice*
MAX230C/D 0°C to +70°C Dice* MAX234EPE -40°C to +85°C 16 Plastic DIP
MAX230EPP -40°C to +85°C 20 Plastic DIP MAX234EWE -40°C to +85°C 16 Wide SO
MAX230EWP -40°C to +85°C 20 Wide SO MAX234EJE -40°C to +85°C 16 CERDIP
MAX230EJP -40°C to +85°C 20 CERDIP MAX234MJE -55°C to +125°C 16 CERDIP
MAX230MJP -55°C to +125°C 20 CERDIP MAX235CPG 0°C to +70°C 24 Wide Plastic DIP
MAX231CPD 0°C to +70°C 14 Plastic DIP MAX235EPG -40°C to +85°C 24 Wide Plastic DIP
MAX231CWE 0°C to +70°C 16 Wide SO MAX235EDG -40°C to +85°C 24 Ceramic SB
MAX231CJD 0°C to +70°C 14 CERDIP MAX235MDG -55°C to +125°C 24 Ceramic SB
MAX231C/D 0°C to +70°C Dice* MAX236CNG 0°C to +70°C 24 Narrow Plastic DIP
MAX231EPD -40°C to +85°C 14 Plastic DIP MAX236CWG 0°C to +70°C 24 Wide SO
MAX231EWE -40°C to +85°C 16 Wide SO MAX236C/D 0°C to +70°C Dice*
MAX231EJD -40°C to +85°C 14 CERDIP MAX236ENG -40°C to +85°C 24 Narrow Plastic DIP
MAX231MJD -55°C to +125°C 14 CERDIP MAX236EWG -40°C to +85°C 24 Wide SO
MAX232CPE 0°C to +70°C 16 Plastic DIP MAX236ERG -40°C to +85°C 24 Narrow CERDIP
MAX232CSE 0°C to +70°C 16 Narrow SO MAX236MRG -55°C to +125°C 24 Narrow CERDIP
MAX232CWE 0°C to +70°C 16 Wide SO MAX237CNG 0°C to +70°C 24 Narrow Plastic DIP
MAX232C/D 0°C to +70°C Dice* MAX237CWG 0°C to +70°C 24 Wide SO
MAX232EPE -40°C to +85°C 16 Plastic DIP MAX237C/D 0°C to +70°C Dice*
MAX232ESE -40°C to +85°C 16 Narrow SO MAX237ENG -40°C to +85°C 24 Narrow Plastic DIP
MAX232EWE -40°C to +85°C 16 Wide SO MAX237EWG -40°C to +85°C 24 Wide SO
MAX232EJE -40°C to +85°C 16 CERDIP MAX237ERG -40°C to +85°C 24 Narrow CERDIP
MAX232MJE -55°C to +125°C 16 CERDIP MAX237MRG -55°C to +125°C 24 Narrow CERDIP
MAX232MLP -55°C to +125°C 20 LCC MAX238CNG 0°C to +70°C 24 Narrow Plastic DIP
MAX232ACPE 0°C to +70°C 16 Plastic DIP MAX238CWG 0°C to +70°C 24 Wide SO
MAX232ACSE 0°C to +70°C 16 Narrow SO MAX238C/D 0°C to +70°C Dice*
MAX232ACWE 0°C to +70°C 16 Wide SO MAX238ENG -40°C to +85°C 24 Narrow Plastic DIP
* Contact factory for dice specifications.
______________________________________________________________________________________ 35
+5V-Powered, Multichannel RS-232
Drivers/Receivers
___________________________________________Ordering Information (continued)
MAX220–MAX249
Package Information
For the latest package outline information, go to
www.maxim-ic.com/packages.
Revision History
Pages changed at Rev 15: 2–5, 8, 9, 36
Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are
implied. Maxim reserves the right to change the circuitry and specifications without notice at any time.
36 __________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 (408) 737-7600
© 2006 Maxim Integrated Products is a registered trademark of Maxim Integrated Products, Inc.
PRODUCT SPECIFICATION
GENERAL DESCRIPTION
nRF905 is a single-chip radio transceiver for the 433/868/915 MHz ISM band. The
transceiver consists of a fully integrated frequency synthesiser, receiver chain with
demodulator, a power amplifier, a crystal oscillator and a modulator. The
ShockBurstTM feature automatically handles preamble and CRC. Configuration is
easily programmable by use of the SPI interface. Current consumption is very low, in
transmit only 9mA at an output power of -10dBm, and in receive mode 12.5mA. Built
in power down modes makes power saving easily realizable.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 1 of 41 December 2005
PRODUCT SPECIFICATION
ORDERING INFORMATION
Type Number Description Version
nRF905 IC 32L QFN 5x5mm -
nRF905-EVKIT 433 Evaluation kit 433MHz 1.0
nRF905-EVKIT 868/915 Evaluation kit 868/915MHz 1.0
BLOCK DIAGRAM
DVDD_1V2 (31)
VDD (17)
VDD (25)
VSS (16)
VSS (18)
VSS (22)
VSS (24)
VSS (26)
VSS (27)
VSS (28)
VSS (29)
VSS (30)
VDD (4)
VSS (5)
VSS (9)
XC1 (14)
MISO (10)
MOSI (11) SPI Voltage Crystal
SCK (12)
interface regulators oscillator XC2 (15)
TX - addr.
CSN (13)
TX - reg.
IF BBF
RX - reg.
Config-reg. LNA
TRX_CE (1)
PWR_UP (2) ShockBurst
TX_EN (32)
Demod
VDD_PA (19)
Dataslicer Frequency
Synthesiser
CD (6) CRC code/
decode
AM (7)
Address
DR (8) ANT1 (20)
decode
PA
GFSK ANT2 (21)
uPCLK (3)
filter
Manchester
encoder/ IREF (23)
decoder
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 2 of 41 December 2005
PRODUCT SPECIFICATION
TABLE OF CONTENTS
1 Pin Functions..................................................................................................................... 4
2 Pin Assignment ................................................................................................................. 5
3 Electrical Specifications.................................................................................................... 6
4 Current Consumption........................................................................................................ 8
5 Modes of Operation .......................................................................................................... 9
5.1 Active Modes ........................................................................................................... 9
5.2 Power Saving Modes................................................................................................ 9
5.3 nRF ShockBurst™ Mode ......................................................................................... 9
5.4 Typical ShockBurstTM TX ...................................................................................... 10
5.5 Typical ShockBurstTM RX...................................................................................... 12
5.6 Power Down Mode................................................................................................. 14
5.7 Standby Mode......................................................................................................... 14
6 Device Configuration...................................................................................................... 15
6.1 SPI Register Configuration .................................................................................... 15
6.2 SPI Instruction Set.................................................................................................. 16
6.3 SPI Timing ............................................................................................................. 17
6.4 RF – Configuration Register Description............................................................... 19
6.5 Register Contents ................................................................................................... 20
7 Important Timing Data.................................................................................................... 21
7.1 Device Switching Times ........................................................................................ 21
7.2 ShockBurstTM TX timing........................................................................................ 21
7.3 ShockBurstTM RX timing........................................................................................ 22
7.4 Preamble................................................................................................................. 22
7.5 Time On Air ........................................................................................................... 23
8 Peripheral RF Information .............................................................................................. 24
8.1 Crystal Specification .............................................................................................. 24
8.2 External Clock Reference....................................................................................... 24
8.3 Microprocessor Output Clock ................................................................................ 24
8.4 Antenna Output ...................................................................................................... 25
8.5 Output Power Adjustment ...................................................................................... 25
8.6 Modulation ............................................................................................................. 25
8.7 Output Frequency................................................................................................... 26
8.8 PCB Layout and Decoupling Guidelines ............................................................... 27
9 nRF905 features .............................................................................................................. 28
9.1 Carrier Detect. ........................................................................................................ 28
9.2 Address Match........................................................................................................ 28
9.3 Data Ready ............................................................................................................. 28
9.4 Auto Retransmit ..................................................................................................... 29
9.5 RX Reduced Power Mode...................................................................................... 29
10 Package Outline .......................................................................................................... 30
10.1 Package marking .................................................................................................... 31
11 Application Examples................................................................................................. 32
11.1 Differential Connection to a Loop Antenna ........................................................... 32
11.2 PCB Layout Example; Differential Connection to a Loop Antenna ...................... 33
11.3 Single ended connection to 50Ω antenna ............................................................... 34
11.4 PCB Layout Example; Single Ended Connection to 50Ω Antenna ....................... 36
12 Absolute Maximum Ratings ....................................................................................... 37
13 Glossary of Terms....................................................................................................... 38
14 Definitions .................................................................................................................. 39
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 3 of 41 December 2005
PRODUCT SPECIFICATION
1 PIN FUNCTIONS
Pin Name Pin function Description
1 TRX_CE Digital input Enables chip for receive and transmit
2 PWR_UP Digital input Power up chip
3 uPCLK Clock output Output clock, divided crystal oscillator full-swing clock
4 VDD Power Power supply (+3V DC)
5 VSS Power Ground (0V)
6 CD Digital output Carrier Detect
7 AM Digital output Address Match
8 DR Digital output Receive and transmit Data Ready
9 VSS Power Ground (0V)
10 MISO SPI - interface SPI output
11 MOSI SPI - interface SPI input
12 SCK SPI - Clock SPI clock
13 CSN SPI - enable SPI enable, active low
14 XC1 Analog Input Crystal pin 1/ External clock reference pin
15 XC2 Analog Output Crystal pin 2
16 VSS Power Ground (0V)
17 VDD Power Power supply (+3V DC)
18 VSS Power Ground
19 VDD_PA Power output Positive supply (1.8V) to nRF905 power amplifier
20 ANT1 RF Antenna interface 1
21 ANT2 RF Antenna interface 2
22 VSS Power Ground (0V)
23 IREF Analog Input Reference current
24 VSS Power Ground (0V)
25 VDD Power Power supply (+3V DC)
26 VSS Power Ground (0V)
27 VSS Power Ground (0V)
28 VSS Power Ground (0V)
29 VSS Power Ground (0V)
30 VSS Power Ground (0V)
31 DVDD_1V2 Power Low voltage positive digital supply output for de-coupling
32 TX_EN Digital input TX_EN=”1”TX mode, TX_EN=”0”RX mode
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 4 of 41 December 2005
PRODUCT SPECIFICATION
2 PIN ASSIGNMENT
TX_EN DVDD_1V2 VSS VSS VSS VSS VSS VDD
32 31 30 29 28 27 26 25
TRX_CE 1 24 VSS
PWR_UP 2 23 IREF
nRF905
uPCLK 3 32L QFN 5x5
22 VSS
VDD 4 21 ANT2
VSS 5 20 ANT1
CD 6 19 VDD_PA
AM 7 18 VSS
DR 8 17 VDD
9 10 11 12 13 14 15 16
VSS MISO MOSI SCK CSN XC1 XC2 VSS
Figure 2 nRF905 pin assignment (top view) for a 32L QFN 5x5 package.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 5 of 41 December 2005
PRODUCT SPECIFICATION
3 ELECTRICAL SPECIFICATIONS
Conditions: VDD = +3V VSS = 0V, TEMP = -40ºC to +85ºC (typical +27ºC)
Symbol Parameter (condition) Notes Min. Typ. Max. Units
Operating conditions
VDD Supply voltage 1.9 3.6 V
TEMP Operating temperature -40 85 ºC
Digital input/output
VIH HIGH level input voltage 0.7·VDD VDD V
VIL LOW level input voltage VSS 0.3·VDD V
Ci Pin capacitance 5 pF
IiL Pin leakage current 1) ±10 nA
VOH HIGH level output voltage (IOH=-0.5mA) VDD-0.3 VDD V
VOL LOW level output voltage (IOL=0.5mA) VSS 0.3 V
Transmitter operation
PRF10 Output power 10dBm setting 9) 7 10 11 dBm
PRF6 Output power 6dBm setting 9) 3 6 9 dBm
PRF-2 Output power –2dBm setting 9) -6 -2 2 dBm
PRF-10 Output power -10dBm setting 9) -14 -10 -6 dBm
PBW_-16 -16dBc bandwidth for modulated carrier 8) 173 kHz
PBW_-24 -24dBc bandwidth for modulated carrier 8) 222 kHz
PBW_-32 -32dBc bandwidth for modulated carrier 8) 238 kHz
PBW_-36 -36dBc bandwidth for modulated carrier 8) 313 kHz
PRF1 1st adjacent channel transmit power 10) -27 dBc
PRF2 2nd adjacent channel transmit power 10) -54 dBc
ITX10dBm Supply current @ 10dBm output power 30 mA
ITX-10dBm Supply current @ -10dBm output power 9 mA
Receiver operation
IRX Supply current in receive mode 12.5 mA
RXSENS Sensitivity at 0.1%BER -100 dBm
RXMAX Maximum received signal 0 dBm
C/ICO C/I Co-channel 11) 13 dB
C/I1ST 1st adjacent channel selectivity C/I 200kHz 11) -7 dB
C/I2ND 2nd adjacent channel selectivity C/I 400kHz 11) -16 dB
C/I+1M Blocking at +1MHz 11) -40 dB
C/I-1M Blocking at -1MHz 11) -50 dB
C/I-2M Blocking at -2MHz 11) -63 dB
C/I+5M Blocking at +5MHz 11) -70 dB
C/I-5M Blocking at -5MHz 11) -65 dB
C/I+10M Blocking at +10MHz 11) -69 dB
C/I-10M Blocking at -10MHz 11) -67 dB
C/IIM Image rejection 11) -36 dB
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 6 of 41 December 2005
PRODUCT SPECIFICATION
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 7 of 41 December 2005
PRODUCT SPECIFICATION
4 CURRENT CONSUMPTION
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 8 of 41 December 2005
PRODUCT SPECIFICATION
5 MODES OF OPERATION
The nRF905 has two active (RX/TX) modes and two power-saving modes
The nRF905 mode is decided by the settings of TRX_CE, TX_EN and PWR_UP.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 9 of 41 December 2005
PRODUCT SPECIFICATION
1. When the application MCU has data for a remote node, the address of the
receiving node (TX-address) and payload data (TX-payload) are clocked
into nRF905 via the SPI interface. The application protocol or MCU sets
the speed of the interface.
2. MCU sets TRX_CE and TX_EN high, this activates a nRF905
ShockBurst™ transmission.
3. nRF905 ShockBurst™:
• Radio is automatically powered up.
• Data packet is completed (preamble added, CRC calculated).
• Data packet is transmitted (100kbps, GFSK, Manchester-encoded).
• Data Ready is set high when transmission is completed.
4. If AUTO_RETRAN is set high, the nRF905 continuously retransmits the
packet until TRX_CE is set low.
5. When TRX_CE is set low, the nRF905 finishes transmitting the outgoing
packet and then sets itself into standby mode.
If TX_EN is set low while TRX_CE is kept high, the nRF905 finishes transmitting
the outgoing packet and then enter RX-mode in the channel already programmed in
the RF-CONFIG register.
The ShockBurstTM mode ensures that a transmitted packet that has started always
finishes regardless of what TRX_EN and TX_EN is set to during transmission. The
new mode is activated when the transmission is completed. Please see subsequent
chapters for detailed timing
For test purposes such as antenna tuning and measuring output power it is possible to
set the transmitter so that a constant carrier is produced. To do this TRX_CE must be
maintained high instead of being pulsed. In addition Auto Retransmit should be
switched off. After the burst of data has been sent then the device will continue to
send the unmodulated carrier.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 10 of 41 December 2005
PRODUCT SPECIFICATION
Radio in Standby
TX_EN = HI
PWR_UP = HI
TRX_CE = LO
Data Package
SPI - programming
TRX_CE NO
= HI ?
YES
Transmitter is
powered up
nRF ShockBurst TX
DR is
Generate CRC and preamble set low
Pre-
Sending package after pre- ADDR PAYLOAD CRC
amble
DR is set high when completed amble
NO
AUTO_ YES
TRX_CE
RETRAN
NO = HI ?
= HI ?
Bit in configuration
register
YES
NB: DR is set low under the following conditions after it has been set high:
• If TX_EN is set low
• If PWR_UP is set low
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 11 of 41 December 2005
PRODUCT SPECIFICATION
If TX_EN is set high while TRX_CE is kept high, the nRF905 would enter
ShockBurstTMTX and start a transmission according to the present contents in the SPI-
registers.
Each byte within the address should be unique. Repeating bytes within the address
reduces the effectiveness of the address and increases its susceptibility to noise hence
increasing the packet error rate. The address should also have several level shifts (i.e.
10101100) to reduce the statistical effect of noise and hence reduce the packet error
rate.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 12 of 41 December 2005
PRODUCT SPECIFICATION
Radio in Standby
TX_EN = LO
PWR_UP = HI
TRX_CE NO
= HI ?
YES
Receiver is
powered up
Receiver
Sensing for incomming data
CD is set high if carrier
Data Package
NO Correct Pre-
ADDR PAYLOAD CRC
ADDR? amble
YES
AM is set
high
Receiving
data
NO Correct
AM is set low
CRC?
DR and AM are DR and AM are
set low set low
YES
DR high is
set high MCU clocks out payload via MCU clocks out payload via PAYLOAD
the SPI interface the SPI interface
NO
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 13 of 41 December 2005
PRODUCT SPECIFICATION
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 14 of 41 December 2005
PRODUCT SPECIFICATION
6 DEVICE CONFIGURATION
All configuration of the nRF905 is via the SPI interface. The interface consists of five
registers; a SPI instruction set is used to decide which operation shall be performed.
The SPI interface can be activated in any mode however Nordic Semiconductor ASA
recommends the chip be in standby or power down mode.
EN
RF - CONFIGURATION
DTA
REGISTER
CLK
EN
DTA TX-ADDRESS
CLK
EN
DTA TX-PAYLOAD
CLK
EN
DTA RX-PAYLOAD
CLK
Status – Register
Register contains status of Data Ready (DR) and Address Match (AM).
RF – Configuration Register
Register contains transceiver setup information such as frequency and output power
ext.
TX – Address
Register contains address of target device. How many bytes used is set in the
configuration register.
TX – Payload
TM
Register containing the payload information to be sent in a ShockBurst packet.
How many bytes used is set in the configuration register.
RX – Payload
Register containing the payload information derived from a received valid
ShockBurst TM packet. How many bytes used is set in the configuration register. Valid
data in the RX-Payload register is indicated with a high Date Ready (DR) signal.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 15 of 41 December 2005
PRODUCT SPECIFICATION
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 16 of 41 December 2005
PRODUCT SPECIFICATION
CSN
SCK
MOSI C7 C6 C5 C4 C3 C2 C1 C0
MISO S7 S6 S5 S4 S3 S2 S1 S0 D7 D6 D5 D4 D3 D2 D1 D0 D1 5 D1 4 D1 3 D1 2 D1 1 D1 0 D9 D8
CSN
SCK
MOSI C7 C6 C5 C4 C3 C2 C1 C0 D7 D6 D5 D4 D3 D2 D1 D0 D1 5 D1 4 D1 3 D1 2 D1 1 D1 0 D9 D8
MISO S7 S6 S5 S4 S3 S2 S1 S0
Tcwh
CSN
Tdh
Tdc
MOSI C7 C6 C0
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 17 of 41 December 2005
PRODUCT SPECIFICATION
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 18 of 41 December 2005
PRODUCT SPECIFICATION
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 19 of 41 December 2005
PRODUCT SPECIFICATION
RF-CONFIG_REGISTER (R/W)
Byte # Content bit[7:0], MSB = bit[7] Init value
0 CH_NO[7:0] 0110_1100
1 bit[7:6] not used, AUTO_RETRAN, RX_RED_PWR, PA_PWR[1:0], 0000_0000
HFREQ_PLL, CH_NO[8]
2 bit[7] not used, TX_AFW[2:0] , bit[3] not used, RX_AFW[2:0] 0100_0100
3 bit[7:6] not used, RX_PW[5:0] 0010_0000
4 bit[7:6] not used, TX_PW[5:0] 0010_0000
5 RX_ADDRESS (device identity) byte 0 E7
6 RX_ADDRESS (device identity) byte 1 E7
7 RX_ADDRESS (device identity) byte 2 E7
8 RX_ADDRESS (device identity) byte 3 E7
9 CRC_MODE,CRC_EN, XOF[2:0], UP_CLK_EN, UP_CLK_FREQ[1:0] 1110_0111
TX_PAYLOAD (R/W)
Byte # Content bit[7:0], MSB = bit[7] Init value
0 TX_PAYLOAD[7:0] X
1 TX_PAYLOAD[15:8] X
- - X
- - X
30 TX_PAYLOAD[247:240] X
31 TX_PAYLOAD[255:248] X
TX_ADDRESS (R/W)
Byte # Content bit[7:0], MSB = bit[7] Init value
0 TX_ADDRESS[7:0] E7
1 TX_ADDRESS[15:8] E7
2 TX_ADDRESS[23:16] E7
3 TX_ADDRESS[31:24] E7
RX_PAYLOAD (R)
Byte # Content bit[7:0], MSB = bit[7] Init value
0 RX_PAYLOAD[7:0] X
1 RX_PAYLOAD[15:8] X
- X
- X
30 RX_PAYLOAD[247:240] X
31 RX_PAYLOAD[255:248] X
STATUS_REGISTER (R)
Byte # Content bit[7:0], MSB = bit[7] Init value
0 AM, bit [6] not used, DR, bit [0:4] not used X
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 20 of 41 December 2005
PRODUCT SPECIFICATION
M OSI
CSN
PW R_U P
TX_EN
TRX_CE
TX DATA
T IM E
P r o g r a m m in g o f T0 T1 T2 T3
T r a n s m it t e d D a t a 1 0 0 k b p s
C o n f i g u r a ti o n R e g is t e r
M a n c h e s te r E n c o d e d
a n d T X D a ta R e g is te r
T0 = R a d io E n a b l e d
T1 = T 0 + 1 0 u S M in im u m T R X _ C E p u ls e
T2 = T 0 + 6 5 0 u S . S t a r t o f T X D a t a t r a n s m is s io n
T3 = E n d o f D a ta P a c k e t, e n te r S ta n d b y m o d e
After a data packet has finished transmitting the device will automatically enter
Standby mode and wait for the next pulse of TRX_CE. If the Auto Re-Transmit
function is enabled the data packet will continue re-sending the same data packet until
TRX_CE is set low.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 21 of 41 December 2005
PRODUCT SPECIFICATION
TX_EN
TRX_CE
RX DATA
CD
AM
DR
650uS
T IM E
6 5 0 u S to e n te r R X
m o d e fro m T0 T1 T2 T3
T R X _ C E b e in g s e t
h ig h .
T 0 = R e c e iv e r E n a b l e d - L is t e n in g f o r D a t a
T 1 = C a r r ie r D e t e c t f in d s a c a r r ie r
T 2 = A M - C o rre c t A d d re s s F o u n d
T 3 = D R - D a t a p a c k e t w it h c o r r e c t A d d r e s s / C R C
After the Data Ready (DR) has been set high a valid data packet is available in the RX
data register. This may be clocked out in RX mode or standby mode. After the data
has been clocked out via the SPI interface the Data Ready (DR) and Address Match
(AM) pins are reset to low.
The RX register is reset if the PWR_UP pin is taken low or if the device is switched
into TX mode i.e. TXEN is taken high. This will also results in the Data Ready(DR)
and Address Match (AM) pins being reset to low.
7.4 Preamble
In each data-packet transmitted by the nRF905 a preamble is added automatically.
The preamble is a predefined bit-sequence used to adjust the receiver for optimal
performance. A ten-bit sequence is used as preamble in nRF905. The length of the
preamble, tpreamble, is then 200µs.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 22 of 41 December 2005
PRODUCT SPECIFICATION
tstartup and tpreamble are RF-start-up time and preamble time respectively. Naddress, Npayload
and NCRC are numbers of bits in the address, payload and CRC-checksum while BR is
the bitrate, which is equal to 50kbps.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 23 of 41 December 2005
PRODUCT SPECIFICATION
8 PERIPHERAL RF INFORMATION
8.1 Crystal Specification
Tolerance includes initially accuracy and tolerance over temperature and aging.
C1 '⋅C 2 '
CL = , where C1 ' = C1 + C PCB1 + C I 1 and C 2 ' = C 2 + C PCB 2 + C I 2
C1 '+C 2 '
C1 and C2 are 0603 SMD capacitors as shown in the application schematics. CPCB1 and
CPCB2 are the layout parasitic on the circuit board. CI1 and CI2 are the capacitance seen
into the XC1 and XC2 pin respectively; the value is typical 1pF.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 24 of 41 December 2005
PRODUCT SPECIFICATION
900MHz 225Ω+j210
430MHz 300Ω+j100
A low load impedance (for instance 50Ω) can be obtained by fitting a simple
matching network or a RF transformer (balun). Further information regarding balun
structures and matching networks may be found in the Application Examples chapter.
8.6 Modulation
The modulation of nRF905 is Gaussian Frequency Shift Keying (GFSK) with a data-
rate of 100kbps. Deviation is ±50kHz. GFSK modulation results in a more bandwidth
effective transmission-link compared with ordinary FSK modulation.
The data is internally Manchester encoded (TX) and Manchester decoded (RX). That
is, the effective symbol-rate of the link is 50kbps. By using internally Manchester
encoding, no scrambling in the microcontroller is needed.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 25 of 41 December 2005
PRODUCT SPECIFICATION
When HFREQ_PLL is ‘0’ the frequency resolution is 100kHz and when it is ‘1’ the
resolution is 200kHz.
The application operating frequency has to be chosen to apply with the Short Range
Devise regulation in the area of operation.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 26 of 41 December 2005
PRODUCT SPECIFICATION
A PCB with a minimum of two layers including a ground plane is recommended for
optimum performance. The nRF905 DC supply voltage should be decoupled as close
as possible to the VDD pins with high performance RF capacitors. It is preferable to
mount a large surface mount capacitor (e.g. 4.7µF tantalum) in parallel with the
smaller value capacitors. The nRF905 supply voltage should be filtered and routed
separately from the supply voltages of any digital circuitry.
Long power supply lines on the PCB should be avoided. All device grounds, VDD
connections and VDD bypass capacitors must be connected as close as possible to the
nRF905 IC. For a PCB with a topside RF ground plane, the VSS pins should be
connected directly to the ground plane. For a PCB with a bottom ground plane, the
best technique is to place via holes as close as possible to the VSS pins. A minimum
of one via hole should be used for each VSS pin.
Full swing digital data or control signals should not be routed close to the crystal or
the power supply lines.
A fully qualified RF-layout for the nRF905 and its surrounding components,
including antennas and matching networks, can be downloaded from
www.nordicsemi.no.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 27 of 41 December 2005
PRODUCT SPECIFICATION
9 nRF905 FEATURES
9.1 Carrier Detect.
When the nRF905 is in ShockBurst TM RX, the Carrier Detect (CD) pin is set high if a
RF carrier is present at the channel the device is programmed to. This feature is very
effective to avoid collision of packets from different transmitters operating at the
same frequency. Whenever a device is ready to transmit it could first be set into
receive mode and sense whether or not the wanted channel is available for outgoing
data. This forms a very simple listen before transmit protocol. Operating Carrier
Detect (CD) with Reduced RX Power mode is an extremely power efficient RF
system. Typical Carrier Detect level (CD) is typically 5dB lower than sensitivity, i.e.
if sensitivity is –100dBm then the Carrier Detect function will sense a carrier wave as
low as –105dBm. Below –105dBm the Carrier Detect signal will be low, i.e. 0V.
Above –95dBm the Carrier Detect signal will be high, i.e. Vdd. Between
approximately -95 to -105 the Carrier Detect Signal will toggle.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 28 of 41 December 2005
PRODUCT SPECIFICATION
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 29 of 41 December 2005
PRODUCT SPECIFICATION
10 PACKAGE OUTLINE
nRF905 uses the QFN 32L 5x5 green package with a mat tin finish. Dimensions are in
mm. Recommended soldering reflow profile can be found in application note
nAN400-08, QFN soldering reflow guidelines, www.nordicsemi.no.
Package Type A A1 A2 b D E e J K L
QFN32 Min 0.8 0.0 0.65 0.18 3.2 3.2 0.3
(5x5 mm) typ. 0.23 5 BSC 5 BSC 0.5 BSC 3.3 3.3 0.4
Max 0.9 0.05 0.69 0.3 3.4 3.4 0.5
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 30 of 41 December 2005
PRODUCT SPECIFICATION
n R F B X
D D D D D D
Y Y W W L L
Abbreviations:
DDDDDD – Product number, e.g. 905
B Build Code, i.e. unique code for silicon revision, production site,
package type and test platform
X – "X" grade, i.e. Engineering Samples (optional)
YY – 2 digit Year number
WW – 2 digit Week number
LL – 2 letter wafer lot number code
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 31 of 41 December 2005
PRODUCT SPECIFICATION
11 APPLICATION EXAMPLES
11.1 Differential Connection to a Loop Antenna
aaaaaaaa
VDD
C7 C5 C6
10nF 33pF 4.7nF
0603 0603 0603
32
31
30
29
28
27
26
25
J1
Loop Antenna, 433MHz
R2 35x20mm
TXEN
VSS
VSS
VSS
VSS
VSS
DVDD_1V2
VDD
22K C12
0603 27pF C9
TXEN
1 24 3.9pF
TRX_C E TRX_C E VSS
2 nRF905 23
PWR_UP PWR_UP IR EF
3 22
uPCLK uPCLK VSS
aaaaaaaa
4 21
VDD VDD ANT2 C10
aaaaaaaa
5 20
CD VSS ANT1 6.8pF
6 19
AM CD VDD_PA
7 18 C3
DR AM VSS
8 17 180pF
SPI_MISO DR VDD VDD
SPI_MOSI C11
MOSI
MISO
C13 4.7pF
SCK
CSN
SPI_SC K
XC1
XC2
VSS
VSS
SPI_C SN 27pF
U1
nRF905
9
10
11
12
13
14
15
16
C8
33pF
0603
C4
3.3nF
0603
X1
16 MHz
R1
1M
C1 C2
22pF 22pF
0603 0603
aaaaaaaa
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 32 of 41 December 2005
PRODUCT SPECIFICATION
Figure 14 shows a PCB layout example for the application schematic in Figure 13. A
double-sided FR-4 board of 1.6mm thickness is used. This PCB has a ground plane on
the bottom layer. Additionally, there are ground areas on the component side of the
board to ensure sufficient grounding of critical components. A large number of via
holes connect the top layer ground areas to the bottom layer ground plane. There is no
ground plane beneath the antenna.
Figure 14 PCB layout example for nRF905, differential connection to a loop antenna.
A fully qualified RF-layout for the nRF905 and its surrounding components,
including antennas and matching networks, can be downloaded from
www.nordicsemi.no.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 33 of 41 December 2005
PRODUCT SPECIFICATION
Ω antenna
11.3 Single ended connection to 50Ω
aaaaaaaa
868/915MHz 433MHz
C3 33pF, ±5% 180pF, ±5%
C9 3.9pF, ±0.25pF 18pF, ±5%
C10 3.9pF, ±0.25pF 18pF, ±5%
C11 Optional Optional
C12 2.2pF, ±5% 6.8pF, ±5%
VDD C13 Optional Optional
L1 12nH, 5% 12nH, 5%
C7 C5 C6
10nF 33pF 4.7nF L2 18nH, 5% 39nH, 5%
L3 18nH, 5% 39nH, 5%
32
31
30
29
28
27
26
25
C9 C13
R2
VSS
VSS
VSS
VSS
VSS
DVDD_1V2
TXEN
VDD
22K Optional
C12
aaaaaaaa
L2
TXEN
1 24 50 ohm RF I/O
TRX_CE TRX_CE VSS
2 nRF905 23
PWR_UP PWR_UP IREF
3 22
uPCLK uPCLK VSS L1
4 21 C11
VDD VDD ANT2
5 20
aaaaaaaa
SPI_SCK
SCK
CSN
XC1
XC2
VSS
VSS
SPI_CSN C10
U1
nRF905
9
10
11
12
13
14
15
16
C8
33pF
C4
3.3nF
X1
16 MHz
R1
1M
C1 C2
22pF 22pF
aaaaaaaa
It is recommended to add pull up or pull down resistors on signals that can enter a
floating state. For the nRF905 it is recommended to have pull up on the CSN signal
and pull down on the MOSI and SCK signal.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 34 of 41 December 2005
PRODUCT SPECIFICATION
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 35 of 41 December 2005
PRODUCT SPECIFICATION
Ω Antenna
11.4 PCB Layout Example; Single Ended Connection to 50Ω
Figure 16 shows a PCB layout example for the application schematic in Figure 15. A
double-sided FR-4 board of 1.6mm thickness is used. This PCB has a ground plane on
the bottom layer. Additionally, there are ground areas on the component side of the
board to ensure sufficient grounding of critical components. A large number of via
holes connect the top layer ground areas to the bottom layer ground plane.
Figure 16 PCB layout example for nRF905, single ended connection to 50Ω antenna
by using a differential to single ended matching network.
A fully qualified RF-layout for the nRF905 and its surrounding components,
including antennas and matching networks, can be downloaded from
www.nordicsemi.no.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 36 of 41 December 2005
PRODUCT SPECIFICATION
Input Voltage
VI ..........................- 0.3V to VDD + 0.3V
Output Voltage
VO .........................- 0.3V to VDD + 0.3V
Temperatures
Operating temperature ........................................... - 40°C to + 85°C
Storage temperature .............................................. - 40°C to + 125°C
Note: Stress exceeding one or more of the limiting values may cause permanent
damage to the device.
ATTENTION!
Electrostatic sensitive device.
Observe precaution for handling.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 37 of 41 December 2005
PRODUCT SPECIFICATION
13 GLOSSARY OF TERMS
Term Description
ADC Analog to Digital Converter
AM Address Match
CD Carrier Detect
CLK Clock
CRC Cyclic Redundancy Check
DR Data Ready
GFSK Gaussian Frequency Shift Keying
ISM Industrial-Scientific-Medical
kSPS kilo Samples per Second
MCU Micro Controller Unit
PWR_DWN Power Down
PWR_UP Power Up
RX Receive
SPI Serial Programmable Interface
CSN SPI Chip Select Not
MISO SPI Master In Slave Out
MOSI SPI Master Out Slave In
SCK SPI Serial Clock
SPS Samples per Second
STBY Standby
TRX_EN Transmit/Receive Enable
TX Transmit
TX_EN Transmit Enable
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 38 of 41 December 2005
PRODUCT SPECIFICATION
14 DEFINITIONS
Product Specification Identification Product Status Definition
Objective Product Specification Planned or Under Development. This specification contains
the design objectives for product development.
nRF: Specifications may change in any manner without
notice.
Preliminary Product Specification Engineering Samples and Pre Production series. This
specification contains preliminary data.
nRF: Nordic Semiconductor reserves the right to make
changes at any time without notice in order to improve design
and supply the best possible product.
Product Specification The product is qualified for production. Changes will be
notified according to industry standard criteria for
Product/Process Change Notifications.
Obsolete Product Specification Not In Production. This specification contains specifications
on a product that has been discontinued by Nordic
Semiconductor. The specification is printed for reference
information only.
Table 18 Product status definitions
Nordic Semiconductor ASA reserves the right to make changes without further notice
to the product to improve reliability, function or design. Nordic Semiconductor does
not assume any liability arising out of the application or use of any product or circuits
described herein.
All rights reserved ®. Reproduction in whole or in part is prohibited without the prior
written permission of the copyright holder.
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 39 of 41 December 2005
PRODUCT SPECIFICATION
YOUR NOTES
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 40 of 41 December 2005
PRODUCT SPECIFICATION
Main Office:
Vestre Rosten 81, N-7075 Tiller, Norway
Phone: +47 72 89 89 00, Fax: +47 72 89 89 89
Visit the Nordic Semiconductor ASA website at http://www.nordicsemi.no
Main office: Nordic Semiconductor ASA - Vestre Rosten 81, N-7075 Tiller, Norway - Phone +4772898900 -Fax +4772898989
Revision: 1.3 Page 41 of 41 December 2005
Appendix C
Source Code
delay.h 10/07/2006
/*
delay.h
*/
#ifndef __DELAY_H
#define __DELAY_H
//20MHz
#define dly200n asm("nop")
#define dly400n dly200n;dly200n
#define WaitFor1Us dly200n; dly200n; dly200n; dly200n; dly200n
#define Jumpback asm("goto $ - 2")
#endif
1
delay.c 30/07/2006
/*****************************************************************************
*
File: delay.c
Date: July 10, 2006
Author: Dennis Leote
Compiler: Hi-Tech PICC, Hi-Tech Software (http://www.htsoft.com)
Description: This program provide the functions to perform delays between
0 - 255 us, and 0 - 255 ms for a PIC 16f877A u controller with a
20 MHz crystal.
*****************************************************************************
*/
#ifndef __DELAY_C
#define __DELAY_C
#include <pic.h>
#include "delay.h"
unsigned char delayus_variable;
/*
* Function: DelayUs
* Input: 8-bit value which defines the delay time (0 - 255 us)
* Output: None
*
* Description: Will delay execution of further instructions (except
Interrupts)
* for a length of 0 - 255 us defined by x
*/
void DelayUs(unsigned char x)
{
delayus_variable=x;
WaitFor1Us;
asm("decfsz _delayus_variable,f");
Jumpback;
}
/*
* Function: DelayMs
* Input: 8-bit value which defines the delay time (0 - 255 ms)
* Output: None
*
* Description: Will delay execution of further instructions (except
Interrupts)
* for a length of 0 - 255 ms defined by x
*/
void DelayMs(unsigned char cnt)
{
unsigned char i;
do {
i = 4;
do {
DelayUs(250);
DelayUs(57); // fine tuning
} while(--i);
} while(--cnt);
}
#endif
1
mainRx.c 30/07/2006
/*****************************************************************************
*
File: main.c
Date: July 10, 2006
Author: Dennis Leote
Compiler: Hi-Tech PICC, Hi-Tech Software (http://www.htsoft.com)
Description: This program runs on th PIC 16f877A uController for use with an
nRF24L01 tranceiver Module configured as a receiver. Information
is accepted in a 30-byte array and each byte is output to a PC
via the UART in 0.5 ms intervals.
*****************************************************************************
*/
#include <pic.h>
#include "Rx24L01.h"
#include "C:\ekg\includes\delay.h"
#include "C:\ekg\includes\uart.h"
#include "C:\ekg\includes\spi.h"
void main(void)
{
spiConfig(); // configure 16f877A SPI
SetupComPort(); // configure 16f877A UART
configure16f877_for_24L01(); // configure 16f877A I/O
configure_Rx24L01(); // configure nRF24L01 receiver
TRISB1 = 0;
RB1 = 0;
while(1) {
while(IRQ); // wait for next received data packet
Rx24L01(); // receive the next data packet and output to PC
}
}
1
mainTx.c 30/07/2006
/*****************************************************************************
*
File: main.c
Date: July 10, 2006
Author: Dennis Loete
Compiler: Hi-Tech PICC, Hi-Tech Software (http://www.htsoft.com)
Description: This Program performs an A/D conversion on three input channels
into the PIC 16f877A uController in regular 0.5ms intervals and
saves the data in an 30-byte array. Once the array is full. The
information is sent to an nRF24L01 tranceiver via the SPI
interface on the PIC.
*****************************************************************************
*/
#include <pic.h>
#include "C:\ekg\includes\delay.h"
#include "C:\ekg\includes\uart.h"
#include "C:\ekg\includes\spi.h"
#include "Tx24L01.h"
#define CHAN1 1
#define CHAN2 2
#define CHAN3 3
void ekgTxInit(void);
char getData(char);
void convertByteToBits(char);
main()
{
char leads[30], dataToSend[30];
int i, j = 0;
ekgTxInit();
SetupComPort();
configure16f877_for_24L01();
configure_Tx24L01();
PORTD = 0x00;
while(1){
// obtain 10 bytes of data from each of the A/D input channels
for (i = 0; i < 30;) {
leads[i++] = getData(CHAN1); // lead I data
leads[i++] = getData(CHAN2); // lead II data
leads[i++] = getData(CHAN3); // lead III data
// delay 0.5 ms until next conversion.
if (i != 30) {
DelayUs(250);
DelayUs(250);
}
}
// transmit data through nRF24L01
Tx24L01(leads);
1
mainTx.c 30/07/2006
* Output: None
*
* Description: Configure the PIC A/D for three input channels.
* RA0 = Lead I, RA1 = Lead II, RA5 = Lead III
* RA2 = reference voltage - 0V
* RA3 = reference voltage - 5V
*/
void ekgTxInit(void){
// select channel
switch(channel) {
case CHAN1: ADCON0 = 0x81; break;
case CHAN2: ADCON0 = 0x89; break;
case CHAN3: ADCON0 = 0xA1; break;
default: break;
}
// begin conversion
DelayUs(50);
ADGO = 1;
while(ADGO);
return ADRESH;
}
/*
* Function: convertByteToBits
* Input: byte_value = single byte
* Output: None
*
* Description: Takes a byte and displays a the value in 8 bits - xxxxxxxx.
* The bits are displayed by sending ascii '0' or '1' through
* the serial port on a PC. PC would use Hyperterminal or some
* similiar software to display the value
*/
void convertByteToBits(char byte_value)
{
char tmp;
char i;
// parse the byte bit-by-bit and send the appropriate '0' or '1' to UART
for (i = 128; i > 0;) {
tmp = byte_value & i;
if (tmp == 0) uartTx('0');
else uartTx('1');
i >>= 1;
2
mainTx.c 30/07/2006
}
uartTx(32);
NEW_LINE; // move cursor to next line
}
3
Rx24L01.c 30/07/2006
/*****************************************************************************
*
File: Rx24L01.c
Date: July 10, 2006
Author: Dennis Loete
Compiler: Hi-Tech PICC, Hi-Tech Software (http://www.htsoft.com)
Description: This program provides the functions necessary to interface with
the Nordic Semiconductor nRF24L01 Transceiver modules. The
is configured as a receiver with a 5-byte datapipe address,
datarate of 2Mbps, CRC, Retransmit, and Enhanced Shockburst.
*****************************************************************************
*/
#include <pic.h>
#include "Rx24L01.h"
#include "C:\ekg\includes\uart.h"
#include "C:\ekg\includes\delay.h"
#include "C:\ekg\includes\spi.h"
void byteToBits(char);
/*
* Function: configure16f877_for_24L01
* Input: None
* Output: None
*
* Description: Configures the PIC 16f877A uController to interface with the
* transceiver through the SPI.
*/
void configure16f877_for_24L01(void)
{
spiConfig();
TRISB5 = 1; // IRQ pin
TRISC2 = 0; // CE pin
TRISC1 = 0; // CSN pin
CE = 0;
CSN = 1;
}
/*
* Function: configure_Rx24L01
* Input: None
* Output: None
*
* Description: Configures the nRF24L01 transceiver to perform as a receiver
*/
void configure_Rx24L01(void)
{
wReg(0x00, 0x09); // set this device as PRX
wReg(0x01, 0x3F); // enable auto acknowledge (Tx)
wReg(0x02, 0x03); // enable auto acknowledge (Rx)
wReg(0x03, 0x03); // set address width to 5 Bytes
wReg(0x04, 0x1F); // disable retransmit
wReg(0x05, 0x02); // set channel 2 (default value)
wReg(0x06, 0x0F); // set data rate = 2 Mbps
1
Rx24L01.c 30/07/2006
DelayUs(10);
// set Rx (pipe 1) address to C2C2C2C2C2
CSN = 0;
spiTx(0x2B);
spiTx(0xC2);
spiTx(0xC2);
spiTx(0xC2);
spiTx(0xC2);
spiTx(0xC2);
CSN = 1;
DelayUs(10);
wReg(0x11, 0x1E); // set # bytes in payload (pipe 0)
wReg(0x12, 0x1E); // set # bytes in payload (pipe 1)
wReg(0x00, 0x0B); // power up
CE = 1;
}
/*
* Function: Rx24L01
* Input: None
* Output: None
*
* Description: Receives a 30 byte array and sends the information through the
// LeadI data
data[i] = spiRx();
uartTx(data[i++]);
// LeadII data
data[i] = spiRx();
uartTx(data[i++]);
// LeadIII data
data[i] = spiRx();
uartTx(data[i++]);
// delay 0.5 ms
if (i != 30) {
DelayUs(250);
DelayUs(250);
}
}
RB1 ^= 1;
CSN = 1;
DelayUs(10);
flushRx(); // flush Rx FIFO
wReg(0x07, 0x7F); // clear previous interrupts
2
Rx24L01.c 30/07/2006
}
/*
* Function: getStatus
* Input: None
* Output: Value of the nRF24L01 Staus register
*
* Description: Obtains the value of the nRF24L01 status register for
debugging
* purposes.
*/
char getStatus(void)
{
char status;
CSN = 0;
status = spiTx(0xFF);
CSN = 1;
DelayUs(10);
return status;
}
/*
* Function: showStatus
* Input: None
* Output: Value of the nRF24L01 Status register
*
* Description: Obtains and displays Status register and sends the value to
* the PIC 16f877A UART for display on PC
*/
char showStatus(void)
{
char status;
CSN = 0;
status = spiTx(0xFF);
CSN = 1;
DelayUs(10);
byteToBits(status);
return status;
}
/*
* Function: wReg
* Input: address - addr of nRF24L01 register, value - byte value to be
written
* register at "address"
* Output: Value of Staus register
*
* Description: This function writes an 8-bit value to one of the
configuration
* registers of the nRF24L01. The contents of the "Status"
register
* is returned for debugging purposes.
*/
char wReg(char address, char value)
{
char addr, status;
3
Rx24L01.c 30/07/2006
return status;
}
/*
* Function: rReg
* Input: address - addr of configuration register to be read
* Output: Contents of the register being addressed.
*
* Description: This function reads the value of the configuration register
* at "address"
*/
char rReg(char address)
{
char reg_value;
CSN = 0;
spiTx(address);
reg_value = spiRx();
CSN = 1;
byteToBits(reg_value);
DelayUs(10);
return reg_value;
}
/*
* Function: flushTx
* Input: None
* Output: None
*
* Description: Flushes the Transmit Stack of any values currently being
stored
*/
void flushTx(void)
{
// flush tx stack
CSN = 0;
spiTx(0xE1);
CSN = 1;
DelayUs(10);
}
/*
* Function: flushRx
* Input: None
* Output: None
*
* Description: Flushes the Receive Stack of any values currently being stored
*/
void flushRx(void)
{
// flush rx stack
CSN = 0;
spiTx(0xE2);
CSN = 1;
DelayUs(10);
}
/*
* Function: readRegisters
* Input: None
* Output: None
*
* Description: Reads the values of the first seven configuration registers
for
* debugging purposes.
*/
void readRegisters(void)
{
4
Rx24L01.c 30/07/2006
uartTx('R');
NEW_LINE;
rReg(0x00);
rReg(0x01);
rReg(0x02);
rReg(0x03);
rReg(0x04);
rReg(0x05);
rReg(0x06);
}
/*
* Function: ByteToBits
* Input: byte_value = single byte
* Output: None
*
* Description: Takes a byte and displays a the value in 8 bits - xxxxxxxx.
* The bits are displayed by sending ascii '0' or '1' through
* the serial port on a PC. PC would use Hyperterminal or some
* similiar software to display the value
*/
void byteToBits(char byte_value)
{
char tmp;
char i;
5
Rx24L01.h 29/06/2006
#ifndef __RX24L01_H
#define __RX24L01_H
1
spi.c 30/07/2006
/*****************************************************************************
*
File: spi.c
Date: July 10, 2006
Author: Dennis Leote
Compiler: Hi-Tech PICC, Hi-Tech Software (http://www.htsoft.com)
Description: This file rovides the functions necessary to use the PIC 16f877A
SPI interface running on a 20MHz crystal oscillator.
*****************************************************************************
*/
#include <pic.h>
#include "spi.h"
#include "delay.h"
/*
* Function: spiConfig
* Input: None
* Output: None
*
* Description: Configures the 16f877 SPI
*/
void spiConfig(void)
{
STAT_CKE = 1; // Data transmitted on rising edge of SCK
STAT_SMP = 0; // Input data sampled at middle of data output
time
CKP = 0; // Idle state for clock is a low level
/*
* Function: spiTx
* Input: 8-bit data value
* Output: Value of the nRF24L01 Staus register
*
* Description: This function sends one byte of data to an nRF24L01 tranceiver
* module through the SPI interface. The value of the Status
* register is returned
*/
char spiTx(char data)
{
char buf_value;
SSPBUF = data;
while(!SSPIF);
buf_value = SSPBUF;
SSPIF = 0;
return buf_value;
}
/*
* Function: spiRx
* Input: None
* Output: 8-bit value
*
* Description: Obtains one byte of data from the nRF24L01 tranceiver module
*/
char spiRx(void)
{
1
spi.c 30/07/2006
char value;
TRISC5 = 1;
value = spiTx(0x00);
TRISC5 = 0;
return value;
}
2
spi.h 28/06/2006
#ifndef __SPI_H
#define __SPI_H
void spiConfig(void);
char spiTx(char);
char spiRx(void);
#endif
1
Tx24L01.c 30/07/2006
/*****************************************************************************
*
File: Tx24L01.c
Date: July 10, 2006
Author: Dennis Loete
Compiler: Hi-Tech PICC, Hi-Tech Software (http://www.htsoft.com)
Description: This program provides the functions necessary to interface with
the Nordic Semiconductor nRF24L01 Transceiver modules. The
is configured as a transmitter with a 5-byte datapipe address,
datarate of 2Mbps, CRC, Retransmit, and Enhanced Shockburst.
*****************************************************************************
*/
#include <pic.h>
#include "Tx24L01.h"
#include "C:\ekg\includes\uart.h"
#include "C:\ekg\includes\delay.h"
#include "C:\ekg\includes\spi.h"
void byteToBits(char);
/*
* Function: configure16f877_for_24L01
* Input: None
* Output: None
*
* Description: Configures the PIC 16f877A uController to interface with the
* transceiver through the SPI.
*/
void configure16f877_for_24L01(void)
{
spiConfig(); // configure the SPI with clock = 20MHz / 16
TRISB5 = 1; // IRQ pin
TRISC2 = 0; // CE pin
TRISC1 = 0; // CSN pin
CE = 0;
CSN = 1;
/*
* Function: configure_Tx24L01
* Input: None
* Output: None
*
* Description: Configures the nRF24L01 transceiver to perform as a
transmitter
*/
void configure_Tx24L01(void)
{
CE = 0;
CSN = 0;
1
Tx24L01.c 30/07/2006
CSN = 0;
spiTx(0x2A);
spiTx(0xC2);
spiTx(0xC2);
spiTx(0xC2);
spiTx(0xC2);
spiTx(0xC2);
CSN = 1;
DelayUs(50);
// set Tx address to E7E7E7E7E7
CSN = 0;
spiTx(0x30);
spiTx(0xC2);
spiTx(0xC2);
spiTx(0xC2);
spiTx(0xC2);
spiTx(0xC2);
CSN = 1;
DelayUs(50);
}
/*
* Function: Tx24L01
* Input: 30-byte array
* Output: None
*
* Description: Transmits the input array
*/
void Tx24L01(char leads[])
{
int i;
wReg(0x07, 0x7F); // clear previous interrupts
wReg(0x00, 0x0A); // power up
flushTx();
// Transmit data
CSN = 0;
spiTx(0xA0);
for(i = 0; i < 30; i++) {
spiTx(leads[i]);
}
CSN = 1;
DelayUs(10);
CE = 1;
DelayUs(20);
CE = 0;
}
/*
* Function: showStatus
* Input: None
* Output: None
*
* Description: Sends the contents of the nRF24L01 status register through
* the UART for display in Hyperterminal - Used for debugging
*/
void showStatus(void)
{
char status;
CSN = 0;
status = spiTx(0xFF);
2
Tx24L01.c 30/07/2006
CSN = 1;
DelayUs(10);
byteToBits(status);
}
/*
* Function: wReg
* Input: address - addr of nRF24L01 register, value - byte value to be
written
* register at "address"
* Output: Value of Staus register
*
* Description: This function writes an 8-bit value to one of the
configuration
* registers of the nRF24L01. The contents of the "Status"
register
* is returned for debugging purposes.
*/
char wReg(char address, char value)
{
char addr, status;
3
Tx24L01.c 30/07/2006
DelayUs(10);
}
/*
* Function: flushRx
* Input: None
* Output: None
*
* Description: Flushes the Receive Stack of any values currently being stored
*/
void flushRx(void)
{
// flush rx stack
CSN = 0;
spiTx(0xE2);
CSN = 1;
DelayUs(10);
}
/*
* Function: readRegisters
* Input: None
* Output: None
*
* Description: Reads the values of the first seven configuration registers
for
* debugging purposes.
*/
void readRegisters(void)
{
uartTx('R');
NEW_LINE;
rReg(0x00);
rReg(0x01);
rReg(0x02);
rReg(0x03);
rReg(0x04);
rReg(0x05);
rReg(0x06);
}
/*
* Function: ByteToBits
* Input: byte_value = single byte
* Output: None
*
* Description: Takes a byte and displays a the value in 8 bits - xxxxxxxx.
* The bits are displayed by sending ascii '0' or '1' through
* the serial port on a PC. PC would use Hyperterminal or some
* similiar software to display the value
*/
void byteToBits(char byte_value)
{
char tmp;
char i;
for (i = 128; i > 0;) {
tmp = byte_value & i;
if (tmp == 0) uartTx('0');
else uartTx('1');
i >>= 1;
}
NEW_LINE;
}
4
Tx24L01.h 29/06/2006
#ifndef __TX24L01_H
#define __TX24L01_H
1
uart.c 30/07/2006
/*****************************************************************************
*
File: uart.c
Date: July 10, 2006
Author: Dennis Leote
Compiler: Hi-Tech PICC, Hi-Tech Software (http://www.htsoft.com)
Description: This file provides the functions necessary to use the PIC
16f877A
Universal Asynchronous Receiver Transmitter (UART) interface.
*****************************************************************************
*/
#include <pic.h>
#include "uart.h"
/*
* Function: SetupComPort
* Input: None
* Output: None
*
* Description: Will setup COM port for 20Mhz clk with 115200 Baud
*/
void SetupComPort(void)
{
char dummy;
TRISC6 = 1;
TRISC7 = 1;
SPBRG = 10; // 115200 Baud
// SPBRG = (20000000/(16UL * 19200) -1); // 19200 Baud
/*
* Function: uartTx
* Input: One byte value to transmit
* Output: None
*
* Description: Will transmit a given character defined by txChar
*/
void uartTx(char txChar)
{
while(!TXIF); // Wait while other transmission is over
TXREG = txChar; // Place the given character in tx buffer
ResetRx(); // Clears Interrupt flags
}
/*
* Function: uartRx
* Input: None
1
uart.c 30/07/2006
/*
* Function: ResetTx
* Input: None
* Output: None
*
* Description: Resets the interrupt flags associated with the UART to prepare
/*
* Function: ResetRx
* Input: None
* Output: None
*
* Description: Resets the interrupt flags associated with the UART to prepare
* for next reception.
*/
void ResetRx(void)
{
CREN = 0;
CREN = 1;
}
2
uart.h 28/06/2006
#ifndef __UART_H
#define __UART_H