PS.
Random, I noticed in reading over the SAM3X datasheet that there are some functions in the PWM register that are designed to allow you to time A2D readings with your PWM wave form. Have you played with this feature at all? I'm gonna need it as my PWM is going to drive some Mosfets which are in turn driving a motor which will be broadcasting PWM noise straight into the ear of my sensor!