It is more reliable than the "soft erase" that occurs on the Native port, and it should work even if the main MCU has crashed. This is the recommended port for programming the Due.
Opening and closing the Programming port connected at 1200bps triggers a “hard erase” procedure of the SAM3X chip, activating the Erase and Reset pins on the SAM3X before communicating with the UART. The 16U2 has two pins connected to the Reset and Erase pins of the SAM3X. The programming port uses the 16U2 as a USB-to-serial chip connected to the first UART of the SAM3X (RX0 and TX0). Connect the Due's programming port (the one closest to the DC power jack) to your computer. Programming port: To use this port, select "Arduino Due (Programming Port)" as your board in the Arduino IDE. Typically used to add a reset button to shields which block the one on the board.Įither of the USB ports can be used for programming the board, though it is recommended to use the Programming port due to the way the erasing of the chip is handled : Used with analogReference().īring this line LOW to reset the microcontroller. These pins can be used to create an audio output using the Audio library. These pins provides true analog outputs with 12-bits resolution (4096 levels) with the analogWrite() function. To use the AREF pin, resistor BR1 must be desoldered from the PCB. The AREF pin is connected to the SAM3X analog reference pin through a resistor bridge. The analogReference() function is ignored on the Due. Applying more than 3.3V on the Due’s pins will damage the SAM3X chip. The Due’s analog inputs pins measure from ground to a maximum value of 3.3V. It is possible to change the resolution of the ADC with analogReadResolution(). By default, the resolution of the readings is set at 10 bits, for compatibility with other Arduino boards. The Due has 12 analog inputs, each of which can provide 12 bits of resolution (i.e. Adding two pullup resistor on SDA1 and SCL1 lines is required for using Wire1.
While SDA and SCL have internal pullup resistors, SDA1 and SCL1 have not. SDA1 and SCL1 can be controlled using the Wire1 class provided by the Wire library. Support TWI communication using the Wire library. It is also possible to dim the LED because the digital pin 13 is also a PWM outuput. When the pin is HIGH, the LED is on, when the pin is LOW, it's off. There is a built-in LED connected to digital pin 13. These pins support the CAN communication protocol but are not not yet supported by Arduino APIs. The SPI of the Due has also advanced features that can be used with the Extended SPI methods for Due. The SPI header can be used only to communicate with other SPI devices, not for programming the SAM3X with the In-Circuit-Serial-Programming technique. The SPI pins are broken out on the central 6-pin header, which is physically compatible with the Uno, Leonardo and Mega2560. These pins support SPI communication using the SPI library.
A 3.3 volt supply generated by the on-board regulator. Supplying voltage via the 5V or 3.3V pins bypasses the regulator, and can damage your board. The board can be supplied with power either from the DC power jack (7 - 12V), the USB connector (5V), or the VIN pin of the board (7-12V). 5V.This pin outputs a regulated 5V from the regulator on the board.You can supply voltage through this pin, or if supplying voltage via the power jack, access it through this pin. Vin. The input voltage to the Arduino board when it's using an external power source (as opposed to 5 volts from the USB connection or other regulated power source).