This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Multiple outputs act in unison

Is there a way to have 6 different GPIOs act in unison off one event/action?  I need all 6 to go ON and OFF at EXACTLY the same time based of an event or action.

Parents Reply
  • Hi Brian

    You can't have a single PWM channel trigger 6 outputs, but it is pretty straight forward to set up 6 individual PWM channels to trigger at the same time. 

    You don't mention which nRF52 device you are interested in, but the nRF52832 has 12 PWM channels in total, while the nRF52840 has 16. 

    You could also use 6 of the 8 GPIOTE channels to trigger 6 pins in unison, but I think the PWM is a better choice since each PWM module can handle up to 4 channels easily (with the GPIOTE you would have to fire off 6 events at the same time, versus just 2 for the PWM solution). 

    Best regards
    Torbjørn

Children
Related