conradelektro:
Markus_L811:
May it helps take a look at Page 1108 from the full SAM3xa ManuelThank you Markus, this is exactly the right place to look.
My problem: I am such a beginner, that I can not write code to toggle UOTGVBOF. It dose not work with digitalWrite().
From page 1108 of the full SAM3xa user manual:
• VBUSPO: VBus Polarity Off
0: The UOTGVBOF output signal is in its default mode (active high).
1: The UOTGVBOF output signal is inverted (active low).Greetings, Conrad
I'm not sure but try this line in your viod Setup()
UOTGHS->UOTGHS_CTRL = UOTGHS_CTRL_VBUSPO;
Markus