MAX32665-MAX32668 User Guide
Maxim Integrated Page 349 of 457
17. Pulse Train Engine (PT)
Each independent pulse train engine operates either in Square Wave mode which generates a continuous 50% duty-cycle
square wave, or pulse train mode which generates a continuous programmed bit pattern from 2- to 32-bits in length. Pulse
train engines are used independently or may be synchronized together to generate signals in unison. The frequency of each
generated output can be set separately based on a divisor of the Peripheral Clock.
17.1 Instances
The device provides 16 instances of the pulse train engine peripheral.
• PT0
• PT1
• PT2
• PT3
• PT4
• PT5
• PT6
• PT7
• PT8
• PT9
• PT10
• PT11
• PT12
• PT13
• PT14
• PT15
All peripheral registers share a common register set.
17.2 Pulse Train Engine Features
The pulse train outputs with individually programmable modes, patterns and output enables. The pulse train engine uses
the Peripheral Clock (PCLK),
, ensuring all pulse train outputs use the same clock source.
• Independent or synchronous pulse train output operation
• Atomic Enable and Atomic Disable
• Synchronous enable or disable of pulse train output(s) without modification to non-intended pulse train outputs
• Multiple Output Modes:
Square Wave Output mode generates a repeating square wave (50% duty cycle)
Pattern Output mode for generating a customizable output wave based on a programmable bit pattern from 2
to 32 output cycles
• Global clock for all generated outputs
• Individual rate configuration for each pulse train output
• Configuration registers are modifiable while the pulse train engine is running
• Pulse train outputs can be halted and resumed at the same point
17.3 Engine
The pulse train engine uses the Peripheral Clock as the peripheral input clock,. Each pulse train output is individually
configurable and independently controlled.
The following sections describe the available configuration options for each individual pulse train output.