5 MHz signal from Due

MartinL:
How about setting the clock and data as synchronous PWM channels and use the PDC (Peripheral DMA Controller) to transfer the 26 command bits from memory to the PWM Controller?

If say the clock is on channel 0 and the data on channel 1, the duty-cycle information for both channels can be interleaved in a single data array:

{ CLK, DATA, CLK, DATA, CLK, DATA ... }

This method would save having to call the interrupt service routine at 5MHz. (The ISR would only be called once the PDC reached the end of the array).

I dont quite follow. Could you give me an example or some more info?

At this point the signal need not be 5MHz. I just need two synchronized square waves that i could use for clock and data like i the "what i want" picture: What I want. I guess direct port manipulation would suffice.