Hovfaret 17 * P.O. Box 466 Skøyen * 0212 Oslo * Norway Tel: +47 22 13 42 00* Fax: +47 22 13 42 10 [email protected] * www.gran-jansen.com GJRF400 SINGLE CHIP RF TRANSCEIVER The GJRF400 is a single chip integrated circuit for radiobased frequency hopping spread spectrum communication. (FHSS) The circuit is easily applied and RF-knowledge requirements are minimal. The circuit can be utilised in homes, health care and industry in various ways and can be applied in alarms, garage ports, remote controls, etc., and in more complex systems for control, monitoring and low data-rate communication between computers. A typical system consists of a microprocessor and a radio circuit plus some external components. 44 PIN TQFP Features Applications All active RF circuits on a single chip 5mW output power -110dBm sensitivity 9600 bits/ second data rate 3 Volt supply 16mA in receive, 25mA in transmit 4 wire connection for control 3 wire external gain control Wireless local networks Frequency hopping high security alarms 2 way paging Telemetry Environmental control systems Wireless data repeaters Personnel, patient logging Access and movement monitoring Remote Metering Barcode Readers Quick reference data: Parameters Operating frequency Transmit data rate Receiver sensitivity Output power (50Ω) Supply voltage Supply current receive mode Supply current transmit mode Power down current Operating temperature range3 Min. 300 2.7 -40 Typ. 434 96001 -1102 5 3.0 16 25 1 25 Max. 500 19200 3.3 +85 Unit MHz bps dBm mW V mA mA µA °C 1 Modulation is applied to the VCO and is based on a transmission code where the baudrate is twice the bitrate (e.g. Manchester code ). 9600bps = 19200 baud 2 Measured at 1200 bps and frequency deviation ± 10kHz (XCO modulation). The baudrate is equal to the bit rate. 3 Tentative specification. Parameter temperature dependency will be specified after full characterisation. Ordering information: Type number GJRF400 Gran Jansen Oslo Norway Name TQFP44 Package Description 44 pin plastic thin quad flat package 98-05 1 33 32 31 30 29 27 28 25 26 24 23 34 22 LNA Charge pump VCO PA 35 21 Phasedetector 36 20 Prescaler :16 90º 19 37 Control Variable gain amplifiers 38 Control interface N-counter N1 18 N0 17 39 Passive RC filters 40 16 Gyrator filters XCO 41 15 M-counter Limiter 42 M1 Limiter M0 14 Demod 43 44 13 Rectify 1 12 2 3 4 5 6 7 8 9 10 11 Figure 1: Transceiver Internal Blocks Table 1: Pin description Symbol RecC QchOut IchOut IFVdd IFGnd Vb_lp1 Vb_lp2 NC ground IchC QchC GuardVdd DigGnd ModOut XoscOut XoscIn DataIXO Clock Load DigVdd RxOutD DataC 2 Pin 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Description rectifier capacitor Q-channel output I-channel output IF circuitry power IF circuitry ground gyrator filter resistor gyrator filter resistor no connection substrate ground I-channel amplifier capacitor Q-channel amplifier capacitor guardring power digital circuitry ground o/p for VCO/Xtal modulation crystal oscillator output crystal oscillator input bidirectional data clock load digital circuitry power I/Q channel digital output data filter capacitor Symbol ground CmpOut OscGnd OscIn OscVdd RFVdd LNA_C LNAGnd RFin RFGnd RFout PAbias MixerVdd MixerGdd qc2 qc1 ic1 ic2 A0 A1 A2 RecOut 98-05 Pin 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 Description ground for substrate charge-pump (phase detector) output Colpitts oscillator and substrate ground Colpitts oscillator input (resonator connection) power for Colpitts oscillator power for LNA and PA external capacitor to stabilise LNA LNA first stage ground low noise RF amplifier (LNA) input LNA, PA and substrate ground power amplifier output external bias resistor for power amplifier mixer power mixer ground capacitor connection for Q-channel IF amplifier capacitor connection for Q-channel IF amplifier capacitor connection for I-channel IF amplifier capacitor connection for I-channel IF amplifier gain set input for IF amplifier gain set input for IF amplifier gain set input for IF amplifier I channel signal level rectified output Gran Jansen Oslo Norway Detailed Description The transmitter consists of a PLL frequency synthesiser and a power amplifier. The frequency synthesiser consists of a voltage controlled oscillator (VCO), a crystal oscillator, prescaler, programmable frequency dividers and a phase-detector. The loop-filter is external for flexibility The VCO is a Colpitts oscillator and needs an external resonator and varicap. FSK modulation can be applied externally to the VCO or to the crystal oscillator. The synthesiser has two different, N and M, frequency dividers. For low bitrate applications (approximate 100 bps) FSK modulation can be implemented by switching between these dividers. The lengths of the N and M registers are 12 and 10 bits respectively. For all types of FSK modulation, data is entered at the Data IXO pin (see application circuit, Figure 7). In receive mode the PLL synthesiser generates the local oscillator (LO) signal. The N and M values that give the LO frequency are stored in the N0 and M0 registers. The receiver is a zero intermediate frequency (IF) type in order to make channel filtering possible with lowpower integrated low-pass filters. The receiver consists of a low noise amplifier (LNA) that drives a quadrature mixer pair. The mixer outputs feed two identical signal channels in phase quadrature. Each channel includes a variable gain amplifier, a second order passive RC lowpass filter (to protect the gyrator filter from strong adjacent channel signals), a gyrator filter and finally a limiter. The main channel filter is a gyrator-capacitor implementation of a five-pole elliptic lowpass filter. The elliptic filter minimises the total capacitance required for a given selectivity and dynamic range. The lowpass cut-off frequency can be adjusted by an external resistor. The demodulator demodulates the I and Q channel outputs and produces a digital data output. It detects the relative phase difference of the I and the Q channel signals. If the I channel signal lags the Q channel, the FSK tone frequency lies above the LO frequency (data ‘1’). If the I channel leads the Q channel, the FSK tone lies below the LO frequency (data ‘0’). The output of the receiver is available on the Data IXO pin. A three pin serial interface is used to program the circuit. External components are necessary for RF input and output impedance matching and decoupling of power. Other external components are VCO resonator and varicap, crystal, feedback capacitors and components for FSK modulation in VCO/crystal oscillator, loop filter, bias resistors for power amplifier and gyrator filters. Circuit blocks VCO The VCO is basically a Colpitts oscillator. The oscillator has an external resonator and varicap. The control voltage for the varicap is derived from the phase detector via a passive loop filter. The VCO’s external components should be screened to avoid undue pick-up of external unwanted signals. Figure 2: VCO Crystal-oscillator As the crystal oscillator is a reference for the RF output frequency and also for the LO frequency in the receiver, very good phase and frequency stability is required. The crystal oscillator is tuned by varying a trimming capacitor. Passive components in parallel with the internal MOSFET are necessary if FSK modulation is applied to the crystal oscillator. The drift in the RF frequency is the same as the drift in crystal frequency when measured in PPM. The circuit has been tested with a 10MHz crystal, but other crystal frequencies can be used as well. Figure 3: Crystal oscillator Gran-Jansen AS Oslo Norway 98-05 3 Power Amplifier The amplifier is a class A amplifier, which is linearized by the effective high-frequency emitter degeneration contributed by the bond wire inductance. The last stage has an open collector, and an external load is therefore necessary. The dc current in the amplifier is adjusted with an external bias resistor. The ratio of the output current (the current flowing in the load and output transistor) to the current in the bias resistor is about 28. The maximum output current is about 15 mA, which gives a maximum bias current of 535uA. A 2.7kΩ bias resistor will give approximately this bias current. The components between the antenna and the output of the power amplifier are for impedance matching. The impedance matching circuit will depend on the type of antenna used. The power amplifier is turned on internally after the control word is clocked into the shift register. This changes the VCO load and influences the PLL. The PA should be switched on and off externally by the microcontroller to prevent spurious components from being transmitted before the PLL stabilises. Figure 4: Power Amplifier Low noise amplifier (LNA) A low noise amplifier in RF receivers is used to boost the incoming signal prior to the frequency conversion process. This is important in order to prevent mixer noise from dominating the overall front-end noise performance. The LNA is a two stage amplifier and has a nominal gain of 20dB at 433.92MHz. The LNA has a dc feedback loop which provides bias for the LNA. An external capacitor decouples and stabilises the overall dc feedback loop which has a large low frequency loop gain. The components between the antenna and the input of the LNA are for impedance matching. The input impedance, measured at 435MHz, is Z IN = ( 51 − j 45)Ω . Figure 5: Low noise amplifier IF amplifier (VGA) Table 2: Gain setting A2 A1 A0 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 4 There is one variable gain amplifier in each channel of the receiver. This amplifier is a two stage amplifier with gain from -20dB up to 45dB. Pins A2, A1 and A0 control the gain of the amplifier. The amplifier needs an external capacitor connected between the emitters of the first differential stage to eliminate the effect of offset on the output of the mixers (between pin 36 and 37 , and between pin 38 and 39). Gain is a function of A2, A1 and A0, values are given in table 2. Gain (dB) 45 40 30 20 10 0 -10 -20 98-05 Gran Jansen Oslo Norway Rectifier signal at this pin indicates the internal level at a given gain setting determined by the gain setting pins. Tolerances in the order of ± 16 dB should be expected.The bit RecSel selects the signal being rectified, i.e. the output of the passive RC filter or the output of the gyrator filter. RecSel is bit no 51 in the control register. The receiver includes a half wave rectifier that rectifies the analog signal in the I-channel and converts it to a half wave rectified current that is available on the RecOut pin (pin 44). The output current is approximately 0.4µA per mV of signal amplitude.As the pick-up point of the block is after the VGA, the Passive RC filter Table 3: Cut off settings Fc1 Fc0 0 0 0 1 1 0 1 1 The passive 2nd order RC filter protects the gyrator filter from strong adjacent channel signals. The cut-off frequency can be programmed to the frequencies in table3. Fcl is bit no 50 in the control register. Fc0 is bit no 49 in the control register. fc (kHz) 40 85 120 200 Gyrator filters Table 4: Gyrator filter cut off settings Rblp (kΩ) GmBias 91 62 30 20 13 6.8 0 0 0 1 1 1 fclowpass (kHz) 11 14.5 21 30.5 47 84 The main receiver channel filter is a gyrator-capacitor implementation of a five-pole elliptic lowpass filter. The lowpass cut-off frequencies can be adjusted by external resistors. Table 4 shows the cut-off frequency of the gyrator filter as a function of bias resistor value. The input signal amplitude should not exceed 100mVpp for the gyrator filter to work properly. When BiasS = 1 the gyrator filter in the I and the Q-channel uses the same bias circuit. The external bias resistor Rblp must be connected to pin Vb_lp1. When BiasS = 0 the lowpass filters uses separate bias circuits. External resistors must be connected to both Vb_lp1 and Vb_lp2. Resistor connected to Vb_lp1 controls the cut-off frequency of the I-channel lowpass filter. GmBias is bit no 55 in the control register. BiasS is bit no 53 in the control register. Limiter The limiter serves as a zero crossing detector, thus removing amplitude variations in the IF signal, while retaining only the phase variations. It consists of two amplifier stages. The first is a non-inverting one which needs an external capacitor to provide correct dc levels. Its gain is approx. 23.5dB. Gain can be reduced by adding a resistor in series with the capacitor. The second stage has about 50dB gain. The limiter outputs are ideally suited to measure the I-Q phase difference, since its outputs are square waves with sharp edges. Demodulator The demodulator demodulates the I and Q channel outputs and produces a digital data output. It detects the relative phase difference of the I and the Q channel signal. If the I channel signal lags the Q channel, the FSK tone frequency lies above the LO frequency (data ‘1’). If the I channel leads the Q channel, the FSK tone lies below the LO frequency Gran-Jansen AS Oslo Norway (data ‘0’). The output of the receiver is available on the Data IXO pin. The output of the demodulator is filtered by a first order RC lowpass filter (internal resistor R=100kΩ and external capacitor, pin 22) and then amplified by a Schmitt trigger to produce clean data output. The bandwidth of the filter must be adjusted to the bitrate. 98-05 5 Programming A three line bus is used to program the circuit; the three lines being: Data IXO, Clock and Load. Data IXO is bi-directional and is used to transmit data, receive data and to program the circuit. The 3-line serial bus interface allows control over the frequency dividers and the selective powering up of Tx, Rx and Synthesiser circuit blocks. The interface consists of a 59-bit programming register. Data is entered on the Data IXO line with the most significant bit first. The first bit entered is p1, the last one p59. The bits in the programming register are arranged as shown in table 5. Table 5: Bit allocation MSB Register bit allocation p1 - p12 p13 - p24 p25 - p34 p35 - p44 p45 p46 N1 N0 M1 M0 BypassLNA ‘0’ Register bit allocation p47 p48 p49 p50 p51 p52 p53 RxOutD RxOutD_S Fc0 Fc1 RecSel RxOut BiasS Register bit allocation LSB p54 p55 p56 p57 p58 p59 ‘0’ GmBias Mod1 Mod0 R_T Pd Table 6: Bit Description N1 N0 M1 frequency divider N1, 12 bits frequency divider N0, 12 bits frequency divider M1, 10 bits M0 frequency divider M0, 10 bits BypassLNA RxOutD RxOutD_S Fc0 Fc1 RecSel 1 = the LNA is bypassed 1 = the I or Q channel digital output is active on the RxOutD pin Selects between the I (‘1’) and Q (‘0’) channel digital output Bit to program the cut-off frequency of the RC filters Bit to program the cut-off frequency of the RC filters 0 = the rectifier rectifies the output of the I-channel gyrator filter 1 = the rectifier rectifies the output of the I-channel passive RC filter 0 = the gyrator filter outputs are active on the IchOut and QchOut pins 1 = the RC filter outputs are active on the IchOut and QchOut pins 1 = the I and Q channel lowpass filter uses the same bias circuit, pin Vb_lp1 0 = the I and Q channel lowpass filter uses separate bias circuit, pin Vb_lp1 (I) ,Vb_lp2 (Q) 1 = FSK frequency deviation > 30kHz 0 = FSK frequency deviation < 30kHz Mod1 = 0, Mod0 = 0: No modulation Mod1 = 0, Mod0 = 1: FSK modulation by switching between different dividers Mod1 = 1, Mod0 = 0: FSK modulation can be applied to the VCO Mod1 = 1, Mod0 = 1: FSK modulation can be applied to the crystal oscillator 0 = receive mode 1 = transmit mode 0 = power up 1 = power down RxOut BiasS GmBias Mod1 Mod0 R_T Pd When FSK modulation is applied to the VCO or to the crystal oscillator the PLL is using the dividers N0 and M0. When Mod1 = 0 and Mod0 = 1 it is possible to switch between the different dividers in the PLL. The switching is controlled by Data IXO. When Data IXO = 0 the PLL uses dividers N0 and M0. When Dat IXO = 1 the PLL uses dividers N1 and M1. Switching between the different dividers can be used to implement low bitrate FSK modulation. Example 3: fRF = 433.92MHz, frequency deviation: ±40kHz, fXCO = 10.00MHz ( Modulation is applied to the VCO.) 6 98-05 Gran Jansen Oslo Norway Table 7: Bit function and position transmit 518 518 191 191 Bypass LNA 0 0 0 0 1 0 receive 518 518 191 191 0 0 0 0 1 0 transmit RecSel 1 RxOut 0 BiasS 1 p54 0 GmBias 1 Mod1 1 Mod0 0 R_T 1 Pd 0 receive 1 0 1 0 1 1 0 0 0 N1 N0 M1 Binary form: (MSB to the left): Transmit: 001000000110 Receive: 001000000110 M0 001000000110 001000000110 0010111111 0010111111 The 59 bit control-word is first read into a shift-register, and is then loaded into a parallel register by a pulse on the Load line. The circuit then goes directly into the specified mode (receive, transmit, etc.). The time the circuit takes to stabilise in the new mode (for instance the time the synthesiser uses to lock on the specified frequency) is used to clock the next control-word into the shift-register. In transmit mode the power amplifier is not active until the next control-word is clocked into the shiftregister. Every bit of the control-word that is clocked into the shift-register is counted. 1 p46 RxOutD RxOutD_S 0010111111 0010111111 Fc0 Fc1 000010101011010 000010101011000 When all the bits have been shifted into the register (59 bits) the counter disables further bits to be clocked in. All clock-pulses after this time are discarded. The circuit is now ready to receive or transmit. The circuit remains in the specified mode until the next load pulse. As long as the circuit has power the values in the registers are kept. When the power is turned on (for instance when batteries are changed) a pulse on the Load line is necessary to reset the registers and the counter 2 3 Clock Load Data XO Figure 6: Timing of Clock, Load and Data IXO lines 1: Control-word is loaded into the second register 2: On the first positive clock edge a new control-word starts to be clocked into the shift register 3: After 59 clock pulses the circuit is ready to receive, transmit or sleep. The Data IXO line is now Independent of the Clock line. The Clock line should now be static to minimise noise. Table 8: Serial I/O Timing Data Parameter Min. Typ. Max. Unit Set up time data to clock 50 ns Hold time data to clock +20 ns Strobe pulse width 50 ns Clock frequency 10 MHz Clock pulse width ( high) 50 ns Table 9: Digital I/O Electrical specifications Parameter Gran-Jansen AS Oslo Norway Min. Typ. Max. Unit Logic Low 0.2 VDD Logic High 0.7 VDD 3 State Leakage Current 100 nA 98-05 7 Figure 7: Typical application circuit with direct VCO modulation Parameters : RF =433.93MHz fXCO = 10MHz. MRx= 257. NRx = 697. MTx= 250 NTx = 678 frequency deviation= ±10kHz. bitrate= 1200bps. LIABILITY DISCLAIMER Gran-Jansen makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor do Gran-Jansen assume any liability arising our of the application or use of any products or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. “Typical” parameters Can and do vary in different applications. All operating parameters, including “Typicals” must be validated for each customer's application by customer’s technical experts. Gran-Jansen does not convey any license under its patent rights nor the rights of others. Gran-Jansen's products are not designed, intended or authorised for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life. Should Buyer purchase or use Gran-Jansen products for any such unintended or unauthorised application, Buyer shall indemnify and hold Gran-Jansen and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fee arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorised use, even if such claim alleges that Gran-Jansen was negligent, regarding the design or manufacture of the part.The product is warranted by Gran-Jansen against defects in materials and workmanship for one year from the date of original purchase. During the warranty period we will replace or, at our option, repair at no charge a product that proves to be defective, provided the purchaser returns the product, shipping prepaid, to an authorised dealer. No other express warranty is given. The replacement or repair of a product is the purchaser’s only remedy. Any other implied warranty of merchantability or fitness is limited to the one year duration of this warranty. GRAN JANSEN SHALL IN NO EVENT BE LIABLE FOR CONSEQUENTIAL DAMAGES 8 98-05 Gran Jansen Oslo Norway