arduino due ports manipulation

hello,
i had recently bought an arduino due, i want to use multiple pin as output at the same time, i have an experience with other arduino, in such case i use port C,D or B in an uno, and i want to use something similar to that on the due, i tried to compile this on the due but it didn't work.

void setup()
{
 DDRD = 0xff;
}

void loop() {
 PORTD = 0xff;
 delay(1000);
 PORTD = 0x00;
 delay(1000);
}

thanks for help

It's been posted by WestFW that ARM ports and pins take more commands to manipulate than AVR as well as being relatively weak.

(Almost) everything you need to know about Due direct port manipulation:

http://forum.arduino.cc/index.php?topic=260731.0

Be aware that the current sourcing and sinking capability of the Due ports are different than an AVR processor with many pins being significantly lower. See the data sheet or the Due pin out chart here:

https://forum.arduino.cc/index.php?topic=132130.0

You need first to read the pinout diagram, the one provided by Greynomad in the DUE sub section of this forum is the most useful.

And you need to read the datasheet, section 31 beginning page 618 for PIO controller.

The DUE gives you the ability to code 4 parallel Input/Output controllers (PIO). Each PIO can manage up to 32 fully programmable input/output lines.

Here is a snippet to blink 8 LEDs, from PC1 to PC8:

#define OUTPINS   (0x1FE)

void setup() {
  
  PMC->PMC_PCER0 |= PMC_PCER0_PID13;  // PIOC Power ON
  PIOC->PIO_OER |= OUTPINS;   // Outputs are enabled

}


void loop() {
  
PIOC->PIO_SODR = OUTPINS;
delay(1000);
PIOC->PIO_CODR = OUTPINS;
delay(1000);

}

thank you guys for help, i really appreciate it