How to Create a High-Low One-Shot Pulse Generator (Falling Edge)

Last modified by Microchip on 2025/01/02 09:49

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.

High-Low One-Shot Pulse Generator Circuit in MPLAB Melody

Figure 1

Requirements

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.

Information

Note: If using MPLAB® Code Configurator (MCC), use the CLB Synthesizer tool or download the pre-configured CLB file.

Back to Top


Select a Clock Source for the CLB

Set the CLB to use the LFINTOSC clock source.

Back to Top


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.

Back to Top


Verify the Design

Confirm the high-low one-shot functionality using a debugging tool to ensure proper operation.

Back to Top

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.

High-Low One-Shot Pulse Generator Circuit Output

Figure 2

Back to Top

Learn More

Back to Top