This is a follow up post to [Arduino Due Direct Port Manipulations]
I failed to test the previous post carefully, something I hate is down loading junk, so my apologies to those
who have downloaded the previous version.
While no coding is ever 100% this code works. There are a few places where clarification could be added.
Also included is code to start a clock for the fpga.
I include the code and, a pdf of the fpga logic associated.
Please reply if you find it useful or if you have other comments.