Programming PICAXE and BASIC Stamp microcontrollers

Does anybody know if PICAXE or BASIC Stamp can be programmed in assembler or Forth (or anything but BASIC!)?

--

-- Do, as a concession to my poor wits, Lord Darlington, just explain to me what you really mean. I think I had better not, Duchess. Nowadays to be intelligible is to be found out. -- Oscar Wilde, Lady Windermere's Fan

Reply to
Peter Percival
Loading thread data ...

I'd be interested to know what you NEED and CAN'T do in BASIC and the BASIC stamp (note the word BASIC in the name) hardware supports that you COULD do with greater return on investment in Forth?

The answer to your question has to be yes. Program the chip directly in binary.

Reply to
mike

I accept that whatever BASIC Stamp can do, it can be made to do it using BASIC and nothing else will ever be _required_. But I am a hobbyist (hiss! boo!) and I want to program in something... um... more interesting than BASIC. I shall be doing it with PICAXE (not BASIC Stamp, it seems) just for fun. Fun? FUN? Are you mad Percival?

Maybe I'll get a BASIC Stamp as well, if Xmas hasn't completely emptied the piggy bank.

--
Do, as a concession to my poor wits, Lord Darlington, just explain 
to me what you really mean. 
I think I had better not, Duchess.  Nowadays to be intelligible is 
to be found out. -- Oscar Wilde, Lady Windermere's Fan
Reply to
Peter Percival

No, but the underlying Microchip PIC can. I'd just go that route if you're interested in Assembly or some compiled language.

Reply to
John Mianowski

You can program your PC in any language you want. That could keep you busy for an eternity.

The problem with a microcontroller is not the code...it's getting it into the microcontroller and having some result come out. Most effort goes into making that simpler, not more complex and lower level. Do you really want to write the machine code that implements a USB port? OR a serial port? Or a display device? Do you really want to build a programmer that can put the bits into a blank device at the lowest level? A standardized platform comes with lotsa pre-configured/pre-debugged callable routines for all that.

One of the interesting things about PICBasic is that it's written in PICBasic. I've actually modified the compiler to change the way the serial port works for IR communication. It doesn't have to be boring.

Starting with something like an Arduino might maximize your fun/(effort+$)ratio. And you might end up with some gizmo you can use.

formatting link

formatting link

Are we having fun yet?

Reply to
mike

And furthermore, if you want something completely different, google 'MIT App inventor' and 'write' some code for your android smartphone that might even be able to do something useful.

Reply to
mike

Am Thu, 4 Jan 2018 22:42:59 +0000 schrieb Peter Percival :

If you're talking about the original Basic Stamp then no, you can't. Beeing based on a OTP (one time programmable) 16C56, , its interpreter was fixed in 1 K words of program memory and isn't rewritable.

Twenty years ago, I had a lot of fun playing around with a handfull of PIC 16F84, see for example . This specific piece was done using a PICBASIC/ Assembler mixture, using the commercial compiler from

formatting link

Currently, I'd recommend buying a PICkit 2 or 3 original or clone, a handfull of for example PIC 12F840, PIC10F320 and start with the free/demo version of Microchips XC8 (->

formatting link

This recommendation is based on an assumption that you really want to start at the bare metal.

The following gimmick was done using two cheap 10f320 and a short C program compiled by the aforementioned xc8 compiler.

Another example:

formatting link

Reply to
Wolfgang Strobl

Flash Forth looks robust, and the core occupies ~8KB (in the Atmel chip we are using, PICs should be similar).

It supports incremental compilation on target, high level interrupt handlers, and an assembler:

flashforth.com

To get going you will need to be able to flash the core into your microchip processor.

Should be a good basis for exploring how micros work, and big enough for large projects.

Jan Coombs

Reply to
Jan Coombs

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.