Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Custom pcb, need design and code input for non-working design.

Status
Not open for further replies.

n4alpaca

Newbie level 3
Newbie level 3
Joined
May 1, 2015
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
50
Hello, I've gone and borrowed the reference design for atmels SAMS70j21. My board is built from their application diagrams for this particular microcontroller. I've tried to upload an LED Blinky program I've written and it fails to blink my working LED (I've checked). I've checked the power source (working). All I have in the way of test equipment is a cheap multimeter.
I'm using Atmel studios with jlink and the code seems to upload no problem. All the wires and outputs are the right ones.
I've attached the schematic and physical layout in a PDF, i will attach the Gerbers of I'm asked.
Here is my code:
Code:
board_init();
    pio_set_output(PIOD, PIO_PD22, LOW, DISABLE,ENABLE);
    pio_set_input(PIOD, PIO_PD21, 0);
    // set PA13 as pulldown
    PIOA->PIO_PPDDR = PIO_PD21;
 
    while(1){
        int z = pio_get(PIOD,PIO_INPUT,PIO_PD21);
        if(z){
            pio_set_pin_high(PIO_PD22);
        }
        else
            pio_set_pin_low(PIO_PD22);
    }
 

Attachments

  • SAMS70J21_module.pdf
    926.7 KB · Views: 94

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top