decrease the freqeuncy of PWM on Arduino Mega 2560

i need frequency of 10 Hz on arduino mega 2560 on PWM pins. i was able to lower the frequency down to 30 Hz, but not lower than that. any help? here is what i did for pin 6

TCCR4B = (TCCR4B & 0xF8) | 0x05;

i need frequency of 10 Hz

Why?

any help?

At that slow speed, bit-banging is probably your only choice.

Thanks Paul, i can not afford bit-banging in my program, it would cause a huge delay in my entire code.

it would cause a huge delay in my entire code.

Only if you fail to write it correctly.

Use a counter and a "if" command that resets the counter to zero, and triggers the ouput on then off. adjust the counter to get your freq. doesnt use delays. ( i hate using delays and always avoid them. They are only really good for small programs with a single purpose. On larger projects they have no place!) Or use a FOR command (you can do PWM using for) its in the learning section.