How to Create a High-Low One-Shot Pulse Generator (Falling Edge)
Overview
A high-low one-shot, or falling-edge one-shot pulse generator, creates a single pulse of a defined width in response to the falling edge of an input signal. One-shots are essential for precise timing and control, ensuring events or actions occur only once per input signal. They are commonly used for tasks like generating delays, controlling pulse width, and detecting specific signal transitions in digital systems.
Requirements
- Configurable Logic Block (CLB) Peripheral
- Find a Part - Microcontroller and Processor Products page
Procedure
Implement the CLB Logic
Configure the CLB to implement flip-flops, AND gates, or equivalent logic for the high-low one-shot. Refer to Figure 1 for guidance.
Select a Clock Source for the CLB
Set the CLB to use the LFINTOSC clock source.
Assign the Pins
Connect the input of the logic to the signal you want the high-low one-shot to process. Route the output pulse to the desired destination in your system.
Verify the Design
Confirm the high-low one-shot functionality using a debugging tool to ensure proper operation.
Results
Figure 2 demonstrates the behavior of a high-low one-shot pulse generator. The input (Channel 0) triggers the one-shot on a falling edge, causing the output (Channel 1) to change from high to low. The output remains high until the next falling edge of the input, ensuring precise and reliable control by generating one response per signal change.