how to start using c166 to generating pwm?
try a search for "pwm" - here, the knowledgebase, the Infineon site, etc
Take a look in the Getting Started Manual. There is an example there for PWM. Jon
If you get a PHYTEC Rapid Development Kit, you get a CD with a lot ready compiled Demos for different boards like phyCORE-167 or MM-167 also a Demo for the PWM Unit Stefan