FardinB:
Thanks for the research.Is there a page that shows what timers are used for each PWM pin on the Arduino Mega 2560?
I am using timer 1 in my code as a software interrupt.
Thanks
Its all in the code - read the code rather than the documentation if you want to be sure what's happening(!)
The mappings for pins and ports is in pins_arduino.h for the specific variant (so in /hardware/arduino/variants/mega/pins_arduino.h
Timer mappings can also be worked out from a knowledge of which chip pins have which Arduino pin numbers and
then reading the datasheet, but frankly that's a lot more hassle!
for the mega, checkout the other subdirectories of variants for other chips)