I'm using PSoC Creator 3.3. and Psoc4-042. Working on the BLE project with led blinking. I'm facing error from the clock and PWM at the 100Hz frequency. The error window is attached in the files. Please kindly look after.
This error is not only is this program, I'm facing this error in every program i was doing at 100Hz Hardware handling.
Br- Gaurav Badgujar
Solved! Go to Solution.
Welcome in the forum, Gaurav!
The cause of the error is listed in the first line of your compiler output. The clock divider is 16 bit wide. Hence the max divisor is 65536. From your HFCLK of 48MHz you would need a divider of 480,000.
Workaround: Change the PWM period and compare values to 10 times higher and use a 1kHz input clock.
Best would be to post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Furthermore a bit of explanation what you want to perform with your project (apart from blinking an LED at 1 Hz) could give you some more hints.