Hello,
I beleive I have an example that will work for you. There are two possible solutions and this is just one of them.
This program uses one counter to count edges of the internal 20MHz timebase. When the counter reaches its terminal count it generates a pulse on the output. Using the TC pulses as a source for an other counter, you can create pulses longer than 160s.
The other method would be to generate a slow pulse train on one counter and then use the slow pulse train as a source to the other counter that will generate a pulse.