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

Control GPIO by PPI and timer1

I want to control GPIO toggle by PPI. Timer1 is in timer mode. CC[0] is 1000, and CC[1] is 8000. I use compare[0] to toggle gpio18 by PPI. I also want to use compare[1] to toggle gpio18 by PPI. The problem is: 1)If I just use compare0 or compare1, it's OK! 2)If I use compare0 and compare1 at the same time, GPIO18 toggle just one time per timer cycle. A GPIO can only be toggled by only one compare through PPI? In fact, I want to generate a PWM pulse from a GPIO. If PPI has the problem, is there any other method?

Related