![NXP Semiconductors SAFE ASSURE Qorivva MPC5601P Reference Manual Download Page 616](http://html.mh-extra.com/html/nxp-semiconductors/safe-assure-qorivva-mpc5601p/safe-assure-qorivva-mpc5601p_reference-manual_1721898616.webp)
Chapter 24 Cross Triggering Unit (CTU)
MPC5602P Microcontroller Reference Manual, Rev. 4
616
Freescale Semiconductor
24.4.1
ADC commands list
The ADC can be controlled by the CPU (CPU Control Mode) and by the CTU (CTU Control Mode). The
CTU can control the ADC by sending an ADC command only when the ADC is in CTU control mode.
During the CTU control mode, the CPU is able to write to the ADC registers but it can not start a new
conversion. A control bit is allowed to select from the classic interface of the CTU control mode. Once
selected, no change is possible unless a reset occurs.
The SU uses a Commands List in order to select the command to send to the ADC when a trigger event
occurs. The commands list can hold twenty-four 16-bit commands (see
) and it is double-buffered, that is, the commands list can be updated at any time between two
consecutive MRS, but the changes become workable only after the next MRS occurs, and a correct reload
is performed. In order to manage the commands list, 5 bits are available in the CLCRx (ADC Commands
List Control Register
x
), for the position of the first command in the list of commands for each trigger
event. The number of commands piloted by the same trigger event is defined directly in the commands list.
For each command, a bit defines whether or not it is the first command of a commands list.
24.4.2
ADC commands list format
The CTU can be interfaced with two ADCs, supporting the Single Conversion Mode and the Dual
Conversion Mode.
In Single Conversion Mode only one ADC starts a conversion at a time. In Dual Conversion Mode both
ADCs start a conversion at the same time; in particular both the ADC conversions are performed at the
same time while the storage of the results is performed in series. In Dual Conversion Mode, 4 bits select
each channel number, and the conversion mode selection bit selects the Dual Conversion Mode. If the
Single Conversion Mode is selected, 5 of the 8 bits reserved to select the channels in Dual Conversion
Mode are re-used to select the channel (4 bits) and the ADC unit (1 bit). See
list register x (x = 1,...,24) (CLRx)
.
The result of each conversion is stored in one of the four available FIFOs.
The interrupt request bit is used as an interrupt request when ADC will complete the command with this
bit set and it is only for CTU internal use. Before the next command to the CTU controls is sent, the value
of the first command (FC) bit is checked to see if it is the current command is the first command of a new
stream of consecutive commands or not. If not, the CTU sends the command.
According to the previous considerations, the commands in the list allow control on:
•
Channel 0: number of ADC channel to sample from ADC unit 0 (4 bits)
•
Channel 1: number of ADC channel to sample from ADC unit 1 (4 bits)
•
FIFO selection bits for the ADC unit 0/1 (2 bits)
•
Conversion Mode selection bit
•
First command bit (only for CTU internal use)
•
Interrupt request bit (only for CTU internal use)
On this device, only ADC_0 is implemented so a new CTU/ADC interface is implemented in order to
interface the CTU and the only ADC_0. This new CTU/ADC interface is a logic machine between the