Microchip Technology MA330031-2 Data Sheet
2011-2013 Microchip Technology Inc.
DS70000657H-page 337
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X AND PIC24EPXXXGP/MC20X
24.0
PERIPHERAL TRIGGER
GENERATOR (PTG) MODULE
GENERATOR (PTG) MODULE
24.1
Module Introduction
The Peripheral Trigger Generator (PTG) provides a
means to schedule complex high-speed peripheral
operations that would be difficult to achieve using soft-
ware. The PTG module uses 8-bit commands, called
“Steps”, that the user writes to the PTG Queue
registers (PTGQUE0-PTGQUE7), which perform oper-
ations, such as wait for input signal, generate output
trigger and wait for timer.
means to schedule complex high-speed peripheral
operations that would be difficult to achieve using soft-
ware. The PTG module uses 8-bit commands, called
“Steps”, that the user writes to the PTG Queue
registers (PTGQUE0-PTGQUE7), which perform oper-
ations, such as wait for input signal, generate output
trigger and wait for timer.
The PTG module has the following major features:
• Multiple clock sources
• Two 16-bit general purpose timers
• Two 16-bit general limit counters
• Configurable for rising or falling edge triggering
• Generates processor interrupts to include:
• Multiple clock sources
• Two 16-bit general purpose timers
• Two 16-bit general limit counters
• Configurable for rising or falling edge triggering
• Generates processor interrupts to include:
- Four configurable processor interrupts
- Interrupt on a Step event in Single-Step mode
- Interrupt on a PTG Watchdog Timer time-out
- Interrupt on a Step event in Single-Step mode
- Interrupt on a PTG Watchdog Timer time-out
• Able to receive trigger signals from these
peripherals:
- ADC
- PWM
- Output Compare
- Input Capture
- Op Amp/Comparator
- INT2
- ADC
- PWM
- Output Compare
- Input Capture
- Op Amp/Comparator
- INT2
• Able to trigger or synchronize to these
peripherals:
- Watchdog Timer
- Output Compare
- Input Capture
- ADC
- PWM
- Op Amp/Comparator
- Watchdog Timer
- Output Compare
- Input Capture
- ADC
- PWM
- Op Amp/Comparator
Note 1:
This data sheet summarizes the
features of the dsPIC33EPXXXGP50X,
dsPIC33EPXXXMC20X/50X and
PIC24EPXXXGP/MC20X families of
devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to “Peripheral Trigger
Generator (PTG)”
features of the dsPIC33EPXXXGP50X,
dsPIC33EPXXXMC20X/50X and
PIC24EPXXXGP/MC20X families of
devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to “Peripheral Trigger
Generator (PTG)”
(DS70669) in the
“dsPIC33/PIC24 Family Reference
Manual”
Manual”
, which is available from the
www.microchip.com
).
2:
Some registers and associated bits
described in this section may not be
available on all devices. Refer to
described in this section may not be
available on all devices. Refer to
in
this data sheet for device-specific register
and bit information.
and bit information.