|

|  How to fix signal jitter issues in Rigol Oscilloscope captures for PWM outputs?

How to fix signal jitter issues in Rigol Oscilloscope captures for PWM outputs?

October 14, 2024

Solve PWM signal jitter on Rigol Oscilloscopes with our step-by-step guide. Improve waveform captures and enhance your firmware development process efficiently.

How to fix signal jitter issues in Rigol Oscilloscope captures for PWM outputs?

 

Understanding Signal Jitter in PWM Outputs

 

Signal jitter refers to small timing variations in the expected waveform, which can be troublesome when capturing PWM outputs using a Rigol Oscilloscope. Firmware developers may face challenges in distinguishing actual signal anomalies from measurement noise caused by the oscilloscope itself.

 

Initial Hardware and Oscilloscope Check

 

    • Verify all hardware connections are secure to minimize external electrical noise. Ensure cables and connectors are clean and undamaged.
    • Isolate the power source. Use a dedicated power supply to reduce noise and fluctuations from other devices on the same circuit.
    • Check the oscilloscope's probe compensation. A mismatched probe can contribute to measurement inaccuracies. Follow the manufacturer's instructions for probe compensation.

 

Optimizing Oscilloscope Settings

 

    • Set the oscilloscope bandwidth limiting option to reduce high-frequency noise. You can typically find this setting in the bandwidth or input menu. Bandwidth limiting filters out unnecessary high-frequency noise while maintaining the signal's integrity.
    • Adjust trigger settings for a stable waveform. Use edge-trigger mode and set it to trigger on the rising or falling edge of your PWM signal. Fine-tune the trigger level just above the waveform's noise floor for consistent captures.
    • Enable noise rejection features such as digital filtering. Utilize Rigol's built-in features to filter out intermittent noise. This may vary by model, so consult your oscilloscope's user manual.

 

Software Solutions and Code Optimizations

 

    • If noise persists, implement averaging in firmware. Capture multiple samples and compute the average to smooth out erratic values. Integrate this within your firmware to improve stability:
    #define NUM_SAMPLES 10
    uint16_t samples[NUM_SAMPLES];
    uint16_t average_pwm_output() {
        uint32_t sum = 0;
        for (int i = 0; i < NUM_SAMPLES; i++) {
            sum += samples[i];
        }
        return sum / NUM_SAMPLES;
    }
    
    • Optimize PWM frequency and duty cycle settings to minimize jitter. Carefully choose PWM parameters based on the application requirements and the PWM module resolution.

 

Protocol-Specific Considerations

 

    • Assess the system's clock configuration for consistency. Ensure that the MCU clock speed is stable and not subject to irregularities that might affect PWM output.
    • Consider using a phase-locked loop (PLL) in your clock setup to reduce irregularities in the system clock, which indirectly affects PWM stability. Firmware developers should review the MCU documentation to implement and configure PLL correctly.

 

Advanced Oscilloscope Measurements

 

    • Use persistence mode to visualize jitter over a period. Persistence mode allows you to see how often and where the signal varies, giving you insights into how jitter behaves.
    • Capture and analyze data using deep memory. Access features to correlate irregular behavior over long durations and examine more subtle instances of jitter.
    • Utilize external synchronization if available. Employ a synchronized clock source if your oscilloscope model supports it, aligning the test equipment with your device under test.

By addressing the above factors systematically, you can effectively pinpoint and mitigate jitter issues in your PWM signals when using a Rigol Oscilloscope.

Pre-order Friend AI Necklace

Pre-Order Friend Dev Kit

Open-source AI wearable
Build using the power of recall

Order Now

OMI AI PLATFORM
Remember Every Moment,
Talk to AI and Get Feedback

Omi Necklace

The #1 Open Source AI necklace: Experiment with how you capture and manage conversations.

Build and test with your own Omi Dev Kit 2.

Omi App

Fully Open-Source AI wearable app: build and use reminders, meeting summaries, task suggestions and more. All in one simple app.

Github →

Join the #1 open-source AI wearable community

Build faster and better with 3900+ community members on Omi Discord

Participate in hackathons to expand the Omi platform and win prizes

Participate in hackathons to expand the Omi platform and win prizes

Get cash bounties, free Omi devices and priority access by taking part in community activities

Join our Discord → 

OMI NECKLACE + OMI APP
First & only open-source AI wearable platform

a person looks into the phone with an app for AI Necklace, looking at notes Friend AI Wearable recorded a person looks into the phone with an app for AI Necklace, looking at notes Friend AI Wearable recorded
a person looks into the phone with an app for AI Necklace, looking at notes Friend AI Wearable recorded a person looks into the phone with an app for AI Necklace, looking at notes Friend AI Wearable recorded
online meeting with AI Wearable, showcasing how it works and helps online meeting with AI Wearable, showcasing how it works and helps
online meeting with AI Wearable, showcasing how it works and helps online meeting with AI Wearable, showcasing how it works and helps
App for Friend AI Necklace, showing notes and topics AI Necklace recorded App for Friend AI Necklace, showing notes and topics AI Necklace recorded
App for Friend AI Necklace, showing notes and topics AI Necklace recorded App for Friend AI Necklace, showing notes and topics AI Necklace recorded

OMI NECKLACE: DEV KIT
Order your Omi Dev Kit 2 now and create your use cases

Omi Dev Kit 2

Endless customization

OMI Necklace

$69.99

Make your life more fun with your AI wearable clone. It gives you thoughts, personalized feedback and becomes your second brain to discuss your thoughts and feelings. Available on iOS and Android.

Your Omi will seamlessly sync with your existing omi persona, giving you a full clone of yourself – with limitless potential for use cases:

  • Real-time conversation transcription and processing;
  • Develop your own use cases for fun and productivity;
  • Hundreds of community apps to make use of your Omi Persona and conversations.

Learn more

Omi Dev Kit 2: build at a new level

Key Specs

OMI DEV KIT

OMI DEV KIT 2

Microphone

Yes

Yes

Battery

4 days (250mAH)

2 days (250mAH)

On-board memory (works without phone)

No

Yes

Speaker

No

Yes

Programmable button

No

Yes

Estimated Delivery 

-

1 week

What people say

“Helping with MEMORY,

COMMUNICATION

with business/life partner,

capturing IDEAS, and solving for

a hearing CHALLENGE."

Nathan Sudds

“I wish I had this device

last summer

to RECORD

A CONVERSATION."

Chris Y.

“Fixed my ADHD and

helped me stay

organized."

David Nigh

OMI NECKLACE: DEV KIT
Take your brain to the next level

LATEST NEWS
Follow and be first in the know

Latest news
FOLLOW AND BE FIRST IN THE KNOW

team@basedhardware.com

omi

about

careers

invest

privacy

products

omi dev kit

personas

other

apps

affiliate

docs

help