How can I make 4ch PWM using CY8C24894-24LTXI | Cypress Semiconductor
How can I make 4ch PWM using CY8C24894-24LTXI
Hi, I want to make below PWM function.
PSoC1 : CY8C24894-24LTXI (DBB00,DBB01,DCB00,DCB01)
PWM : 4ch
PWM interval : 10ms
PWM resolution : 10us (Ideally 1us)
PWM width : 0 - 2ms (2000us)
Now I'm using Timer8 which interrupt interval is 10[us].
Timer8 Interrupt function is just increasing counter,
and comparing between PWM width and counter value and
switching GPIO control(high/low) are done in the main function.
Just so you know, comparing value and 4ch GPIO switching don't finish within 10[us],
so those code are in the main function.
But the problem is accuracy of PWM isn't that great.
So could you tell me how I do to solve this problem.
- It's impossible to place 4ch PWM16
- It's possible to place 4ch PWM8 but I'd like to set PWM resolution as 10us while PWM width is 10ms.