16-bit PWM on the Arduino side (M4 core)

Discussion in 'UDOO NEO' started by Bram, Dec 6, 2018 at 1:38 PM.

  1. Bram

    Bram New Member

    Joined:
    Thursday
    Messages:
    2
    Likes Received:
    0
    Hey,

    We are trying to get a higher resolution PWM from the Arduino side of the Udoo NEO FULL.
    On a normal Arduino it is possible to change two PWM's to 16-bit instead of 8-bit by changing the timers. Shown here: https://arduino.stackexchange.com/questions/12718/increase-pwm-bit-resolution

    Since the addresses of the M4 chip are different and we don't have a good understanding of embedded systems, does anybody have a solution for us? The frequency of the PWM does not matter for us, we just need a higher resolution then the default 0-255. Preferably the 0-65535.
     
  2. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    406
    Likes Received:
    116
    Have you tried setting:
    Code:
    analogWriteResolution(16)
     
  3. Bram

    Bram New Member

    Joined:
    Thursday
    Messages:
    2
    Likes Received:
    0
    Ohh.. haha great! Thanks! It works.
     

Share This Page