Probleme with PWM | Cypress Semiconductor
Probleme with PWM
i made my first experiment with pwm on PSOC4 S Series Pioneer Kit and i want to create a breathing led.
It works, but sometimes there is a flashing on the red led. Can somebody give me a hint, why the flashing occurs?
I use a pwm with a period of 1000 and a clock frequency of 100kHz. The result is a pwm of 100Hz - this is ok!
The red led is connected on port 3.
This is my code:
CyGlobalIntEnable; /* Enable global interrupts. */
for(i=0; i<999; i++)
for(i=999; i>1; i--)