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

Last modified by Microchip on 2025/01/02 10:05

Overview

A low-high one-shot, or rising-edge one-shot pulse generator, creates a single pulse of a defined width in response to the rising edge of an input signal. One-shots are crucial 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.

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

Requirements

Procedure

Implement the CLB Logic by configuring the CLB to implement flip-flops, AND gates, or equivalent logic for the low-high One-Shot. Refer to the block diagram 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 by setting the CLB to use the LFINTOSC clock source.

Back to Top


Assign pins by conecting the input of the logic to the signal you want the low-high one-shot to process. Route the output pulse to the desired destination in your system.

Back to Top


Verify the Design by confirming the low-high one-shot functionality using a debugging tool to ensure proper operation.

Back to Top

Results

This screenshot demonstrates the behavior of a low-high one-shot pulse generator. The input (Channel 0) triggers the one-shot on a rising edge, causing the output (Channel 1) to change from low to high. The output remains high until the next rising edge of the input, ensuring precise and reliable control by generating one response per signal change.

Low-High One-Shot Pulse Generator Circuit Output

Learn More:

Back to Top