SuperPro C

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

SuperPro C

Post by afanofosc »

As I mentioned in the Mindstorms Hardware forum, I have added another pair of programming languages into the NBC compiler. NBC can now compile files with a .spc file extension as well as files with a .spasm file extension. SPC files are SuperPro C files. The SuperPro C programming language is like C in many ways. Like C it supports pointers and true reference types. SPASM files are SuperPro assembler files for those of you who prefer to program at a lower level than C.

As of 2011-10-28 I do not have the SPC compiler working properly for array types due to recent architectural changes I made to the way arrays are parsed and compiled. But that limitation should be fixed today or tomorrow, though celebrating my wife's birthday may introduce a slight delay.

In any case, you can check out the compiler in the 2011-10-24 test release and contact HiTechnic about getting one of these cool new devices if you'd like to do some hardware prototyping with a device that interfaces extremely well with the NXT. If you have any questions or run into any problems with SuperPro C.

https://sourceforge.net/apps/wordpress/ ... pro-board/

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: SuperPro C

Post by mightor »

If all goes well, I should have one of these puppies next week. I'm looking forward to using your compiler! I love the .spasm extension. Who said programmers didn't have a sense of humour?

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
ronmcrae
Posts: 33
Joined: 28 Sep 2010, 14:56

Re: SuperPro C

Post by ronmcrae »

If there is a need to update the firmware on the SuperPro board, will that be done via BricxCC also?

Will the board firmware be opensource?

So many questions :)
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: SuperPro C

Post by afanofosc »

Ron,

I am not sure but I don't think that the firmware on the SuperPro sensor is field replaceable and as far as I know it is not open source. I'm sure Gus and John at HiTechnic can fill in all the details. :-)

Gus has been creating a number of very cool demo programs for the SuperPro, one of which involves SPC code running on the SuperPro playing a song using the analog outputs and an NXC program running on the NXT setting a shared memory address via I2C to different values which causes the SPC program to change the tune or stop it altogether. With the PWM output you can control servo motors. The motor control can be entirely stand alone SuperPro C code or it can be controlled by sending I2C messages to the SuperPro from an NXC program running on an attached NXT.

You can have up to 7 separate programs downloaded in the SuperPro's memory. You pick the program slot via the BricxCC IDE just like you would with the RCX brick. Each program can have up to 8 concurrent tasks.

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
ronmcrae
Posts: 33
Joined: 28 Sep 2010, 14:56

Re: SuperPro C

Post by ronmcrae »

afanofosc wrote: Gus has been creating a number of very cool demo programs for the SuperPro, one of which involves SPC code running on the SuperPro playing a song using the analog outputs and an NXC program running on the NXT setting a shared memory address via I2C to different values which causes the SPC program to change the tune or stop it altogether. With the PWM output you can control servo motors. The motor control can be entirely stand alone SuperPro C code or it can be controlled by sending I2C messages to the SuperPro from an NXC program running on an attached NXT.

You can have up to 7 separate programs downloaded in the SuperPro's memory. You pick the program slot via the BricxCC IDE just like you would with the RCX brick. Each program can have up to 8 concurrent tasks.

John Hansen
Thanks John, all that looks like a lot of fun to get involved with. Sending my order today, but still wondering what to build with all these new possibilities......
dmfort
Posts: 1
Joined: 23 Nov 2013, 19:28

Re: SuperPro C

Post by dmfort »

I know this is a moldy thread, but I wondered if the example program for the HiTechnic SuperPro board that shows how to interface to NXT over I2C by Gus mentioned above is available someplace. That is the sort of thing I am contemplating and an example would be very helpful.

thanks!
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 0 guests