
MC68336/376
QUEUED ANALOG-TO-DIGITAL CONVERTER MODULE
MOTOROLA
USER’S MANUAL
Rev. 15 Oct 2000
8-4
are different from those of port B. All of the analog signal input pins may be used for
at least one other purpose.
8.4.1.2 Port A Digital Input/Output Pins
Port A pins are referred to as PQA[7:0] when used as a bidirectional 8-bit digital input/
output port. These eight pins may be used for general-purpose digital input signals or
digital open drain pull-down output signals.
Port A pins are connected to a digital input synchronizer during reads and may be used
as general purpose digital inputs.
Each port A pin is configured as an input or output by programming the port data
direction register (DDRQA). Digital input signal states are read from the PORTQA data
register when DDRQA specifies that the pins are inputs. Digital data in PORTQA is
driven onto the port A pins when the corresponding bits in DDRQA specify outputs.
are open drain drivers (so as to minimize the effects to the analog function of the pins),
external pull-up resistors must be used when port A pins are used to drive another
device.
8.4.2 Port B Pin Functions
The eight port B pins can be used as analog inputs, or as an 8-bit digital input only port.
Refer to the following paragraphs for more information.
8.4.2.1 Port B Analog Input Pins
When used as analog inputs, the eight port B pins are referred to as AN[51:48]/
AN[3:0]. Since port B functions as analog and digital input only, the analog character-
istics are different from those of port A. Refer to APPENDIX A CHARACTERISTICS for more information on analog signal characteristics. All of the
analog signal input pins may be used for at least one other purpose.
8.4.2.2 Port B Digital Input Pins
Port B pins are referred to as PQB[7:0] when used as an 8-bit digital input only port. In
addition to functioning as analog input pins, the port B pins are also connected to the
input of a synchronizer during reads and may be used as general-purpose digital
inputs.
Since port B pins are input only, there is no associated data direction register. Digital
input signal states are read from the PORTQB data register. Refer to D.5.5 Port Data 8.4.3 External Trigger Input Pins
The QADC has two external trigger pins (ETRIG[2:1]). The external trigger pins share
two multifunction port A pins (PQA[4:3]), which are normally used as analog channel
input pins. Each of the two external trigger pins is associated with one of the scan
queues. When a queue is in external trigger mode, the corresponding external trigger