به نام خدا |
||||
|
||||
|
<h2>آردوینو Due</h2> <p class="vspace"></p> <table border="0" align="center">
<tr> <td colspan="2" valign="top"> <a class="urllink" href="nofollow"> <img width="450px" src="
" title /></a> </td> <td colspan="2" valign="top"> <a class="urllink" href="
nofollow"> <img width="450px" src="
" title /></a> </td> </tr> <tr> <td colspan="2" valign="top"><em>آردوینو Due نمای مقابل</em> </td> <td colspan="2" valign="top"><em>آردوینو Due نمای پشت</em> <p class="vspace"></p> </td> </tr>
</table> <p class="vspace"></p> <table border="0">
<tr> <td valign="top"> <a class="urllink" href="http://store.arduino.cc/it/index.php?main_page=product_info&cPath=11_12&products_id=243" rel="nofollow"> <img src="" title /></a> </td> <td valign="top"> <a class="urllink" href="http://arduino.cc/en/Main/Buy" rel="nofollow"> <img src="
" title /></a> </td> </tr>
</table> <p class="vspace"></p> <h3>معرفی</h3> <p>برد آردوینو Due یک میکروکنترلر بر پایه <span class="wikiword">SAM3X8E</span> ARM Cortex-M3 CPU از شرکت Atmel می باشد.(<a class="urllink" href="http://www.atmel.com/Images/doc11057.pdf" rel="nofollow">datasheet</a>). این برد، اولین برد آردوینویی است که بر اساس میکروکنترلر با هسته ARM 32 بیتی پایه ریزی شده است. دارای 54 پین دیجیتال ورودی/خروجی (که 12 تای آن می تواند به عنوان خروجی PWM استفاده شود)، 12 ورودی آنالوگ، 4 پورت <span class="wikiword">UARTs</span> (پورت های سریال سخت افزاری)، و یک ساعت 84 مگاهرتزی، an USB OTG capable connection ، یک DAC (دیجیتال به آنالوگ)، 2 عدد TWI، یک پاور جک، یک SPI header، یک JTACG header، یک دکمه ریست و یک دکمه پاک کردن می باشد. </p> <p class="vspace"></p> <p><strong><span style="font-size:144%">هشدار</span>: بر خلاف دیگر بردهای آردوینو، برد آردوینو Due با ولتاژ 3.3 ولت کار می کند. حداکثر ولتاژی که پین های ورودی/خروجی می توانند تحمل کنند همین 3.3 ولت است. اعمال ولتاژ های بالاتر همچون 5ولت به یک پین ورودی/خروجی، می تواند به برد آسیب بزند. </strong></p> <p class="vspace"></p> <p>این برد، هرچیزی را که جهت پشتیبانی از میکروکنترلر مورد نیاز است، شامل می شود؛ برای آغاز کار، برد را با یک کابل micro-USB به سادگی به کامپیوتر متصل کنید و یا با یک آداپتور AC-to-DC یا باتری، به آن ولتاژ بدهید. برد Due با همه شیلدهای آردوینو که با 3.3ولت کار می کنند، و همچنین با 1.0 Arduino pinout سازگار است. </p> <p class="vspace"></p> <p>برد Due از 1.0 pinout پیروی می کند: </p> <ul>
<li>TWI: پین های SDA و SCL که در نزدیکی پین AREF قرار دارند. </li> <li>پین IOREF که اجازه می دهد یک شیلد را با پیکربندی مناسب جهت تطبیق با ولتاژی که توسط برد فراهم شده است، متصل کنید. این قابلیت، به شیلدها امکان می دهد تا با برد 3.3 ولتی همچون Due و بردهای AVR-based که با ولتاژ 5 ولت کار می کنند، خود را تطبیق دهند. </li> <li>یک پین که متصل نیست و جهت کاربردهای آتی در نظر گرفته شده است.</li>
</ul> <p class="vspace"></p> <p>برد Due یک <a class="urllink" href="http://forum.arduino.ir" rel="nofollow"> انجمن اختصاصی</a> جهت بحث پیرامون برد دارد. </p> <p class="vspace"></p> <h3>مزایای هسته ARM </h3> <p>برد Due یک هسته ARM 32 بیتی دارد که می تواند بر بردهای میکروکنترلر 8بیتی غالب شود. برجسته ترین تفاوتهای آنها عبارتند از: </p> <p class="vspace"></p> <ul>
<li>یک هسته 32 بیتی، که عملیات را روی داده های 4 بایتی درون یک کلاک PUی تکی فراهم می کند. (جهت کسب اطلاعات بیشتر، صفحه <a class="wikilink" href="http://arduino.ir/Reference/Int">نوع Int</a> را مطالعه کنید). </li> <li>کلاک CPU با فرکانس 84 مگاهرتز. </li> <li>96 کیلوبایت حافظه SRAM. </li> <li>512 کیلوبایت حافظه فلش برای کد. </li> <li>یک کنترلر DMA که می تواند جهت انجام وظایف فشرده، به CPU کمک کند. </li>
</ul> <p class="vspace"></p> <h3>شماتیک، طرح مرجع و نقشه پین</h3> <p align="left" dir="ltr">EAGLE files: <a class="urllink" href="http://arduino.cc/en/uploads/Main/arduino-Due-Reference-design.zip" rel="nofollow"> arduino-Due-reference-design.zip</a> </p> <p class="vspace"></p> <p dir="ltr" align="left">Schematic: <a class="urllink" href="http://arduino.cc/en/uploads/Main/arduino-Due-schematic.pdf" rel="nofollow"> arduino-Due-schematic.pdf</a> </p> <p class="vspace"></p> <p dir="ltr" align="left">Pin Mapping: <a class="wikilink" href="http://arduino.cc/en/Hacking/PinMappingSAM3X">SAM3X Pin Mapping page</a> </p> <p class="vspace"></p> <h3>خلاصه</h3> <table border="0">
<tr> <td align="right">میکروکنترلر</td> <td> </td> <td align="right"><span class="wikiword">AT91SAM3X8E</span></td> </tr> <tr> <td align="right">ولتاژ عملیاتی</td> <td> </td> <td align="right">3.3 ولت</td> </tr> <tr> <td align="right">ولتاژ ورودی (پیشنهادی)</td> <td> </td> <td align="right">7-12 ولت</td> </tr> <tr> <td align="right" height="20">ولتاژ ورودی (محدوده)</td> <td height="20"> </td> <td align="right" height="20">6-16 ولت</td> </tr> <tr> <td align="right">پین های دیجیتال ورودی/خروجی</td> <td> </td> <td align="right">54 (12 تای آن خروجی PWM تولید می کنند.)</td> </tr> <tr> <td align="right">پین های ورودی آنالوگ</td> <td> </td> <td align="right">12</td> </tr> <tr> <td align="right">پین های خروجی آنالوگ</td> <td> </td> <td align="right">2 (DAC)</td> </tr> <tr> <td align="right">کل جریان خروجی DC روی تمام خطوط ورودی/خروجی</td> <td> </td> <td align="right">130 میلی آمپر</td> </tr> <tr> <td align="right">جریان DC جهت پین 3.3 ولت</td> <td> </td> <td align="right">800 میلی آمپر</td> </tr> <tr> <td align="right">جریان DC جهت پین 5 ولت</td> <td> </td> <td align="right">800 میلی آمپر</td> </tr> <tr> <td align="right">حافظه فلش</td> <td> </td> <td align="right">512 کیلوبایت جهت برنامه های کاربر موجود است.</td> </tr> <tr> <td align="right">SRAM</td> <td> </td> <td align="right">96 کیلوبایت (دو عدد بانک : 64 کیلوبایت و 32 کیلوبایت)</td> </tr> <tr> <td align="right">سرعت ساعت</td> <td> </td> <td align="right">84 <span class="wikiword">مگاهرتز</span></td> </tr>
</table> <p class="vspace"></p> <h3>Power</h3> <p>The Arduino Due can be powered via the USB connector or with an external power supply. The power source is selected automatically. </p> <p class="vspace"></p> <p>External (non-USB) power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a 2.1mm center-positive plug into the board's power jack. Leads from a battery can be inserted in the Gnd and Vin pin headers of the POWER connector. </p> <p class="vspace"></p> <p>The board can operate on an external supply of 6 to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may be unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The recommended range is 7 to 12 volts. </p> <p class="vspace"></p> <p>The power pins are as follows: </p> <p class="vspace"></p> <ul>
<li><strong>VIN.</strong> 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). You can supply voltage through this pin, or if supplying voltage via the power jack, access it through this pin. <p class="vspace"></p> </li> <li><strong>5V.</strong> This pin outputs a regulated 5V from the regulator on the 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). Supplying voltage via the 5V or 3.3V pins bypasses the regulator, and can damage your board. We don't advise it. <p class="vspace"></p> </li> <li><strong>3.3V.</strong> A 3.3 volt supply generated by the on-board regulator. Maximum current draw is 800 mA. This regulator also provides the power supply to the <span class="wikiword">SAM3X</span> microcontroller. <p class="vspace"></p> </li> <li><strong>GND.</strong> Ground pins. <p class="vspace"></p> </li> <li><strong>IOREF.</strong> This pin on the Arduino board provides the voltage reference with which the microcontroller operates. A properly configured shield can read the IOREF pin voltage and select the appropriate power source or enable voltage translators on the outputs for working with the 5V or 3.3V. </li>
</ul> <p class="vspace"></p> <h3>Memory</h3> <p>The <span class="wikiword">SAM3X</span> has 512 KB (2 blocks of 256 KB) of flash memory for storing code. The bootloader is preburned in factory from Atmel and is stored in a dedicated ROM memory. The available SRAM is 96 KB in two contiguous bank of 64 KB and 32 KB. All the available memory (Flash, RAM and ROM) can be accessed directly as a flat addressing space. </p> <p class="vspace"></p> <p>It is possible to erase the Flash memory of the <span class="wikiword">SAM3X</span> with the onboard erase button. This will remove the currently loaded sketch from the MCU. To erase, press and hold the Erase button for a few seconds while the board is powered. </p> <p class="vspace"></p> <h3>Input and Output</h3> <ul>
<li><strong>Digital I/O: pins from 0 to 53</strong> <br /> Each of the 54 digital pins on the Due can be used as an input or output, using <a class="wikilink" href="http://arduino.cc/en/Reference/PinMode">pinMode()</a>, <a class="wikilink" href="http://arduino.cc/en/Reference/DigitalWrite">digitalWrite()</a>, and <a class="wikilink" href="http://arduino.cc/en/Reference/DigitalRead">digitalRead()</a> functions. They operate at 3.3 volts. Each pin can provide (source) a current of 3 mA or 15 mA, depending on the pin, or receive (sink) a current of 6 mA or 9 mA, depending on the pin. They also have an internal pull-up resistor (disconnected by default) of 100 <span class="wikiword">KOhm</span>. In addition, some pins have specialized functions: <p class="vspace"></p> </li> <li><strong>Serial: 0 (RX) and 1 (TX)</strong> </li> <li><strong>Serial 1: 19 (RX) and 18 (TX)</strong> </li> <li><strong>Serial 2: 17 (RX) and 16 (TX)</strong> </li> <li><strong>Serial 3: 15 (RX) and 14 (TX)</strong> <br /> Used to receive (RX) and transmit (TX) TTL serial data (with 3.3 V level). Pins 0 and 1 are connected to the corresponding pins of the <span class="wikiword">ATmega16U2</span> USB-to-TTL Serial chip. <p class="vspace"></p> </li> <li><strong>PWM: Pins 2 to 13</strong> <br /> Provide 8-bit PWM output with the <a class="wikilink" href="http://arduino.cc/en/Reference/AnalogWrite">analogWrite()</a> function. the resolution of the PWM can be changed with the <a class="wikilink" href="http://arduino.cc/en/Reference/AnalogWriteResolution"> analogWriteResolution()</a> function. <p class="vspace"></p> </li> <li><strong>SPI: SPI header</strong> (ICSP header on other Arduino boards) <br /> These pins support SPI communication using the <a class="wikilink" href="http://arduino.cc/en/Reference/SPI">SPI library</a>. The SPI pins are broken out on the central 6-pin header, which is physically compatible with the Uno, Leonardo and Mega2560. The SPI header can be used only to communicate with other SPI devices, not for programming the <span class="wikiword">SAM3X</span> with the In-Circuit-Serial-Programming technique. The SPI of the Due has also advanced features that can be used with the <a class="wikilink" href="http://arduino.cc/en/Reference/DueExtendedSPI">Extended SPI methods for Due</a>. <p class="vspace"></p> </li> <li><strong>CAN: CANRX and CANTX</strong> <br /> These pins support the CAN communication protocol but are not not yet supported by Arduino <span class="wikiword">APIs</span>. <p class="vspace"></p> </li> <li><strong>"L" LED: 13</strong> <br /> There is a built-in LED connected to digital pin 13. When the pin is HIGH, the LED is on, when the pin is LOW, it's off. It is also possible to dim the LED because the digital pin 13 is also a PWM outuput. <p class="vspace"></p> </li> <li><strong>TWI 1: 20 (SDA) and 21 (SCL)</strong> </li> <li><strong>TWI 2: <span class="wikiword">SDA1</span> and <span class="wikiword">SCL1</span>.</strong> <br /> Support TWI communication using the <a class="wikilink" href="http://arduino.cc/en/Reference/Wire">Wire library</a>. <p class="vspace"></p> </li> <li><strong>Analog Inputs: pins from A0 to A11</strong> <br /> The Due has 12 analog inputs, each of which can provide 12 bits of resolution (i.e. 4096 different values). By default, the resolution of the readings is set at 10 bits, for compatibility with other Arduino boards. It is possible to change the resolution of the ADC with <a class="wikilink" href="http://arduino.cc/en/Reference/AnalogReadResolution"> analogReadResolution()</a>. The Due’s analog inputs pins measure from ground to a maximum value of 3.3V. Applying more then 3.3V on the Due’s pins will damage the <span class="wikiword">SAM3X</span> chip. The analogReference() function is ignored on the Due. </li>
</ul> <p class="vspace"></p> <p>The AREF pin is connected to the <span class="wikiword">SAM3X</span> analog reference pin through a resistor bridge. To use the AREF pin, resistor <span class="wikiword">BR1</span> must be desoldered from the PCB. </p> <p class="vspace"></p> <ul>
<li><strong><span class="wikiword">DAC1</span> and <span class="wikiword">DAC2</span></strong> <br /> These pins provides true analog outputs with 12-bits resolution (4096 levels) with the <a class="wikilink" href="http://arduino.cc/en/Reference/AnalogWrite">analogWrite()</a> function. These pins can be used to create an audio output using the <a class="wikilink" href="http://arduino.cc/en/Reference/Audio">Audio library</a>. </li>
</ul> <p class="vspace"></p> <p>Other pins on the board: </p> <p class="vspace"></p> <ul>
<li><strong>AREF</strong> <br /> Reference voltage for the analog inputs. Used with <a class="wikilink" href="http://arduino.cc/en/Reference/AnalogReference">analogReference</a>(). <p class="vspace"></p> </li> <li><strong>Reset</strong> <br /> Bring this line LOW to reset the microcontroller. Typically used to add a reset button to shields which block the one on the board. </li>
</ul> <p class="vspace"></p> <h3>Communication</h3> <p>The Arduino Due has a number of facilities for communicating with a computer, another Arduino or other microcontrollers, and different devices like phones, tablets, cameras and so on. The <span class="wikiword">SAM3X</span> provides one hardware UART and three hardware <span class="wikiword">USARTs</span> for TTL (3.3V) serial communication. </p> <p class="vspace"></p> <p>The Programming port is connected to an <span class="wikiword">ATmega16U2</span>, which provides a virtual COM port to software on a connected computer (To recognize the device, Windows machines will need a .inf file, but OSX and Linux machines will recognize the board as a COM port automatically.). The 16U2 is also connected to the <span class="wikiword">SAM3X</span> hardware UART. Serial on pins <span class="wikiword">RX0</span> and <span class="wikiword">TX0</span> provides Serial-to-USB communication for programming the board through the <span class="wikiword">ATmega16U2</span> microcontroller. The Arduino software includes a serial monitor which allows simple textual data to be sent to and from the board. The RX and TX <span class="wikiword">LEDs</span> on the board will flash when data is being transmitted via the <span class="wikiword">ATmega16U2</span> chip and USB connection to the computer (but not for serial communication on pins 0 and 1). </p> <p class="vspace"></p> <p>The Native USB port is connected to the <span class="wikiword">SAM3X</span>. It allows for serial (CDC) communication over USB. This provides a serial connection to the Serial Monitor or other applications on your computer. It also enables the Due to emulate a USB mouse or keyboard to an attached computer. To use these features, see the <a class="wikilink" href="http://arduino.cc/en/Reference/MouseKeyboard"> Mouse and Keyboard library reference pages</a>. </p> <p class="vspace"></p> <p>The Native USB port can also act as a USB host for connected peripherals such as mice, keyboards, and smartphones. To use these features, see the <a class="wikilink" href="http://arduino.cc/en/Reference/USBHost">USBHost reference pages</a>. </p> <p class="vspace"></p> <p>The <span class="wikiword">SAM3X</span> also supports TWI and SPI communication. The Arduino software includes a Wire library to simplify use of the TWI bus; see the <a class="wikilink" href="http://arduino.cc/en/Reference/Wire">documentation</a> for details. For SPI communication, use the <a class="wikilink" href="http://arduino.cc/en/Reference/SPI">SPI library</a>. </p> <p class="vspace"></p> <h3>Programming</h3> <p>The Arduino Due can be programmed with the Arduino software (<a class="wikilink" href="http://arduino.cc/en/Main/SoftwareDue">download</a>). For details, see the <a class="wikilink" href="http://arduino.cc/en/Reference/HomePage">reference</a> and <a class="wikilink" href="http://arduino.cc/en/Tutorial/HomePage">tutorials</a>. </p> <p class="vspace"></p> <p>Uploading sketches to the <span class="wikiword">SAM3X</span> is different than the AVR microcontrollers found in other Arduino boards because the flash memory needs to be erased before being re-programmed. Upload to the chip is managed by ROM on the <span class="wikiword">SAM3X</span>, which is run only when the chip's flash memory is empty. </p> <p class="vspace"></p> <div>
<img src="" title /></div>
<p class="vspace"></p> <p>Either 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 : </p> <p class="vspace"></p> <ul>
<li>Programming port: To use this port, select "Arduino Due (Programming Port)" as your board in the Arduino IDE. Connect the Due's programming port (the one closest to the DC power jack) to your computer. The programming port uses the 16U2 as a USB-to-serial chip connected to the first UART of the <span class="wikiword">SAM3X</span> (<span class="wikiword">RX0</span> and <span class="wikiword">TX0</span>). The 16U2 has two pins connected to the Reset and Erase pins of the <span class="wikiword">SAM3X</span>. Opening and closing the Programming port connected at 1200bps triggers a “hard erase” procedure of the <span class="wikiword">SAM3X</span> chip, activating the Erase and Reset pins on the <span class="wikiword">SAM3X</span> before communicating with the UART. This is the recommended port for programming the Due. 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. <p class="vspace"></p> </li> <li>Native port: To use this port, select "Arduino Due (Native USB Port)" as your board in the Arduino IDE. The Native USB port is connected directly to the <span class="wikiword">SAM3X</span>. Connect the Due's Native USB port (the one closest to the reset button) to your computer. Opening and closing the Native port at 1200bps triggers a 'soft erase' procedure: the flash memory is erased and the board is restarted with the bootloader. If the MCU crashed for some reason it is likely that the soft erase procedure won't work as this procedure happens entirely in software on the <span class="wikiword">SAM3X</span>. Opening and closing the native port at a different baudrate will not reset the <span class="wikiword">SAM3X</span>. </li>
</ul> <p class="vspace"></p> <p>Unlike other Arduino boards which use avrdude for uploading, the Due relies on bossac. </p> <p class="vspace"></p> <p>The <span class="wikiword">ATmega16U2</span> firmware source code is available <a class="urllink" href="http://github.com/arduino/Arduino/tree/master/hardware/arduino/firmwares/" rel="nofollow"> in the Arduino repository</a>. You can use the ISP header with an external programmer (overwriting the DFU bootloader). See <a class="urllink" href="http://arduino.cc/forum/index.php/topic,111.0.html" rel="nofollow"> this user-contributed tutorial</a> for more information. </p> <p class="vspace"></p> <h3>USB Overcurrent Protection</h3> <p>The Arduino Due has a resettable polyfuse that protects your computer's USB ports from shorts and overcurrent. Although most computers provide their own internal protection, the fuse provides an extra layer of protection. If more than 500 mA is applied to the USB port, the fuse will automatically break the connection until the short or overload is removed. </p> <p class="vspace"></p> <h3>Physical Characteristics and Shield Compatibility</h3> <p>The maximum length and width of the Arduino Due PCB are 4 and 2.1 inches respectively, with the USB connectors and power jack extending beyond the former dimension. Three screw holes allow the board to be attached to a surface or case. Note that the distance between digital pins 7 and 8 is 160 mil (0.16"), not an even multiple of the 100 mil spacing of the other pins. </p> <p class="vspace"></p> <p>The Arduino Due is designed to be compatible with most shields designed for the Uno, Diecimila or Duemilanove. Digital pins 0 to 13 (and the adjacent AREF and GND pins), analog inputs 0 to 5, the power header, and "ICSP" (SPI) header are all in equivalent locations. Further the main UART (serial port) is located on the same pins (0 and 1). <em>Please note that I<sup>2</sup>C is not located on the same pins on the Due (20 and 21) as the Duemilanove / Diecimila (analog inputs 4 and 5).</em> </p> <p class="vspace"></p> <div id="commentsbox"> </div> </div>