f. Configure and start the trigger generation module (PDB or
TRIGMUX).
Case 5: Clearing the error status (applicable for the TRGMUX
case only)
a. Read the error status (ADC_SC2[TRGSTERR]).
b. If any above register bit is 1, then stop the trigger
generation module (TRGMUX).
c. Wait for a duration equals to total of 2.5 cycle of ADC
operating clock plus 1.5 cycles of ADC host interface clock, to
give time to latch the last trigger, if any.
d. Wait for the idle status of the trigger handler (poll the status
of ADC_SC2[TRGSTLAT] for all 0s).
e. Clear the above register bit by writing 1 to it.
f. Wait for the latched triggers to be processed and the trigger
handler to be idle (poll the status of ADC_SC2[TRGSTLAT]
for all 0s).
g. Reselect the trigger source for the trigger handler block
(configuration for this resides in a separate module on the
chip; refer to the SIM_ADCOPT register in the SIM chapter).
h. Configure and start the trigger generation module (PDB or
TRGMUX).
NOTE
Latched status clearing by writing 1 to
ADC_CFG1[CLRLTRG] should not be done while PDB
triggering through the trigger handler, as the PDB works in a
closed loop with the COCO flag from the ADC and provides
one trigger at a time. Clearing the latched status while it is
being processed within the trigger handler (before being
launched to the ADC) will stop its future conversion and there
will be no COCO flag. In such case, the PDB might enter an
indeterminate state.
37.10 ADC triggering configurations
The ADC supports two triggering schemes as already described in previous sections
through below two paths (See ADC0_PDB0 ADC triggering example):
1. Direct Triggering path through PDB on channel number 4 onward.
2. Multiplexed triggering path through PDB/TRGMUX on channels 0 to 3 through
trigger latching gasket.
Out of these, the user should either use direct triggering path on channel 4 onward with
PDB triggering on channels 0 to 3 or only TRGMUX path on channel 0 to 3. When using
direct triggering scheme through PDB, the pretriggers should be minimum 4 bus clock
cycles apart. Accordingly, following table shows the ADC triggering configurations and
behavior:
Chapter 37 ADC Configuration
MWCT101xS Series Reference Manual, Rev. 3, 07/2019
NXP Semiconductors
981
Содержание MWCT101 S Series
Страница 2: ...MWCT101xS Series Reference Manual Rev 3 07 2019 2 NXP Semiconductors...
Страница 42: ...MWCT101xS Series Reference Manual Rev 3 07 2019 42 NXP Semiconductors...
Страница 50: ...Conventions MWCT101xS Series Reference Manual Rev 3 07 2019 50 NXP Semiconductors...
Страница 70: ...Aliased bit band regions MWCT101xS Series Reference Manual Rev 3 07 2019 70 NXP Semiconductors...
Страница 78: ...Pinout diagrams MWCT101xS Series Reference Manual Rev 3 07 2019 78 NXP Semiconductors...
Страница 96: ...WCT101xS safety concept MWCT101xS Series Reference Manual Rev 3 07 2019 96 NXP Semiconductors...
Страница 130: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 130 NXP Semiconductors...
Страница 200: ...Initialization application information MWCT101xS Series Reference Manual Rev 3 07 2019 200 NXP Semiconductors...
Страница 284: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 284 NXP Semiconductors...
Страница 430: ...Functional Description MWCT101xS Series Reference Manual Rev 3 07 2019 430 NXP Semiconductors...
Страница 472: ...Application Information MWCT101xS Series Reference Manual Rev 3 07 2019 472 NXP Semiconductors...
Страница 508: ...Reset memory map and register descriptions MWCT101xS Series Reference Manual Rev 3 07 2019 508 NXP Semiconductors...
Страница 528: ...Module clocks MWCT101xS Series Reference Manual Rev 3 07 2019 528 NXP Semiconductors...
Страница 634: ...SRAM configuration MWCT101xS Series Reference Manual Rev 3 07 2019 634 NXP Semiconductors...
Страница 696: ...Initialization and application information MWCT101xS Series Reference Manual Rev 3 07 2019 696 NXP Semiconductors...
Страница 818: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 818 NXP Semiconductors...
Страница 960: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 960 NXP Semiconductors...
Страница 970: ...Memory Map and Register Definition MWCT101xS Series Reference Manual Rev 3 07 2019 970 NXP Semiconductors...
Страница 992: ...ADC calibration scheme MWCT101xS Series Reference Manual Rev 3 07 2019 992 NXP Semiconductors...
Страница 1118: ...Application information MWCT101xS Series Reference Manual Rev 3 07 2019 1118 NXP Semiconductors...
Страница 1294: ...Initialization Procedure MWCT101xS Series Reference Manual Rev 3 07 2019 1294 NXP Semiconductors...
Страница 1348: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1348 NXP Semiconductors...
Страница 1366: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1366 NXP Semiconductors...
Страница 1514: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1514 NXP Semiconductors...
Страница 1726: ...Debug and security MWCT101xS Series Reference Manual Rev 3 07 2019 1726 NXP Semiconductors...
Страница 1740: ...Initialization application information MWCT101xS Series Reference Manual Rev 3 07 2019 1740 NXP Semiconductors...
Страница 1760: ...MWCT101xS Series Reference Manual Rev 3 07 2019 1760 NXP Semiconductors...