Bird
0
0

Why does Software PWM with RPi.GPIO have limitations compared to hardware PWM on Raspberry Pi?

hard📝 Conceptual Q10 of 15
Raspberry Pi - PWM Output
Why does Software PWM with RPi.GPIO have limitations compared to hardware PWM on Raspberry Pi?
ASoftware PWM can only run at frequencies below 10 Hz
BSoftware PWM depends on CPU timing and can be affected by system load, causing jitter
CSoftware PWM requires special hardware pins only
DSoftware PWM automatically disables other GPIO functions
Step-by-Step Solution
Solution:
  1. Step 1: Understand Software PWM nature

    Software PWM uses CPU to toggle pins, so timing depends on CPU availability and can vary.
  2. Step 2: Compare with hardware PWM

    Hardware PWM uses dedicated hardware timers, providing stable timing unaffected by CPU load.
  3. Final Answer:

    Software PWM depends on CPU timing and can be affected by system load, causing jitter -> Option B
  4. Quick Check:

    Software PWM timing affected by CPU load [OK]
Quick Trick: Software PWM timing varies with CPU load [OK]
Common Mistakes:
  • Thinking software PWM needs special pins
  • Believing software PWM frequency is very low
  • Assuming software PWM disables other GPIO

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes