View unanswered posts | View active topics It is currently Sat Oct 25, 2014 4:05 pm






Reply to topic  [ 9 posts ] 
three last questions I promise 
Author Message
Rookie

Joined: Mon May 14, 2012 3:24 pm
Posts: 43
Post three last questions I promise
I know this is beta and I understand that all the questions I have posed may not have answers to them. That's ok I do understand but I hope you all do not mind me asking anyway.

So I have 3 last questions:

Will SPI devices be supported (via api/library)?

Will there be support for LCDs such as the Hitachi HD44780 LCD controller?

Sometimes it is nice (or necessary) to have direct access to the port registers (among other things). Any plans to support this?


Mon May 14, 2012 5:55 pm
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 613
Post Re: three last questions I promise
1. SPI is a future development to be in firmware.

2. We support Serial based LCDs right now (obviously) - as for a parallel port LCD, more than likely this will be done with a user include file.

3. I'm not sure about having direct control over the PORT registers. What would you use this functionality for? We give all possible configurations of each pin (along with extras like PWM generation) and we do the analog conversion for the user. If you make your case, maybe we'll add it :)

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Tue May 15, 2012 9:27 am
Profile
Rookie

Joined: Mon May 14, 2012 3:24 pm
Posts: 43
Post Re: three last questions I promise
tfriez wrote:
3. I'm not sure about having direct control over the PORT registers. What would you use this functionality for? We give all possible configurations of each pin (along with extras like PWM generation) and we do the analog conversion for the user. If you make your case, maybe we'll add it :)


Thanks for all the answers. The reason I've needed to use PORT registers in the past was to set particular pins simultaneously (mostly when controlling multiple H-bridges).

However I believe some the shields on the market such as the Adafruit wave shield and the TFT Touch shield use them within their libraries. I was curious that if the need arises will it be possible to make libraries in RobotC to support those types of devices.


Tue May 15, 2012 1:26 pm
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 613
Post Re: three last questions I promise
You can create ROBOTC interpreter level include files using a standard C-Style #include - The best example of this with peripherals is to take a look at the extensive library that Xander has made for 3rd party NXT sensors.

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Tue May 15, 2012 4:19 pm
Profile
Expert

Joined: Thu Sep 29, 2011 11:09 pm
Posts: 184
Location: Michigan USA
Post Re: three last questions I promise
I haven't used ROBOTC a whole lot, but I have used NXC and Arduino C++ quite a bit. Most often I use my own libraries, but they all need to be completely compatible as if they were in the main program (same syntax, function names etc.).

ISR support should be available for all levels of programming, whether it's a simple LED blinking program, or a library with support for a RTC that wakes the AVR on timer overflow.

Recently I built a library (in C++ for the Arduino, using the standard IDE) that would interrupt the code to toggle an IO pin. I was using precision of 1uS to generate IR messages (with an IR LED). While that was "running in the background", it would continue to run the main user-program, with no noticeable delays. Without timer interrupts this would be impossible to do.

The biggest downside to the main popular NXT FWs, is that none of them support user-implemented interrupts, or direct control (for single task, high speed, high timing precision programs). I know there are pros and cons to the two system architectures, but it would be cool if the previously distinct lines could optionally be blurred a little with ROBOTC for Arduino.

_________________
Matt


Wed May 16, 2012 12:29 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3227
Location: Rotterdam, The Netherlands
Post Re: three last questions I promise
I made a simple SPI library for my DFRobot LCD screen. I'm going to have see if I can find it but it was quite fast. (http://botbench.com/blog/2010/12/28/fun ... r-arduino/)
I am struggling to find the original source code for it. It used to be in Dropbox but I seem to have misplaced it. I'll let you know when I find it again.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Wed May 16, 2012 1:20 am
Profile WWW
Rookie

Joined: Mon May 14, 2012 3:24 pm
Posts: 43
Post Re: three last questions I promise
Xander thanks.

I asked about SPI because some hardware like the Ethernet/SD shield requires it.

What I guess am really trying to do is compare/contrast RobotC with Arduino 1.0 development because I want to know what shields/hardware will potentially work (or not) with RobotC.

That is why I've been asking about what RobotC plans to support in the future. So I know if I don't have pin interrupts I won't be able to use motors with encoders. Things like that.


Wed May 16, 2012 10:41 am
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 613
Post Re: three last questions I promise
The goal of the BETA is to identify the features most people are interested in and then add those during our development this summer.

I could see how a native SPI would be ideal. It's definitely on the "todo" list.

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Thu May 17, 2012 12:09 pm
Profile
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post Re: three last questions I promise
tfriez wrote:
The goal of the BETA is to identify the features most people are interested in and then add those during our development this summer.

I could see how a native SPI would be ideal. It's definitely on the "todo" list.


Maybe you should make a "sticky" thread for feature requests?

_________________
A.K.A. inxt-generation
Self-proclaimed genius, and future world dominator.
My Brickshelf Folder
"Don't they teach recreational mathematics anymore?" - The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.


Thu May 17, 2012 12:18 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.