Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
БЭМЗ полищук доки / Склад / Datasheet_LM3S6965.pdf
Скачиваний:
10
Добавлен:
21.12.2020
Размер:
6.13 Mб
Скачать

LM3S6965 Microcontroller

Figure 12-1. ADC Module Block Diagram

Trigger Events

 

 

 

 

 

 

 

 

 

Comparator

 

 

 

 

 

 

 

 

 

 

Control/Status

 

 

 

 

Sample

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GPIO (PB4)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sequencer 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer

 

 

 

 

SS3

 

 

 

 

 

 

 

 

 

 

 

PWM

 

 

 

 

 

 

 

 

 

 

ADCACTSS

 

 

 

 

 

ADCSSMUX0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADCOSTAT

 

 

 

 

 

ADCSSCTL0

Comparator

 

 

 

 

 

 

 

 

 

 

ADCUSTAT

 

 

 

 

 

ADCSSFSTAT0

GPIO (PB4)

 

 

 

 

 

 

 

 

 

 

ADCSSPRI

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer

 

 

 

 

SS2

 

 

 

 

 

 

 

 

 

 

Sample

PWM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sequencer 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Comparator

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADCSSMUX1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GPIO (PB4)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADCSSCTL1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer

 

 

 

 

SS1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADCSSFSTAT1

PWM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Comparator

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sample

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GPIO (PB4)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sequencer 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer

 

 

 

 

SS0

 

 

 

 

 

 

 

 

 

 

 

PWM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADCSSMUX2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADCSSCTL2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADCSSFSTAT2

 

 

 

 

ADCEMUX

 

 

 

 

 

 

 

 

 

Sample

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADCPSSI

 

 

Interrupt Control

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sequencer 3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SS0 Interrupt

 

 

 

 

 

 

 

 

 

 

ADCIM

 

 

 

 

 

ADCSSMUX3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SS1 Interrupt

 

 

 

 

 

 

 

 

 

 

ADCRIS

 

 

 

 

 

ADCSSCTL3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SS2 Interrupt

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADCISC

 

 

 

 

 

ADCSSFSTAT3

SS3 Interrupt

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12.2Functional Description

Analog Inputs

Analog-to-Digital

Converter

Hardware Averager

ADCSAC

FIFO Block

ADCSSFIFO0

ADCSSFIFO1

ADCSSFIFO2

ADCSSFIFO3

The Stellaris® ADC collects sample data by using a programmable sequence-based approach insteadofthetraditionalsingleordouble-samplingapproachesfoundonmanyADCmodules. Each sample sequence is a fully programmed series of consecutive (back-to-back) samples, allowing the ADC to collect data from multiple input sources without having to be re-configured or serviced by the controller. The programming of each sample in the sample sequence includes parameters such astheinputsourceandmode(differentialversussingle-endedinput),interruptgenerationonsample completion, and the indicator for the last sample in the sequence.

12.2.1Sample Sequencers

The sampling control and data capture is handled by the sample sequencers. All of the sequencers areidenticalinimplementationexceptforthenumberofsamplesthatcanbecapturedandthedepth of the FIFO. Table 12-1 on page 279 shows the maximum number of samples that each sequencer can capture and its corresponding FIFO depth. In this implementation, each FIFO entry is a 32-bit word, with the lower 10 bits containing the conversion result.

Table 12-1. Samples and FIFO Depth of Sequencers

SequencerNumber of SamplesDepth of FIFO

SS3

1

1

SS2

4

4

SS1

4

4

SS0

8

8

For a given sample sequence, each sample is defined by two 4-bit nibbles in the ADC Sample Sequence Input Multiplexer Select (ADCSSMUXn) and ADC Sample Sequence Control

November 16, 2008

279

Preliminary

Соседние файлы в папке Склад