Show Posts
Pages: [1] 2
1  Products / Arduino Due / Re: Overheating and slowing down. on: May 17, 2013, 09:47:16 am
Hi,

did you use delay(1000) to obtain the one second delay between two data sends or something else?

SAM3X is working without problem at that temperature range as it is an industrial product, but if you use a timer peripheral, which takes its reference on the internal 32KHz RC, it could explain what you obtain.
2  Products / Arduino Due / Re: [ now published on github ] Building a CAN API for Arduino DUE on: April 23, 2013, 09:19:34 am
Hello,

13 pages on this topic isn't enough :-D

Here is more CAN stuff, as I just discovered this while taking news of OpenXC project: https://github.com/openxc/cantranslator

Maybe this can help you going further.

I don't remember who posted about CanOpenNode project hosted on Sourceforge (http://sourceforge.net/projects/canopennode), but it seems also really interesting for people wanting to move on higher industrial bus (interoperability).
3  Products / Arduino Due / Re: dac/adc/usb example might be interesting read on: April 23, 2013, 09:14:39 am
This can be done also on the Due but it is a bit touchy regarding hardware. You can be inspired by the SAM3S-EK schematics to reproduce the system on a proto shield.

As far as I know, SAM3X and SAM3S share a very similar ADC and DAC... ;-)
4  Products / Arduino Due / Re: Can Arduino Due enable two SPI interface at the same time (different in all pin) on: February 13, 2013, 08:52:17 am
The SAM3X Datasheet precise there is one pure SPI peripheral and 3 USART able to work in SPI mode.
I didn't check the Due schematics but I guess you will find fast enough if you are able to use these USART for your own purpose (without CS).

Besides that the SPI seems to be able to go as fast as around 40Mbit/s on this device.
5  Products / Arduino Due / Re: Due for very low power applications? on: February 13, 2013, 08:43:27 am
The ATMEL SAM3X present on the Due is a Cortex-M3 based device. This means you have some low power modes available: Sleep, Wait and Backup.
These modes are described in the chapter 5.5 of the datasheet. The associated power consumption can be found in chapter 46.3.

I'm pretty sure you would be able to obtain a long life time on battery if you consider the Backup mode.

On what kind of event do you want to wake up your system? External input, internal timer?
6  Products / Arduino Due / Re: Memory usage statistics on: February 13, 2013, 08:29:55 am
Hi Greg,

do you have the link about the AVR way?
7  Products / Arduino Due / Re: DUE - ADC shows strange drop depending on °C and timing on: February 13, 2013, 08:26:02 am
hello gbduino,

I see that you are using a 2V battery. I'm not sure this voltage is in the working range for ADC.

In the case of normal power plug, this is another matter:
From what I see in the schematics, the AVREF is either 3.3V or external source. Did you plug an external source?

Furthermore, the wiring_analog API is providing raw access to ADC inputs. Did you implement a calibration in your sketch to ensure the values are processed correctly?

Anyway, I don't think that your issue is covered by the Errata.
8  Products / Arduino Due / Re: Using the Hardware Quadrature Encoder Channel on the DUE on: January 16, 2013, 08:14:52 am
It seems that this file \hardware\arduino\sam\system\CMSIS\Device\ATMEL\sam3xa\include\component\component_tc.h present the same information.
9  Products / Arduino Due / Re: Disabling UART on Due? on: January 12, 2013, 11:00:20 am
oooops i read a bit fast your posts, sorry.
10  Products / Arduino Due / Re: Disabling UART on Due? on: January 10, 2013, 09:49:39 am
hi Bi0H4z4rD,

sorry for late reply on this but yes, you should use what stimmer suggested you. This is the only way to assign a pin either to GPIO multiplexing or to a peripheral.

by the way, if you want to send 5bit frames, maybe are you able use the USART with the proper configuration. That way you won't have to do it manually:

36.2 Embedded Characteristics
• Programmable Baud Rate Generator
• 5- to 9-bit Full-duplex Synchronous or Asynchronous Serial Communications

I didn't check deeply the DS, so maybe am I wrong.
11  Products / Arduino Due / Re: Disabling UART on Due? on: January 09, 2013, 10:03:33 am
what do you mean by disabling a serial port?

I'm not expert in AVR but I know that all peripherals are clocked by default, so consuming power even if not used.

I know a bit more the SAM3X and in its case the peripherals are not clocked by default.
This means that all pins are dedicated to General Purpose I/O Controller and not to a multiplexed peripheral (like USART).
Thus, the pins need to declared as being used by a peripheral to be used and the peripheral to be clocked before any use.

Am I guessing right what is behind your question?
12  Products / Arduino Due / Re: Due support for Nokia 6100 display on: January 03, 2013, 03:31:25 am
Good points, I was pretty sure about that but wanted to them to be confirmed.

About point 1), I double checked the SAM3X datasheet and if you look at chapter 33, more precisely at 33.8.9 SPI Chip Select Register, you will see that you are able to configure the SPI to handle frames with a length from 8 to 16 bits:

• BITS: Bits Per Transfer
The BITS field determines the number of data bits transferred. Reserved values should not be used.
Value Name Description
0 8_BIT 8 bits for transfer
1 9_BIT 9 bits for transfer
2 10_BIT 10 bits for transfer
...

As you said, to obtain something compatible between all boards and all device architecture it is better to use software SPI and impacts dedicated performance optimizations.
13  Products / Arduino Due / Re: Due support for Nokia 6100 display on: January 02, 2013, 09:45:30 am
Hi Tom,

I checked your code and you did really impressive work.
I just would like to know why you don't inherit from the SPI class to obtain the SPI management done by the SAM3X SPI Peripheral.
Is it because the shield could be used without using the SPI dedicated pins?

In case of you would like to use SPI, it could be useful to add a small buffer in RAM and then use it as DMA input for a given maximum drawing object size.
That way, you should greatly improve the framerate, I hope.
This could also bring an accelerated bitmap blit from Flash/RAM to LCD, couldn't it?
14  Products / Arduino Due / Re: Using the Security Bit Feature on: January 02, 2013, 07:20:55 am
Hi stefan,

Yes, you can use BOSSA for that.

For other people interested in doing that into their own code: you have to use the EEFC by sending a Set GPNVM bit command to set the GPNVM0 bit.
This will make the flash not readable from any external way and totally lock the JTAG/SWD debug functions.
The EEFC peripheral driver isn't yet available in the public GIT.

The only way to come back to a fully available SAM3X device is to process a chip erase using the ERASE pin through the atmegau serial protocol  or the ERASE button on the board. The board needs to be powered for this.
15  Products / Arduino Due / Re: Library Problem With IDE V1.5.1r2 And Due on: January 02, 2013, 06:15:00 am
hi,

From what I see here, io.h seems to be part of AVR toolchain and related to AVR devices peripheral registers.

So, don't expect this to be exactly the same for an ARM based device, read: not part of a generic ARM GCC distribution.

But, similar information is provided here: arduino-1.5.1r2\hardware\arduino\sam\system\CMSIS\Device\ATMEL\sam3xa

Going back to the issue:
C:\Users\xxxxx\Documents\Arduino\libraries\Wire\utility\twi.c:25: fatal error: avr/io.h: No such file or directory
compilation terminated.

This shows that the IDE is trying to compile the AVR dedicated library instead of the SAM one.
The main difference is that all peripheral drivers for the Due/SAM3X are contained into libsam (arduino-1.5.1r2\hardware\arduino\sam\system\libsam) so that they are available to any additional library/applicaiotn and thus don't need to be added into any local folder.

This should not happen regarding the fact you selected the Arduino Due board in the menu, I guess.
Pages: [1] 2