40.1. Pulse Output
40.1.1. Overview
This example demonstrates how to configure PLA as a 7bit pulse generator. By configuring PLA filters, AOI logic and flip-flops, it implements a 7-bit counter function that can generate continuous pulse output.
40.1.2. Board Setting
Connect the pulse output pin BOARD_PLA_IO_TRG_NUM to the oscilloscope
40.1.3. Function Description
Configure PWM to generate reference clock signal
Configure PLA’s multi-level filters, AOI logic and D flip-flops
Implement 7-bit counting functionality to generate continuous pulse output
PWM period can be configured through macro PWM_PERIOD_IN_MS
40.1.4. Running the example
When the project runs correctly: - The oscilloscope can capture up to 127 pulses - The serial port terminal will output the following information:
PLA DEMO