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.

[ARM] Atmel studio and AT91SAM7XC512 ?

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Visit site
Activity points
9,442
Atmel studio and AT91SAM7XC256 ?

Hello Guys,

Does anyone know on how to use Atmel Studio with AT91SAM7XC256 ?
Any libraries that I must install ?
I tried to create a new project but couldn't find AT91SAM7XC256...

Any helps or references will be appreciated,
Thanks
 

Is the code right ?
Code:
#include <AT91SAM7X256.H>                        /* AT91SAMT7X256 definitions */
#include "..\AT91SAM7X-EK.h"

#define SPEED (AT91B_MAIN_OSC/1000)


unsigned int LEDSpeed = 50*SPEED;


/*
 * Wait Function (SW Waiting Loop)
 *   Waiting Time defined by global variable LEDSpeed
 */
 
void wait (void) {
  unsigned int n;

  for (n = 0; n < LEDSpeed; n++);

}
  

/*
 * Main Program
 */

int main (void) {
  int i;

  // Enable the Clock of the PIO

  AT91C_BASE_PIOA->PIO_OER  =AT91B_LED1;

  // Clear the LED's. On the Board we must apply a "1" to turn off LEDs
  AT91C_BASE_PIOA->PIO_SODR = AT91B_LED1;


  // Loop forever
  for (;;) {
      //AT91C_BASE_PIOA->PIO_CODR = AT91B_LED1 ;
      //wait();
      AT91C_BASE_PIOA->PIO_SODR = AT91B_LED1 ;
      wait();
   }
}
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top