| Target Support Package™ FM5 | ![]() |
Target Support Package FM5/ MPC555 Driver Library/ Enhanced Queued Analog-To-Digital Converter Module-64

The QADCE Analog In block sets the QADC64E into continuous scan mode. It then samples the specified channels at the specified rate. In continuous scan mode, the analog-to-digital converter is scanned as fast as possible, at a rate much faster than the sample rate of the model. Using continuous scan mode ensures that your application will obtain the latest signal value.
The MPC56x has two QADC64E modules, A and B. You can program these individually. You can place only one instance of the QADCE Analog In block per module in your model or subsystem.

Select module A or B.
A vector of numbers representing channels to be scanned. A channel number in the Channels vector selects the input channel number corresponding to the analog input pin to be sampled and converted.
The analog input pin channel number assignments and the pin definitions vary, depending on whether the QADC64E is operating in multiplexed or nonmultiplexed mode. The queue scan mechanism makes no distinction between an internally or externally multiplexed analog input.
In nonmultiplexed mode, specify a vector of numbers from [44..59 64..87] corresponding to pins AN44..AN59 and AN64..AN87.
See the table following for the mapping in multiplexed mode between the channel numbers and the hardware pins.
Converted data is read from the 10-bit wide QADC64E result word table into a 16-bit word. Data from the result word table can be accessed in three different formats. The Justification menu selects from the following formats:
Right-justified (unsigned): with zeros in the higher order unused bits.
Left-justified (signed): with the most significant bit inverted to form a sign bit, and zeros in the unused lower order bits. In this mode, zero is treated as the half scale of the input range.
Left-justified (unsigned): with zeros in the unused lower order bits.
Block sample time; determines sample rate at which the port is monitored
Use the following table to work out how the block ports and bits map to processor pins on the MPC565 in multiplexed mode.
In summary
No multiplexing:
channels available 44-59 and 64-87
A only multiplexing:
channels available 0-31; 48-51; 55-59; 64-87
B only multiplexing:
channels available 0-31; 48-59; 64-71; 75-87
A and B multiplexing:
channels available 0-31; 48-51; 55-59; 64-71; 75-87
Multiplexed Scan Mode
Port Pin | Analog Pin | Other Functions | Pin Type | Channel |
|---|---|---|---|---|
ANw/A_PQB0 | AN00 to AN07 | - | Input | 0 to 7 |
ANx/A_PQB1 | AN08 to AN15 | - | Input | 8 to 15 |
ANy/A_PQB2 | AN16 to AN23 | - | Input | 16 to 23 |
ANz/A_PQB3 | AN24 to AN31 | - | Input | 24 to 31 |
A_PQB0 | AN44 | ANw | Input/Output | 44 |
A_PQB1 | AN45 | ANx | Input/Output | 45 |
A_PQB2 | AN46 | ANy | Input/Output | 46 |
A_PQB3 | AN47 | ANz | Input/Output | 47 |
A_PQB4 | AN48 | - | Input/Output | 48 |
A_PQB5 | AN49 | - | Input/Output | 49 |
A_PQB6 | AN50 | - | Input/Output | 50 |
A_PQB7 | AN51 | - | Input/Output | 51 |
A_PQA0 | AN52 | MA0 | Input/Output | 52 |
A_PQA1 | AN53 | MA1 | Input/Output | 53 |
A_PQA2 | AN54 | MA2 | Input/Output | 54 |
A_PQA3 | AN55 | - | Input/Output | 55 |
A_PQA4 | AN56 | - | Input/Output | 56 |
A_PQA5 | AN57 | - | Input/Output | 57 |
A_PQA6 | AN58 | - | Input/Output | 58 |
A_PQA7 | AN59 | - | Input/Output | 59 |
B_PQB0 | AN64 | - | AMUX Input | 64 |
B_PQB1 | AN65 | - | AMUX Input | 65 |
B_PQB2 | AN66 | - | AMUX Input | 66 |
B_PQB3 | AN67 | - | AMUX Input | 67 |
B_PQB4 | AN68 | - | AMUX Input | 68 |
B_PQB5 | AN69 | - | AMUX Input | 69 |
B_PQB6 | AN70 | - | AMUX Input | 70 |
B_PQB7 | AN71 | - | AMUX Input | 71 |
B_PQA0 | AN72 | MA0 | AMUX Input | 72 |
B_PQA1 | AN73 | MA1 | AMUX Input | 73 |
B_PQA2 | AN74 | MA2 | AMUX Input | 74 |
B_PQA3 | AN75 | - | AMUX Input | 75 |
B_PQA4 | AN76 | - | AMUX Input | 76 |
A_PQA5 | AN77 | - | AMUX Input | 77 |
A_PQA6 | AN78 | - | AMUX Input | 78 |
A_PQA7 | AN79 | - | AMUX Input | 79 |
- | AN80 | - | - | 80 |
- | AN81 | - | - | 81 |
- | AN82 | - | - | 82 |
- | AN83 | - | - | 83 |
- | AN84 | - | - | 84 |
- | AN85 | - | - | 85 |
- | AN86 | - | - | 86 |
- | AN87 | - | - | 87 |
In this table, MA0 to MA2 indicates these pins (A_ and B_PQA0-2) are used as output pins to drive an external demultiplexer.
![]() | QADC Digital In | QADCE Digital In | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |