- Operating Voltage 5V
- Digital I/O Pins 54 (of which 14 provide PWM output)
- Analog Input Pins 16
- Current for 3.3V Pin 50 mA
- Flash Memory 256 KB of which 8 KB used by bootloader
- SRAM 8 KB
- EEPROM 4 KB
- Clock Speed 16 MHz
Summary Microcontroller Atmel SAM3X8E ARM Cortex-M3 CPU (risc processor)
- 54 digital input/output pins (of which 12 can be used as PWM outputs)
- 12 analog input
- 84 MHz clock
- USB OTG capable connection
- 2 DAC (digital to analog)
- 2 TWI
- 3.3V and compliant with the 1.0 Arduino pinout.
- 96 KBytes of SRAM.
- 512 KBytes of Flash memory for code.
- A DMA controller that can relieve the CPU from doing memory intensive tasks.
But what are the software changes for making this board work with the AFSM?
- Failure resetting the board from HMI
- Failure on FreeMemory function
- The calculation for the size of the FSM state constructor is wrong
Adjustment made for the DUE (blue is new, green is old)
Added new libraries:
RSTC->RSTC_CR = RSTC_CR_KEY(0xA5) | RSTC_CR_PERRST | RSTC_CR_PROCRST;
} // End of ResetBoard
HMISendString("@VAL," + ValidationId);
FreeMem = &top - reinterpret_cast<char*>(sbrk(0));
HMISendString("@RAM," + String(FreeMem));
} // End of RAM
void InitFSMStates ()
int StateNo = 0;
Serial.println ( F("Setup FSM States"));
NoFSMStates = sizeof(PossibleFSMStates) / 12;
while (StateNo < NoFSMStates)
There is a great difference between the speed of similair controls. First test gave a serious reduction of the cycle time; for the DUE 0,18 mS and the similair MEGA2560 control has a cycle time of 0,87 mS. Notice also the difference in free memory.