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
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.
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
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.
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.
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.
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.