How to do Pwm off and on in flowcode??
How to do Pwm off and on in flowcode??
This is c code
// Send 9ms burst
pwm_on();
delay_ms(9);
// Send 4.5ms space
pwm_off();
delay_us(4500);
How can i do this in flowcode?. Desiable pwm component madule for 9ms and enable it again or there is another way??
// Send 9ms burst
pwm_on();
delay_ms(9);
// Send 4.5ms space
pwm_off();
delay_us(4500);
How can i do this in flowcode?. Desiable pwm component madule for 9ms and enable it again or there is another way??
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: How to do Pwm off and on in flowcode??
You can set the duty to 0 for PWM off.
No need to disable then:
No need to disable then:
Martin
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: How to do Pwm off and on in flowcode??
You're welcome.
It has been found that with some devices that PWM duty does not completely go to 0.
If that is the same as your target device, then Disable and Enable will be required.
Hopefully, that is not the case, but I thought I would make you aware of a possibility.
It has been found that with some devices that PWM duty does not completely go to 0.
If that is the same as your target device, then Disable and Enable will be required.
Hopefully, that is not the case, but I thought I would make you aware of a possibility.
Martin
-
- Posts: 323
- Joined: Sat Jan 12, 2008 2:08 am
- Has thanked: 106 times
- Been thanked: 48 times
Re: How to do Pwm off and on in flowcode??
Hello, Martin
I know it has nothing with the question; I have been in the Matrix forum (Flowcode 3) since 2008, I was taking a look at the topics, I see that Martin (Medelec) is now part of the Matrix Staff, I CONGRATULATE You !!!
You are one of the people who is contributing with your knowledge to many of us in the forum, EXCELLENT
I'm glad to see that you belong to the staff de Matrix
That we all have a good year 2022 ( My English is good
)
Enrique
I know it has nothing with the question; I have been in the Matrix forum (Flowcode 3) since 2008, I was taking a look at the topics, I see that Martin (Medelec) is now part of the Matrix Staff, I CONGRATULATE You !!!
You are one of the people who is contributing with your knowledge to many of us in the forum, EXCELLENT

I'm glad to see that you belong to the staff de Matrix

That we all have a good year 2022 ( My English is good

Enrique
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: How to do Pwm off and on in flowcode??
Hi Enrique.
Happy new year & thank you.
It's really nice what you said, I appreciate it.

Happy new year & thank you.
It's really nice what you said, I appreciate it.

Very good, well done.

Martin
-
- Posts: 392
- Joined: Wed Jan 05, 2011 11:24 am
- Has thanked: 101 times
- Been thanked: 25 times
Re: How to do Pwm off and on in flowcode??
hi
i would also like to mention i too noticed martin (medelec)is matrix staff and over the years martin has helped and guided me as i tried and still do get to grips with flowcode programming and microcontrollers, matrix should be immensely proud of your contributions and about time your officially part of their team im sure you will be a great asset thank you martin (medelec)
bob
i would also like to mention i too noticed martin (medelec)is matrix staff and over the years martin has helped and guided me as i tried and still do get to grips with flowcode programming and microcontrollers, matrix should be immensely proud of your contributions and about time your officially part of their team im sure you will be a great asset thank you martin (medelec)
bob
- Steve
- Matrix Staff
- Posts: 3431
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: How to do Pwm off and on in flowcode??
Some great comments in this thread about @medelec35! We're very happy and feel fortunate to have Martin as part of our team here at Matrix.
But thanks and recognition also to our VCs and wider community of users who continue to provide help and support on our forums.
But thanks and recognition also to our VCs and wider community of users who continue to provide help and support on our forums.
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: How to do Pwm off and on in flowcode??
Thank you, Bob for the lovely comments.
I really appreciate them.
I do try and help as much as I can
Thank you, Steve, that means a lot to me as well do all the lovely comments been made.
You are right, of course, but also a must to be included are the rest of matrix staff.
Without them, Flowcode would not be a wonderful product as it is.
I really appreciate them.
I do try and help as much as I can
Thank you, Steve, that means a lot to me as well do all the lovely comments been made.
You are right, of course, but also a must to be included are the rest of matrix staff.
Without them, Flowcode would not be a wonderful product as it is.
Martin
-
- Posts: 392
- Joined: Wed Jan 05, 2011 11:24 am
- Has thanked: 101 times
- Been thanked: 25 times
Re: How to do Pwm off and on in flowcode??
Hi
Couldnt agree more thanks everyone at matrix for a brilliant product and thanks to other users who help people like myself when we are banging our heads on a brick wall apologies for not adding this in my previous comments
Bob
Couldnt agree more thanks everyone at matrix for a brilliant product and thanks to other users who help people like myself when we are banging our heads on a brick wall apologies for not adding this in my previous comments
Bob