Hello Wasim, You need to be more specific in what you mean by "speed" (do you want a higher frequency or shorter wait period between pulses). 90% of the functionality you require is implemented on the hardware level. You need to configure the timer to work in PWM mode. Then, you can use periodSet and dutyCycleSet to configure your frequency and ON-time at runtime. Also, you need to make sure that the timer channel you're using connects to the desired pin (I'm assuming you're using either P4_0 or P7_2 since these are the pin choices for GTIOC6A). Regards
↧