Smart Modem
Smart Modem
Smart Modem
L5 L4
+VDD
100nF 100nF 100nF
D1 100nF 100nF
C10
XTAL2 100nF
22pF 32kHz 22pF 100nF CP1 CP2
RLNA
XTAL1
RSET
VDD EXT VDD RTC RTXI RTXO CLKIN CLKOUT VDD1 RLNA RSET VDD2 VDD3 VDD4 VDD OSC1 OSC2
L2
VRO BF
VDD INT FILTER
C5 L1
100F 10nF ADSP-BF531 FL0 SLE ADF702x RFIN
400MHz FL1 SDATA ISM
52KB SRAM TRANSCEIVER C6
FL4 SREAD
433/868/915MHz RFIN
FL3 SCLK
CONTROLLER/PERIPHERALS
UART L3
RFSO INT/LOCK
FL5 MUXOUT RFINB
C7
FL6 CE
R12
CPOUT
DROPRI C13 R11 C12
Tx/Rx DATA
DTOPRI C11
SPORT1
RCLKO RxCLK
VCO_IN
SPORT0
CVCO ADC_IN
22nF
SPI EXTERNAL BUS VREG1 VREG2 VREG3 VREG4 GND1 GND2 GND5 GND4 VE
C1 C2 C3 C4
C1, C2, C3, C4 = 100nF X7R
SERIAL XTAL1: 10MHz TO 12MHz
EEPROM OPTIONAL 2.5V < VDD TYPICAL < 3.3V
(BOOT) SDRAM
LNA
LPF FSK/ASK DATA
RFIN
BB RSSI MUX 7-BIT ADC DEMODULATOR SYNCHRONIZER
RFINB FILTER
GAIN
LPF
OFFSET
CORRECTION CE
AGC
CONTROL RxCLK
Tx/Rx
CONTROL Tx/Rx DATA
FSK MOD GAUSSIAN - XCLK OUT
CONTROL FILTER MODULATOR
AFC
CONTROL INT/LOCK
DIVIDERS/
PA OUT MUXING DIV P N/N+1
SLE
SERIAL SDATA IN
PORT SDATA OUT
VCO
CP SCLK
PFD
RING CLK
DIV R OSC DIV
INPUT OR BLOCK
JPEG SOURCE PACKETIZATION CONVOLUTIONAL INTERLEAVING MODULATION
CODING CRC ENCODER + (GFSK)
RATE CONTROL
CHANNEL CODING
NOISE DISTURBANCES
TRANSMISSION
FEEDBACK/QoS CHANNEL
DSP_Rx
DATA
OUTPUT OR DE-PACKETIZATION VITERBI DEMODULATION
JPEG SOURCE BLOCK
CRC DECODER DEINTERLEAVER (GFSK)
DECODING SYNC SYNCHRONIZATION
Figure 3 illustrates the various functions to be carried out across T his encoded data is t hen passed on to t he A DF7020
the transmission channel, including processing functions handled transmitter section, which does some additional filtering and
for both transmit (Tx) and receive (Rx) operations. The Blackfin Gaussian frequency-shift-keying (GFSK) modulation. GFSK
processor, when sitting on the transmitter side handles both modulation has the advantage of reducing the occupied spectral
data-rate control and data partitioning, so data is transmitted in bandwidth—a helpful operation when seeking to meet adjacent-
packets at a quasi-constant rate. The data packets are processed channel requirements for the European 868-MHz bands.
for forward error-correction (FEC) before they modulate the
carrier’s frequency. This is achieved by adding redundant bits On the receiver side, the ADF7020’s internal preamble-matching
that the receiver will use to detect and correct errors. The bits circuitry helps to fulfill the critical packet-synchronization
added to the incoming packets will, of course, increase the required task. This hardware function permits the recognition or
bandwidth for a given information bit rate. identification of a 12-, 16 -, 20 -, or 24 -bit-long programmable
synchronization word, or a packet preamble, without the
Among the different applicable methods of FEC, convolutional intervention of the ADSP-BF531 core. Upon a valid preamble
coding, while quite simple to implement, gives good protection match, the circuitry asserts the ADF7020 INT/LOCK pin,
against channel Gaussian noise disturbances and helps meet which signals the beginning of a new packet to the serial port
minimum Hamming-distance criteria. A convolutional encoder (RFS0) and triggers the Viterbi decoder. This unique circuitry
is a finite state-machine comprising an L -stage shift register, is somewhat error-tolerant—in a sense, it even allows a valid
N modulo-2 adders, and a multiplexer to convert the output into match for up to three incorrect bits. This reduces the number
a serial bit stream. The connections between the shifter outputs of packets lost due to preamble misses, as the preamble is not
and the adder inputs determine the polynomial code. Using two encoded and is therefore not protected. To further reduce
specifically applicable instructions, the Blackfin core performs all preamble misses, the receiver uses one of the ADSP-BF531
these operations very efficiently. 32-bit timers as a watchdog that generates the expected pulse
At the other end of the transmission channel, the decoder section on RFS0 if the INT/LOCK signal does not show up after a
implements the Viterbi algorithm (hard-input/hard-output). For few symbols. This use of a hardware mechanism to retrieve
maximum likelihood decoding, the Viterbi decoder compares all packet synchronization markers was chosen in order to save
the possible code sequences to the received code vector. The code a lot of processor MIPS—compared to a full implementation
sequence whose Hamming distance from the received sequence with software analysis and tracking.
is the shortest is the good one. For a code like (1/2, 7, 371, 247)
with a constraint length, K = L + 1 of 7, the decoder can correct Real-World Application—Wireless Video Over ISM
up to six consecutive erroneous bits. Depending upon the system As noted earlier, efficient wireless digital-video transmission
requirements, constraint lengths (K) from 5 to 9 must be supported calls for robustness against channel failures. Video codecs
by the ADSP-BF531 in such wireless applications. are excellent candidates for applications with smart, reliable
However, even a convolutional code with a constraint length of 9 Black f i n processor - based w ireless modems. G iven t he
does not protect against burst noise that might hit the transmitted limitation of the ISM wireless channel bandwidth, a relatively
packets over a longer length of time. The use of a complementary high image/video compression ratio is required in order to
protection technique based on temporal diversity is mandatory. deliver the expected frame rate and quality for a given image
Temporal diversity, i.e., spreading the bits or symbols out over time, size without too much latency. Unfortunately, Motion JPEG
improves the performance of a coded communication system in the and other video codecs require a very low transmission- error
presence of multiple paths, fading, and burst noise. It thus reduces rate, typically 10 –6, because the source-coding process removes
the probability of a consecutive number of bits being corrupted. most of the redundant information. This is particularly true
Scrambling and simple block interleaving functions achieve this with some efficient entropy coders, such as Huffman, where
objective without employing more complex corrective codes (like a single erroneous bit makes the original data impossible
Reed-Solomon). Here again, the ADSP-BF531 is helpful with to decode. A required bit- error rate (BER) less than 10 – 6
two specific vector instructions—one that computes the Viterbi places very stringent requirements on the radio, but it can
trellis butterflies and one that reconstructs data for the path-search be achieved by using a channel coding scheme like the one
(trace-back) operation. described above.
ADSP-BF531 ADSP-BF531
ADF7020 ADF7020
MJPEG MJPEG
ENCODER ISM ISM ENCODER
+ TRANSCEIVER TRANSCEIVER +
FEC FEC
RANGE FROM
BATTERY CELL FEW TO TENS BATTERY CELL
AUDIO OF METERS AUDIO
CODEC POWER POWER CODEC
MANAGEMENT MANAGEMENT
A very low BER does not ensure that all the data packets will be is shown in Figure 4. The overall bill of materials (BOM) for this
entropy-decoded correctly. To improve the image quality, it is application is in the $75 range; and the 2.5” LCD TFT display
necessary to provide some mechanism to conceal part of an image is the most expensive part.
if too many important bits in a packet are corrupted. For this The application code corresponding to the system block
purpose, every packet is segmented and entropy-coded separately. diagram shown at Figure 4 is available from Arbos Ingénierie
After the detection of an erroneous segment or block, its content is (www.arbos-dsp.com),11 a French DSP third-party partner of
discarded. Depending upon the information lost, the dc and first Analog Devices.
two ac coefficients of the discrete cosine transform (DCT) of the
corresponding image block are estimated from the coefficients of CONCLUSION
the neighboring blocks. The final low-pass 2D 3 3 de-blocking The unique combination of the ADF7020 ISM-band transceiver
filter stage, designed to remove DCT blocking artifacts, helps to and the ADSP-BF531 Blackfin processor exhibits excellent radio-
smooth resulting distortion. link performance at a very attractive cost, with demonstrable
The ADSP-BF531 has more than enough power to handle versatility in various ISM digital wireless transmission systems.
both the MJPEG encoding or decoding and the channel FEC Further improvements to this communications model can
processing. No external memory is required for frame sizes up to be anticipated with future members of the ADF702x RF
QCIF (176 pixels by 144 pixels) with a 4:2:2 video format. Larger transceiver family and new TCP/IP friendly Blackfin DSP
frames are possible at the cost of an external SDRAM, which processors, together with additional channel- and source-coding
can also be used to store compressed video. This very low-cost software modules. b
processor can interface directly to CCIR-656-compatible low-cost
REFERENCES—VALID AS OF MARCH 2005
CMOS image sensors or TFT displays via its parallel peripheral 1
http://www.bluetooth.com
interface (see “Blackfin Processor’s Parallel Peripheral Interface 2
http://grouper.ieee.org/groups/802/11/main.html
Simplifies LCD Connection in Portable Multimedia”).10 Standard 3
http://www.analog.com/en/prod/0,2877,ADF7020,00.html
low-cost, low-power PCM audio codecs can be connected to the 4
http://www.analog.com /processors /processors /blackf in/
available serial port, SPORT1, to support digital transmission
index.html
of speech or audio. Or, the processor can provide speech coding 5
http://www.analog.com/en/prod/0,2877,ADSP-BF531,00.html
and decoding with moderate delay by executing a software codec 6
http://www.linxtechnologies.com/documents/EN300220-
similar to the FR-GSM (13 kbps).
1_2000.pdf
With a raw data rate of 200 kbps it is possible to achieve “baseline” 7
http://www.fcc.gov/oet/info/rules
MJPEG transmission over ISM at a rate of about four QCIF 8
http://www.analog.com/en/prod/0,2877,ADF7025,00.html
9
4:2:2 color-frames per second (fps), while leaving 20 kbps http://www.analog.com/en/content/0,2886,770_850_
for speech. This is acceptable for simple low-cost consumer 16127,00.html
10
appliances, such as video baby monitors, video door phones, or http://www.analog.com/library/analogdialogue/archives/39-01/
wireless home-security cameras. The functional block diagram lcd_drive.html
11
of such a point-to-point video transmission system (baby monitor) http://www.arbos-dsp.com