OK, after some tweaking, and using ASM as TYPE (Don't know why yet), is getting correct results up to a reload value of around 180.
The changes to get close are:
By adding the value,we have more precise control of the reload value.Code:@ INT_DISABLE TMR0_INT TMR0=TMR0+180 toggle pwm1 @ INT_ENABLE TMR0_INT
But not close to my target of 25usec
Ioannis
Bookmarks