User Manual
755
Rev. 1.1
2019-03-18
TLE984xQX
Microcontroller with LIN and Power Switches for Automotive Applications
10-Bit Analog Digital Converter (ADC1)
24.3
ADC1 - Core (10-Bit ADC)
24.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 a 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. Up to max. 63 consecutive
measurements are possible.
• “Exceptional Sequence Measurement“ (ESM), upon a hardware event , the sequence programmed in
is inserted after the current measurement is finished. After the sequence (up to 12
measurements) exception is finished the next measurement from the interrupted sequence is selected.
After the Exceptional Sequence Measurement is finished an interrupt is issued.
• “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 and ESM hardware events are
ignored.
Software Mode:
• Software mode can be entered in different ways
- by writing one of the sequence registers SQn (e.g. to SQ
1
[11:0]) to zero or setting the register
.SW_MODE
- by writing the Exceptional Sequence Measurement (
) to zero and enable the Exceptional
Sequence Measurement.
- using Debug Suspend Mode
• In Software mode, the channel selection by the Sequencer is disabled. The entry of software mode is
acknowledged in the
. After the software mode is entered, the conversion 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 in its
registers SQn (e.g. to SQ
1
) not equal to zero
- when the Exceptional Sequence Measurement (
) is reprogrammed with at least one
channel set
- leaving Debug Suspend Mode
Important Note:
The ADC1 may give wrong results on channel 10 (P2.6) or channel 11 (P2.7), in case register SQ0_1.SQ0 ==
0x000 (i.e.software mode is executed automatically)
Workaround option 1: Do not set register SQ0_1.SQ0 = 0x000. Reason: if at least one bit is set, the software
mode is not started.
Workaround option 2: If SQ0_1.SQ0 = 0x000 needs to be used, make sure that MAX_TIME.MAX_TIME is >= 0x05.