What's SAM3X8E?

Related to the development libraries, released by Curt Binder
Post Reply
AlanM
Posts: 263
Joined: Wed Jan 01, 2014 7:26 am

What's SAM3X8E?

Post 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?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: What's SAM3X8E?

Post 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
Roberto.
AlanM
Posts: 263
Joined: Wed Jan 01, 2014 7:26 am

Re: What's SAM3X8E?

Post 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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: What's SAM3X8E?

Post 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
Roberto.
AlanM
Posts: 263
Joined: Wed Jan 01, 2014 7:26 am

Re: What's SAM3X8E?

Post 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.
AlanM
Posts: 263
Joined: Wed Jan 01, 2014 7:26 am

Re: What's SAM3X8E?

Post 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?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: What's SAM3X8E?

Post by rimai »

Yeap. You are right :)
I never thought of that. 12bit resolution on the PWM channels.
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: What's SAM3X8E?

Post 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.
Roberto.
AlanM
Posts: 263
Joined: Wed Jan 01, 2014 7:26 am

Re: What's SAM3X8E?

Post by AlanM »

If you do bring it out as a controller at some point it will be seriously nice. A pile of pins available.
Post Reply