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

The QADC Digital In block allows you to treat the QADC64 pins as digital inputs. Each QADC64 module has two 8-bit ports, A and B. You can use any bit on either port as a digital input.

Select module A or B.
Select an 8 bit port (A or B) on the module.
A vector of bits (numbered 0-7) to read. The vector should not be longer than eight elements.
Block sample time; determines sample rate at which the port is monitored.
Use this table to work out how the block ports and bits map to processor pins on the MPC555.
Relationship of Port/Bit Parameters to Hardware Pins
Port | Bit | Hardware Pin |
|---|---|---|
B | 0 | A_AD0 / PQB0 |
B | 1 | A_AD1 / PQB1 |
B | 2 | A_AD2 / PQB2 |
B | 3 | A_AD3 / PQB3 |
B | 4 | A_AD4 / PQB4 |
B | 5 | A_AD5 / PQB5 |
B | 6 | A_AD6 / PQB6 |
B | 7 | A_AD7 / PQB7 |
A | 0 | A_AD8 / PQA0 |
A | 1 | A_AD9 / PQA1 |
A | 2 | A_AD10 / PQA2 |
A | 3 | A_AD11 / PQA3 |
A | 4 | A_AD12 / PQA4 |
A | 5 | A_AD13 / PQA5 |
A | 6 | A_AD14 / PQA6 |
A | 7 | A_AD15 / PQA7 |
![]() | QADC Analog In | QADCE Analog In | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |