PIC24E PWM ISR hangs?
I have tried every other possibility. Looks like there is large overhead in ISR of PIC microcontroller. I can't generate signals any faster than 1 MHz with the controller I have. Only solution is to write in assembly (which is not an good idea) or to switch controller (for now, i have dropped the idea of generating pulses by this method).