English
Language : 

PXS20RM Datasheet, PDF (259/1368 Pages) Freescale Semiconductor, Inc – PXS20 Microcontroller
Cross-Triggering Unit (CTU)
This architecture allows user to pre-set, for example, a trigger to the eTimer1 in the middle of an
ADC conversion, i.e. the SU will be considered busy only if a request to perform the same action
that the SU is already performing occurs. One of the ADC_OE, T0_OE, T1_OE or ET_OE bit is
set.
• Invalid (unrecognized) ADC command and the ICE bit is set.
• The MRS occurs before the enabled trigger events occur and the MRS_O bit is set.
• TGS overrun in sequential mode: a new incoming EV occurs before than the trigger event selected
by the previous EV occurs. The incoming EV sets an internal busy flag. The outgoing trigger event
(all line are OR-ed) resets this flag to zero. TGS Overrun in the sequential mode shall be generated
under the following conditions:
— TGS is in sequential mode
— there is an incoming EV while the busy flag is high. the TGS_OSM bit is set.
The faults/errors flags in the CTU error flag register and in the CTU interrupt flag register can be cleared
by writing a 1 while writing a 0 has no effect. The CTU does not support a write-protection mechanism.
13.8.3 CTU interrupt/DMA requests
The CTU can perform the following interrupt/DMA requests (15 interrupt lines):
• Error interrupt request (see Section 13.8.2, CTU faults and errors) (1 interrupt line);
• ADC command interrupt request (1 interrupt line);
• Interrupt request on MRS occurrence (1 interrupt line);
• Interrupt request on each trigger event occurrence (1 interrupt line for each trigger event).
• FIFOs interrupt requests and/or DMA transfer request (1 interrupt line for each FIFO).
• DMA transfer request on the MRS occurrence if GRE bit is set;
The interrupt flags are shown in Table 13-1.
Table 13-1. CTU interrupts
Interrupt
MRS_RE
SM_TO
ICE
MRS_O
TGS_OSM
ADC_OE
T0_OE
T1_OE
ET_OE
ADC_I
MRS_I
Interrupt function
Master Reload Signal Reload Error
Trigger Overrun (more than 8 EV) in TGS Sequential Mode
Invalid Command Error
Master Reload Signal Overrun
TGS Overrun in Sequential Mode
ADC command generation Overrun Error
Timer 0 trigger generation Overrun Error
Timer 1 trigger generation Overrun Error
External Trigger generation Overrun Error
ADC command interrupt flag
MRS Interrupt flag
Freescale Semiconductor
PXS20 Microcontroller Reference Manual, Rev. 1
13-13