I've looked around and can't seem to find a good tutorial on how to change timers and such for the PWMs on an Arduino Mega. I've seen in places such as:
TCCR5A = B00101001; // Phase and frequency correct PWM change at OCRA
TCCR5B = B10001; // System clock
OCR5A = 10000; // 799,92Hz
OCR5B = 7500; // 75%
OCR5C = 100; // 1%
But don't really know how to determine which numbers to pick, which pins this works for, etc. Can someone help explain this to me?