RM0046 Cross Triggering Unit (CTU)
Doc ID 16912 Rev 5 611/936
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 Section 24.8.10,
“Commands 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 CTU outputs and the ADC_0 inputs and it has no configuration
registers. It is implemented to ensure software compatibility between SPC560P40/34 and
the 512 Kbyte memory family device, in fact it is able to virtualize ADC_1 on
SPC560P40/34, so, for example, the user can write on SPC560P40/34 a command to start
a conversion on ADC_1 channels 0 and the CTU/ADC interface will translate this command
into a command for ADC_0 channel 6. Moreover CTU/ADC interface will manage software
programming mistakes for SPC560P40/34 as not allowed Dual Conversion Mode or wrong
ADC_0/1 channel number selection to ensure that the CTU does not go in a blocking status.
Table 310. ADC commands translation
Input command Output command
Single sampling ADC_0 channel 0 Single sampling ADC_0 channel 0
Single sampling ADC_0 channel 1 Single sampling ADC_0 channel 1
Single sampling ADC_0 channel 2 Single sampling ADC_0 channel 2
Single sampling ADC_0 channel 3 Single sampling ADC_0 channel 3
Single sampling ADC_0 channel 4 Single sampling ADC_0 channel 4
Single sampling ADC_0 channel 5 Single sampling ADC_0 channel 5
Single sampling ADC_0 channel 6 Not valid - force EOC to CTU
Single sampling ADC_0 channel 7 Not valid - force EOC to CTU
Single sampling ADC_0 channel 8 Not valid - force EOC to CTU
Single sampling ADC_0 channel 9 Not valid - force EOC to CTU
Single sampling ADC_0 channel 10 Not valid - force EOC to CTU