User Manual
692
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
Measurement Core Module (incl. ADC2)
23.3
ADC2 - Core (8-bit ADC)
23.3.1
Functional Description
The different sequencer modes are controlled by SFR Register:
• “Normal Sequencer Mode” described in the Chapter
.
• “Exceptional Interrupt Measurement” (EIM), upon hardware event, the channel programmed in
is inserted after the current measurement is finished. Afterwards the current sequence
will be continued with the next measurement from the current sequence.
• “Software Mode”, in Software Mode the control of the Channel Controller (Sequencer) is disabled, instead
the conversions are fully controlled by software. During Software Mode EIM hardware events are ignored.
Software Mode:
• Software mode can be entered
- by writing one of the sequence registers SQn (e.g. SQ
_1_4
[7:0] zero) or
- using Debug Suspend Mode
• In Software mode, the channel selection by the Sequencer is disabled. After the software mode is entered,
the conversions are controlled via
.
• The Software Mode is left
- when the maximum time is reached (maximum time specified in
) or
- when the sequence which started the software mode is reprogrammed with at least one channel set is
registers SQn (e.g. to SQ
_1_4
[7:0] zero
- leaving Debug Suspend Mode
Software Mode:
In Software Mode measurements are triggered by writing the
.SOS bit. This bit is active as
long as the conversion is in progress. The user polls the
.EOC bit. Once this bit is ‘1’ the
conversion is finished and the EOC bit is cleared on read (rh). After the EOC bit is cleared a new conversion can
be started
.SOS.
Debug Suspend Mode:
During Debug Suspend Mode the Sequencer is stopped once the current measurement is finished (after the
next EOC event) and Software Mode is entered. As long as the Debug Suspend Mode is active no measurements
are performed by the Sequencer. Once the Debug Suspend Mode is left, the Sequencer continues immediately
with the next pending measurement.
Measurements can be still triggered in Debug Suspend Mode/Software Mode. The maximum time of Software
Mode is disabled in Suspend Mode. EIM events are ignored during Debug Suspend Mode.
The ADC2 timing is controlled by SFR Register
• Sample time adjustment described in the register
.