Close
0%
0%

Sam DEV

Arduino Nano style board for Atmel's SAM D20 / D21 ARM microcontrollers

al1
Similar projects worth following
Simple to use and Breadboard friendly PCB for SAM21D / SAM20D ARM cortex M0+ microcotrollers. Inspirited by The Arduino nano and other boards from hackaday.io.

Inspirations/Credits

  • 1 × ATSAMD21G17-AU 32bit microcontroller TQFP48
  • 1 × LD117AS33TR LOW DROP FIXED POSITIVE VOLTAGE REGULATORS 1A
  • 1 × MINI-USB-SHIELD-UX60-MB-5ST MINI USB Connector
  • 1 × 12.000M HZ Crystal
  • 1 × USBLC6-2 Very low capacitance ESD protection

  • First tests

    Ethon11/16/2015 at 15:06 0 comments

    After an while we received most of the components and soldered them all together. Now we are testing some of the basic functions and die IO's of the board.

    At the picture you can see the first test, to toggle a LED with a button by using ASF.

    Code:

    #include <asf.h>
    #define LED PIN_PA08
    #define BUTTON PIN_PA09
    
    void stepup_pins(void)
    {
        struct port_config pin_conf; // create struct
        pin_conf.direction = PORT_PIN_DIR_INPUT; // set to input
        pin_conf.input_pull = PORT_PIN_PULL_UP; // set to pullup
        pin_conf.powersave = false; // set not to powersave
        port_pin_set_config(BUTTON, &pin_conf); // configure pin PAxx
        pin_conf.direction = PORT_PIN_DIR_OUTPUT; // set to output
        pin_conf.input_pull = PORT_PIN_PULL_NONE; // set not to pullup
        pin_conf.powersave = false; // set not to powersave
        port_pin_set_config(LED, &pin_conf); // configure pin PAxx
    }
    
    void main(void)
    {
        system_init();
        stepup_pins();
    
        while (true) 
        {
            bool pin_state = true;
            pin_state = port_pin_get_input_level(BUTTON);
            port_pin_set_output_level(LED, !pin_state);
    
        }
    }

  • PCBs arrived

    Ethon11/03/2015 at 13:23 0 comments

    Finally the pcbs arrived.

View all 2 project logs

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates