English
Language : 

DSPIC33EP256GP506-I Datasheet, PDF (333/510 Pages) Microchip Technology – 16-bit Microcontrollers and Digital Signal Controllers
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X, AND PIC24EPXXXGP/MC20X
24.0 PERIPHERAL TRIGGER
GENERATOR (PTG) MODULE
Note 1: This data sheet summarizes the fea-
tures 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 “Section 32. Periph-
eral Trigger Generator (PTG)”
(DS70669) of the “dsPIC33E/PIC24E
Family Reference Manual”, which is
available from the Microchip web site
(www.microchip.com).
2: Some registers and associated bits
described in this section may not be
available on all devices. Refer to
Section 4.0 “Memory Organization” in
this data sheet for device-specific register
and bit information.
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 register
(PTGQUE0-PTQUE7), which performs operations
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:
- Four configurable processor interrupts
- 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
• Able to trigger or synchronize to these
peripherals:
- Watchdog Timer
- Output Compare
- Input Capture
- ADC
- PWM
- Op amp/Comparator
© 2011-2012 Microchip Technology Inc.
Preliminary
DS70657E-page 333