<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.ocrobot.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.ocrobot.com/feed.php">
        <title> ocrobot:alpha:d21g18a</title>
        <description></description>
        <link>https://wiki.ocrobot.com/</link>
        <image rdf:resource="https://wiki.ocrobot.com/lib/tpl/20cones/images/favicon.ico" />
       <dc:date>2026-07-19T02:52:48+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:main&amp;rev=1760151335&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:mian&amp;rev=1760151335&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:serial02&amp;rev=1760151335&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:tutorial01&amp;rev=1760151335&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:tutorial02&amp;rev=1760151335&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:tutorial03&amp;rev=1760151335&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:tutorial04&amp;rev=1760151335&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.ocrobot.com/lib/tpl/20cones/images/favicon.ico">
        <title></title>
        <link>https://wiki.ocrobot.com/</link>
        <url>https://wiki.ocrobot.com/lib/tpl/20cones/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:main&amp;rev=1760151335&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-10-11T02:55:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ocrobot:alpha:d21g18a:main</title>
        <link>https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:main&amp;rev=1760151335&amp;do=diff</link>
        <description>ALPHA D21G18A

ALPHA D21G18A是简单和强大的32位主控平台，拥有更高的性能，并且作为学习32位应用程序开发的一个伟大的教育工具。 
ALPHA D21G18A应用范围从智能物联网设备，可穿戴技术，高科技自动化，到机器人。 使用Atmel SAMD21微控制器，使用32位的ARMCortex®M0内核</description>
    </item>
    <item rdf:about="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:mian&amp;rev=1760151335&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-10-11T02:55:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ocrobot:alpha:d21g18a:mian</title>
        <link>https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:mian&amp;rev=1760151335&amp;do=diff</link>
        <description>ALPHA D21G18A

ALPHA D21G18A是由UNO建立的平台的简单和强大的32位扩展。 ALPHA D21G18A板通过提供更高的性能，为设备提供各种项目机会来扩展系列，并且作为学习32位应用程序开发的一个伟大的教育工具。 
ALPHA D21G18A应用范围从智能物联网设备，可穿戴技术，高科技自动化，到疯狂的机器人。 该板由Atmel的SAMD21 MCU供电，该MCU配有32位ARMCortex®M0 +内核。 其最重要的特性之一是Atmel的嵌入式调试器（EDBG），它提供了一个完整的调试接口，无需额外的硬件，显着增加了软件调试的易用性。 EDBG还支持可用于器件和引导加载程序编程的虚拟COM端口。…</description>
    </item>
    <item rdf:about="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:serial02&amp;rev=1760151335&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-10-11T02:55:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ocrobot:alpha:d21g18a:serial02</title>
        <link>https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:serial02&amp;rev=1760151335&amp;do=diff</link>
        <description>如何调用更多的串口

一般来说，我们手中的d21g18a拥有两个串口， SerialUSB，与Serial1（0,1）

当然我们可能会需要Serial2什么的时候，可以参考下面的范例


#include &lt;Arduino.h&gt;   // required before wiring_private.h
#include &quot;wiring_private.h&quot; // pinPeripheral() function

Uart Serial2 (&amp;sercom1, 11, 10, SERCOM_RX_PAD_0, UART_TX_PAD_2);
void SERCOM1_Handler()
{
  Serial2.IrqHandler();
}

void setup() {

  Serial2.begin(115200);
  
  // Assign pins 10 &amp; 11 SERCOM functionality
  pinPeripheral(10, PIO_SERCOM);
  pinPeripheral(11, PIO_SERCOM);
}
void loop() {
…</description>
    </item>
    <item rdf:about="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:tutorial01&amp;rev=1760151335&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-10-11T02:55:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ocrobot:alpha:d21g18a:tutorial01</title>
        <link>https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:tutorial01&amp;rev=1760151335&amp;do=diff</link>
        <description>安装编译环境

首先下载 OCROBOT 0006版IDE 点击前往下载

下载解压缩后点击OCROBOT.exe启动IDE，如图



点击工具，选择主板，进入开发板管理器，如图



点击进入开发板管理器，选择OCROBOT D21G18A，如图





点击安装，如图</description>
    </item>
    <item rdf:about="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:tutorial02&amp;rev=1760151335&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-10-11T02:55:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ocrobot:alpha:d21g18a:tutorial02</title>
        <link>https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:tutorial02&amp;rev=1760151335&amp;do=diff</link>
        <description>如何调用更多的串口

一般来说，我们手中的d21g18a拥有两个串口， SerialUSB，与Serial1（0,1）

当然我们可能会需要Serial2什么的时候，可以参考下面的范例


#include &lt;Arduino.h&gt;   // required before wiring_private.h
#include &quot;wiring_private.h&quot; // pinPeripheral() function

Uart Serial2 (&amp;sercom1, 11, 10, SERCOM_RX_PAD_0, UART_TX_PAD_2);
void SERCOM1_Handler()
{
  Serial2.IrqHandler();
}

void setup() {

  Serial2.begin(115200);
  
  // Assign pins 10 &amp; 11 SERCOM functionality
  pinPeripheral(10, PIO_SERCOM);
  pinPeripheral(11, PIO_SERCOM);
}
void loop() {
…</description>
    </item>
    <item rdf:about="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:tutorial03&amp;rev=1760151335&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-10-11T02:55:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ocrobot:alpha:d21g18a:tutorial03</title>
        <link>https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:tutorial03&amp;rev=1760151335&amp;do=diff</link>
        <description>DAC使用

测试波形如下：



#include &lt;Arduino.h&gt;   // required before wiring_private.h
#include &quot;wiring_private.h&quot; // pinPeripheral() function
 int sinv[200]; 
const float pi=3.14;
//Serial2用于打印调试信息 11-RX 10-TX
Uart Serial2 (&amp;sercom1, 11, 10, SERCOM_RX_PAD_0, UART_TX_PAD_2);
void SERCOM1_Handler()
{
  Serial2.IrqHandler();
}
  
void setup() {
 
//  pinMode(A0, OUTPUT);        //DAC输出时不需要设置此项
  analogWriteResolution(10);  //10位分辨率
  analogWrite(A0, 0);         
    

  Serial2.begin(115200);
  pinPeriphera…</description>
    </item>
    <item rdf:about="https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:tutorial04&amp;rev=1760151335&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-10-11T02:55:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ocrobot:alpha:d21g18a:tutorial04</title>
        <link>https://wiki.ocrobot.com/doku.php?id=ocrobot:alpha:d21g18a:tutorial04&amp;rev=1760151335&amp;do=diff</link>
        <description>看门狗、休眠模式的使用

库文件下载：[adafruit_sleepydog.zip]</description>
    </item>
</rdf:RDF>
