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
Содержание SAFE ASSURE Qorivva MPC5601P
Страница 2: ...MPC5602P Microcontroller Reference Manual Rev 4 2 Freescale Semiconductor ...
Страница 4: ...MPC5602P Microcontroller Reference Manual Rev 4 4 Freescale Semiconductor ...
Страница 62: ...Chapter 2 MPC5602P Memory Map MPC5602P Microcontroller Reference Manual Rev 4 62 Freescale Semiconductor ...
Страница 104: ...Chapter 4 Clock Description MPC5602P Microcontroller Reference Manual Rev 4 104 Freescale Semiconductor ...
Страница 128: ...Chapter 6 Power Control Unit MC_PCU MPC5602P Microcontroller Reference Manual Rev 4 128 Freescale Semiconductor ...
Страница 272: ...Chapter 12 e200z0 and e200z0h Core MPC5602P Microcontroller Reference Manual Rev 4 272 Freescale Semiconductor ...
Страница 280: ...Chapter 14 Crossbar Switch XBAR MPC5602P Microcontroller Reference Manual Rev 4 280 Freescale Semiconductor ...
Страница 306: ...Chapter 16 Internal Static RAM SRAM MPC5602P Microcontroller Reference Manual Rev 4 306 Freescale Semiconductor ...
Страница 380: ...Chapter 17 Flash Memory MPC5602P Microcontroller Reference Manual Rev 4 380 Freescale Semiconductor ...
Страница 532: ...Chapter 21 LIN Controller LINFlex MPC5602P Microcontroller Reference Manual Rev 4 532 Freescale Semiconductor ...
Страница 578: ...Chapter 22 FlexCAN MPC5602P Microcontroller Reference Manual Rev 4 578 Freescale Semiconductor ...
Страница 708: ...Chapter 25 FlexPWM MPC5602P Microcontroller Reference Manual Rev 4 708 Freescale Semiconductor ...
Страница 742: ...Chapter 26 eTimer MPC5602P Microcontroller Reference Manual Rev 4 742 Freescale Semiconductor ...
Страница 760: ...Chapter 27 Functional Safety MPC5602P Microcontroller Reference Manual Rev 4 760 Freescale Semiconductor ...
Страница 782: ...Chapter 28 Fault Collection Unit FCU MPC5602P Microcontroller Reference Manual Rev 4 782 Freescale Semiconductor ...
Страница 788: ...Chapter 29 Wakeup Unit WKPU MPC5602P Microcontroller Reference Manual Rev 4 788 Freescale Semiconductor ...
Страница 798: ...Chapter 30 Periodic Interrupt Timer PIT MPC5602P Microcontroller Reference Manual Rev 4 798 Freescale Semiconductor ...
Страница 816: ...Chapter 32 Cyclic Redundancy Check CRC MPC5602P Microcontroller Reference Manual Rev 4 816 Freescale Semiconductor ...
Страница 848: ...Chapter 33 Boot Assist Module BAM MPC5602P Microcontroller Reference Manual Rev 4 848 Freescale Semiconductor ...
Страница 930: ...Chapter 36 Nexus Development Interface NDI MPC5602P Microcontroller Reference Manual Rev 4 930 Freescale Semiconductor ...