41.2. Pulse Output
41.2.1. Overview
This example demonstrates how to configure PLB as a 32-bit pulse generator. Main features include:
Configure PWM to generate base clock signal
Route signals through TRGM module
Use PLB to generate specified number of pulse outputs
41.2.2. Configuration
PWM Configuration - Configure PWM to generate base clock - Set PWM compare value to generate square wave with specified duty cycle
TRGM Configuration - Configure trigger signal routing from PWM to PLB - Configure trigger signal routing from PLB to IO - Configure signal polarity and trigger modes
PLB Configuration - Initialize counter - Set counter value for generating specified number of pulses - Configure lookup tables (LUT) for pulse counting and output control
41.2.3. Board Setting
Connect the pulse output pin to the oscilloscope
41.2.4. Running the example
When the project runs correctly:
The oscilloscope can capture continuous pulses
The pulse period is determined by PWM_PERIOD_IN_MS macro
The serial port terminal will output the following information:
PLB DEMO