
MOTOROLA
A-2
USING THE QSPI FOR ANALOG DATA AQUISITION
For More Information On This Product,
Go to: www.freescale.com
QSM
REFERENCE MANUAL
analog inputs, labeled AN0–AN11, and two voltage reference inputs, labeled V
AG
(an-
alog ground) and V
REF
(positive reference voltage). Power is supplied through the V
SS
and V
DD
pins and is a nominal 5-V. The MC145050 requires an external clock to be
supplied on the A/D CLK pin to regulate the data conversion.
Channel selection and conversion results are transferred through the digital serial
communication pins. A serial transfer synchronizing clock must be fed into the SCLK
input pin when the chip-select (CS) pin is driven low. The address to be converted is
serially transmitted into the DIN pin, and the conversion results are serially shifted out
the DOUT pin.
The MC145050 is designed to be used in conjunction with multiple serial devices on a
common bus; consequently, the DOUT pin is driven only when CS is asserted. The
serial protocol employed is Motorola SPI, which is compatible with the National Semi-
conductor Microwirea system and the Texas Instrument TMS370 series SPI units. The
Motorola queued serial module (QSM) also contains a QSPI that efficiently imple-
ments this protocol.
Figure A-1 MC145050 Pinout
A.3 Fundamentals of QSPI Operation
The following paragraphs give a brief overview of the QSPI as it applies to the exam-
ples that are presented. A more detailed description of the QSPI is contained in Sec-
tion 5 of
MC68332 User's Manual (see
Reference 2.
).
The QSPI is an intelligent, synchronous serial interface with a 16-entry, full-duplex
queue. It can continuously scan up to 16 independent peripherals and maintain a
queue of the most recently acquired information with no central processor unit (CPU)
intervention. It features variable word lengths, programmable chip selects, and select-
MC145050
ANALOG INPUTS
AN0-AN10
VOLTAGE
REFERENCES
DIGITAL SERIAL
COMMUNICATION PINS
A/D CONVERSION
CLOCK INPUT
(UP TO 2 MHz)
POWER SUPPLY
(5-V NOMINAL)
AN1
0
AN9
AN8
AN7
AN6
AN5
AN4
AN3
AN2
AN1
AN0
VRE
12
11
9
8
7
6
5
4
3
2
1
14
13
CS
SCK
DIN
DOUT
A/D
CLK
VDD
VSS
15
18
17
16
19
20
10
F
Freescale Semiconductor, Inc.
n
.