Home » Software » FAQ » Which function takes priority on digital lines: PWM, DO or DI?
 
Which function takes priority on digital lines: PWM, DO or DI?

Digital lines can perform PWM output, digital output or digital input.  However, each line can only do one of those actions.  LArVa uses the following priority:

  • If Digital Out is enabled, then the digital line is a digital output, even if digital in and PWM output are enabled.
  • If Digital In is enabled, then the digital line is a digital input, even if PWM output is enabled.

Said another way, Digital Output has highest priority, Digital input has 2nd highest priority and PWM output has lowest priority.

 

Of course, a simple way to avoid this confusion is to only enable one line for one enable at a time.