⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
timactive
Offline
Last seen:3 years 6 months ago
Joined:2017-09-25 20:54
Need more pwm signal

Hi,
For the project i need 8 PWM signal, 2 * RGBW.
I actually use the timer2,i use the example demo_timer2, it is working fine for RGB. I have also implement this with homekit.
But after my analyse i no see how i can generate other PWM signal, just for your information i use addon homekit, it is possible?

Thank you in advance!

Keywords:
PWM
Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Hi timactive,

Hi timactive,

I will assume that the device that you are using is a 68x (you mention that you are using the 6.0.2 SDK which corresponds to the 585 SoC). Regarding the PWM, in total you can generate:

  • Using timer 0: two PWM signals of the same frequency but inverted (PWM0 and PWM1).
  • Using timer 1: one PWM signal with configurable frequency and duty cycle and automatically connected to the P0_6 pin when the device is in sleep mode (PWM5 - the only timer that keeps on running while in sleep mode).
  • Using timer 2: three PWM signals with programmable duty cycle from 0% to 100%. (PWM2, PWM3, PWM4).
  • Using breath timer: one PWM signal which you can configure to generate a constant PWM signal.

Please check the datasheet for more informations regarding the timer block.

Thanks MT_dialog

timactive
Offline
Last seen:3 years 6 months ago
Joined:2017-09-25 20:54
Thank you very well for your

Thank you very well for your quickless response.
I'm really happy that DA14681 can already generate so much signal.
I will try to implement depending your answer.

Just for my curiosity if I need to generate other signal on other output, what would be the most interesting timer timer0, timer1, ... to use for make soft PWM?

Sorry if I have newbie questions, but I'm learning(hard working) while waiting for a more experienced person who should come into my company.
.

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Hi timeactive,

Hi timeactive,

I am not able to understand the question, can you please re-phrase, what do you mean "other signal on other output" and "soft PWM" ? Since the timers are capable in generating PWM i dont see a reason for using timer interrupts in order to generate a PWM.

Thanks MT_dialog