I have to use TWI and PWM modules at the same time. When I use them in two separate projects thy worked well in their respective applications. But, when I combine them in to a single project, the pwm module is not working properly. they both have to be used in an infinite while loop. In this loop pwm module is working fine for one iteration and it is giving fatal error for next iteration. This loop is continuing with proper workin once and fatal error next. What is the reason for that fatal error coming alternatively in a while loop?
