Page 1 of 1

What's SAM3X8E?

Posted: Fri May 16, 2014 1:20 pm
by AlanM
I keep seeing some if defined (__SAM3X8E__), but can't figure out if I should care to modify those parts or what. Is that a new version of the controller in development like RA_STAR and RA_MINI and RA_TOUCHDISPLAY and some of the other defines I see floating around?

Re: What's SAM3X8E?

Posted: Fri May 16, 2014 3:55 pm
by rimai
Yeap... new board prototype I have. It's based on a 32bit processor. The major advantage is that you can connect a tablet directly to the head unit and have android talk straight to the controller instead of using WiFi.

Sent from my SM-G900P using Tapatalk

Re: What's SAM3X8E?

Posted: Fri May 16, 2014 4:40 pm
by AlanM
rimai wrote:Yeap... new board prototype I have. It's based on a 32bit processor. The major advantage is that you can connect a tablet directly to the head unit and have android talk straight to the controller instead of using WiFi.

Sent from my SM-G900P using Tapatalk
Cool. Where is the code for VariableSpeed class located instead of the PWM class? Is it in the repo or should I just not worry about it for now.

Re: What's SAM3X8E?

Posted: Fri May 16, 2014 5:41 pm
by rimai
There isn't any code. It is just an alias of PWM. I couldn't use PWM because it is integral part of the internal libraries of Arduino, so I had to change it to something other than PWM.

Sent from my SM-G900P using Tapatalk

Re: What's SAM3X8E?

Posted: Fri May 16, 2014 5:48 pm
by AlanM
rimai wrote:There isn't any code. It is just an alias of PWM. I couldn't use PWM because it is integral part of the internal libraries of Arduino, so I had to change it to something other than PWM.

Sent from my SM-G900P using Tapatalk
Got it. When I do calls to Set16Channel for the PWM class I will do the same with a different name for the VariableSpeed calls.

Re: What's SAM3X8E?

Posted: Sat May 17, 2014 5:38 am
by AlanM
Been reading on that chip which also seems to be used in the Due. Seems to support variable bit output on the analog out pins up to 12bit. I assume you'd do 12-bit, because why not, so in all of those if blocks should I assume it's going to get that many levels of dimming even on the Actinic, Daylight, and ATO pins?

Re: What's SAM3X8E?

Posted: Sat May 17, 2014 7:48 am
by rimai
Yeap. You are right :)
I never thought of that. 12bit resolution on the PWM channels.

Re: What's SAM3X8E?

Posted: Sat May 17, 2014 7:49 am
by rimai
And now that you mentioned, I may have overlooked one thing. I will have to double check my design to confirm the ATO ports are mapped to PWM ports. I don't think they are.

Re: What's SAM3X8E?

Posted: Sat May 17, 2014 4:31 pm
by AlanM
If you do bring it out as a controller at some point it will be seriously nice. A pile of pins available.