Instruction manual
AMPDIO DRIVERS
Page 43
three data values on each interrupt. Ports A, B and C from
the first PPI chip (PPIX) are formed into the first data
value. Ports A, B and C from the second PPI chip (PPIY)
are formed into the second data value. Ports A, B and C
from the third PPI chip (PPIZ) are formed into the third
data value.
ISR_READ_PPIC = 6 Reads port C of the interrupting PPI chip.
ISR_PC27 = 7 Reads the raw analogue data from the PC27’s ADC chip.
Not recommended.
ISR_READ_DATA8 = 8 Read an 8-bit I/O port (Chip1, Chan1).
ISR_READ_DATA16 = 9 Reads two 8-bit I/O ports (Chip1, Chan1, Chip2, Chan2).
The first port is read into the low 8 bits and the second
port is read into the next 8 bits.
ISR_READ_ADCS = 10 Reads an ADC channel, cooking the data (Group,
ChanMask). The channel is then switched ready for the
next reading. The channels specified by the channel mask
bit-vector are switched between cyclically, starting with the
lowest channel specified by the mask. If the ADC channel
group being read is the source of the interrupt and it has a
FIFO, then the interrupt is set up to make use of the FIFO.
When using the FIFO, the hardware does the channel
switching by itself. As much data as possible is read from
the FIFO on each interrupt.
ISR_READ_ADCSNOFIFO = 11 Like ISR_READ_ADCS but does not use the FIFO.
ISR_READ_ADCSFIFO = 12 Like ISR_READ_ADCS but uses the FIFO even if the
ADC channel group is not the interrupt source. Requires
the ADC channel group to have a FIFO.
ISR_READ_ADCSASAP = 15 Like ISR_READ_ADCS but if the ADC channel group has
a FIFO and it is the source of the interrupt, the FIFO
interrupt trigger level will be set to fill buffers as soon as
possible. Note that ISR_READ_ADCS also does this if the
buffer size is small (up to 128 samples for PCI230 and
PCI260) or if the interrupt is set up in non-continuous
mode.
ISR_WRITE_16COUNT = 39 Writes the initial count value of a specified 16-bit counter
(Chip1, Chan1).
ISR_WRITE_32COUNT = 40 Writes the initial count values of two specified 16-bit
counters (Chip1, Chan1, Chip2, Chan2). The upper 16 bits
of the 32-bit data value is used to set the initial count value
of the first specified counter. The lower 16 bits of the 32-bit
data value is used to set the initial count value of the
second specified counter.
ISR_WRITE_DATA8 = 32 Writes an 8-bit I/O port (Chip1, Chan1).
ISR_WRITE_DATA16 = 33 Writes two 8-bit I/O ports (Chip1, Chan1, Chip2, Chan2).
The low 8 bits are written to the first I/O port and the next
8 bits to the second I/O port.