How do I set timer TCCR1B on mega2560

We can't help with your syntax unless you show us your code - and please use code tags (explained in the How To ...).

Have you read the appropriate Atmel datasheet - it has all the details.

...R