beautypg.com

Table 10. adc fifo depth bit configuration – Rainbow Electronics MAX1329 User Manual

Page 45

background image

MAX1329/MAX1330

12-/16-Bit DASs with ADC, DACs, DPIOs, APIOs,

Reference, Voltage Monitors, and Temp Sensor

______________________________________________________________________________________

45

Table 10. ADC FIFO Depth Bit
Configuration

AFFD3

AFFD2

AFFD1

AFFD0

ADC FIFO

WORD

DEPTH

WRITE

POINTER

RANGE

0

0

0

0

FIFO disabled

0

0

0

1

2

0-1

0

0

1

0

3

0-2

0

0

1

1

4

0-3

0

1

0

0

5

0-4

0

1

0

1

6

0-5

0

1

1

0

7

0-6

0

1

1

1

8

0-7

1

0

0

0

9

0-8

1

0

0

1

10

0-9

1

0

1

0

11

0-10

1

0

1

1

12

0-11

1

1

0

0

13

0-12

1

1

0

1

14

0-13

1

1

1

0

15

0-14

1

1

1

1

16

0-15

Table 11. ADC FIFO Interrupt-Address Bit
Configuration

AFFI3

AFFI2

AFFI1

AFFI0

ADC FIFO

INTERRUPT

ADDRESS

0

0

0

0

0

0

0

0

1

1

0

0

1

0

2

0

0

1

1

3

0

1

0

0

4

0

1

0

1

5

0

1

1

0

6

0

1

1

1

7

1

0

0

0

8

1

0

0

1

9

1

0

1

0

10

1

0

1

1

11

1

1

0

0

12

1

1

0

1

13

1

1

1

0

14

1

1

1

1

15

MSB

NAME

AFFDATA11

AFFDATA10

AFFDATA9

AFFDATA8

AFFDATA7

AFFDATA6

AFFDATA5

AFFDATA4

DEFAULT

0

0

0

0

0

0

0

0

LSB

NAME

AFFDATA3

AFFDATA2

AFFDATA1

AFFDATA0

AFFA3

AFFA2

AFFA1

AFFA0

DEFAULT

0

0

0

0

0

0

0

0

Note: Data length can vary from 1 to 16 words, where a word is 16 bits (12 data bits plus 4 address bits).

Read Format

A single read from the ADC FIFO register returns the
ADC FIFO data and the 4-bit FIFO address (AFFA<3:0>)
corresponding to the location read.

After clocking out the 16-bit word, the read pointer
increments and continual clock shifts out the 16-bit
word at the location pointed to by the ADC FIFO read
pointer. If trying to read from the ADC FIFO at a location
pointed to by the ADC FIFO write pointer, the FIFO
repeats the last ADC conversion result and correspond-
ing ADC FIFO address equivalent to the ADC FIFO
write pointer. To stop reading, bring

CS high after

clocking out the 16th bit of a complete word. The read

pointer increments after each complete 16-bit word
read. It does not increment if the read is aborted by
bringing

CS high before clocking out all 16 bits. Any

read operation on the ADC FIFO register resets the
interrupt flag (AFF).

AFFDATA<11:0>: ADC FIFO Read Data bits (default =
0000 0000 0000). AFFDATA<11:0> returns the data
written by the ADC at the current read pointer location.

AFFA<3:0>: ADC FIFO Read Address bits (default =
0000). AFFA<3:0> returns the address of the current
read pointer location. AFFA<3:0> is never greater than
the AFFD<3:0> programmed value.