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

How feasible is to use PWM for one minute interval for each high and low pulse?

Hello,

I am experimenting with PWM for time, I have a setup where I am using three sensor which gives analogue output. 

I am using a mux which has two control pins, so I am controlling control pins with PWM, now I am experimenting with time, how it is possible to make a PWM signal of 1 minute at high level and 1 minute at low level? how do I change prescaler in nRF52dk to create such a slow clock.

regards,

Jaydip

Parents Reply Children
  • Hello Jaydipsinh,

    Jaydipsinh440 said:
    I have used the example PWM drivers which shows the different demo, Now with respect to that demo how do I calculate top value and what is the maximum top value? Can you explain more?

    I think you might have an easier timer if you take a look at the PWM Library example instead, since the PWM library uses the PWM driver, to create another level of abstraction - that way you will have to do considerably less low-level work.
    The PWM Library for example lets you set the duty cycle with a number between 0 - 100 using the _duty_set function.

    Please let me know if you still would like to rather use the PWM Driver, then I can provide explanations for how you may use the driver directly.

    Best regards,
    Karl

  • Hello Karl,

    Thanks for your amazingly fast reply,

    I think PWM Library won't give the functionality I am looking from the PWM,

    As I am changing the duty cycle and also changing the level of pulse,

    so PWM driver will be suitable to use when I change the levels for pulse, Please provide explanations so that I can understand in depth.

    regards,

    Jaydip

Related