That's unlikely to be possible as Windows, application software and USB drivers have no ability to control the signal polarity of the cable hardware.Would it be possible to add an option to choose inverted vs. non-inverted USB to Serial adapters?
Ron's idea surely is a good one, however. I have bunches of USB/serial adapters around here that must be inverted and are of the design that cannot be flash-updated. I have to stick two inverters in the designs to deal with the inversion problem. Deep down in the firmware, is there not an inversion register? If not, OK, but it is surely something that should be addressed as the PICAXE line matures, for the sake of completeness with commonly available hardware used in the community.That's unlikely to be possible as Windows, application software and USB drivers have no ability to control the signal polarity of the cable hardware.
SYMBOL Centigrade = B0
SYMBOL Fahrenheit = B1
TEMPORARY B10, B11, B12 [, Bxxx ]
...
Centigrade = Cent2Fah ( Fahrenheit )
SERTXD ( "C= ", Centigrade, " F= ", Fahrenheit )
END
DEFINE FUNCTION Cent2Fah ( C )
F = C * 9 / 5 + 32
Return F
....
Depends what you mean, PICAXE firmware or USB firmware.Deep down in the firmware, is there not an inversion register?
PICAXE firmware could be coded to use a different serial polarity but that opens a whole can of worms with different PICAXE requiring different download cables and download circuits as there's simply no easy way to have a solution which works with either automatically. It could be done by dedicating an I/O pin for specifying polarity but that uses up a general purpose I/O. That or a firmware polarity change would likely be incompatible with almost all existing circuits.Deep down in the firmware, is there not an inversion register? If not, OK, but it is surely something that should be addressed as the PICAXE line matures, for the sake of completeness with commonly available hardware used in the community.
Rev-Ed sell the 18M2ST which has inverted serial pins (according to the datasheet) but the C.5 input is replaced with a reset pin. The other PICAXEs - probably no inverted serial versions.Deep down in the firmware, is there not an inversion register?
Understood that a default for download would be required (pre-DISCONNECT.) But, one (I) might think that once the download was disconnected, that a SFR bit(s) could be utilized to perform the magic. Surely no-one would object to doing a little poking into the SFR's to perform a weebit of magic? ... anyway, I felt that Ron's idea was good and I often utilize inexpensively purchased Chinese USB-serial connections which do not natively work with the PICAXE but require either a single NPN inverter (if I'm doing only output serial) or a 7404'ish series if I need both Send/Receive translations.PICAXE firmware could be coded to use a different serial polarity but that opens a whole can of worms with different PICAXE requiring different download cables and download circuits as there's simply no easy way to have a solution which works with either automatically.
It's never too late - keep those ideas coming.Just an idea, if it's not too late !.
play B.1, b0
select case b0
case 0
play B.1, 0
case 1
play B.1, 1
...
endselect
Would that not make it easy to copy the PICAXE firmware ?Any method allowing machine code subroutines to be loaded into and executed by the Picaxe.
I agree with this, although a double sided printout and laminated of the pinouts in the manual works well for me, so maybe a better lay out of the pinout page in the manual, to allow a more printer friendly double page of all the chips pinouts, as current view requires 2 double sided pages, and a single printed double page would be better.Pinout option on "view " menu that displays the pinout for the currently selected chip. when developing ideas with the AXE091 I'm for ever opening manual 1 just to check if pin b.6 is the one that is read only or is it...
Really, sound card as a serial port ?You can get software that allows you to use it as a serial port
I've done this a few ways... complicated, using IR remote for entering a string of data. The user moves a Jumper from Run mode to Program mode and the PICAXE walks them through value by value. An easier way, for limited data, may be something like this: http://www.picaxeforum.co.uk/showthread.php?19372-Add-field-adjustable-coefficients-to-your-projectI dont know if this is practical or even possible, but a form of "code lock" could be handy.
Hi Jamster,@SAborn, I can build you some software that will allow users to download code to a PICAXe without being able to see the code (well, there are some ways) and I can customise it to allow specific changes if you wish.
That's why I rename Picaxe programs to *.AXEBAScould a new file extension be a reasonable suggestion? *.bas is used by almost all basic programing. I have to open prog edit before opening the file. if i make prog edit the main editor it tries and fails to open VB code. jsu a thought?
thanks
tiny
That would be perfect. It is hard to do the associate thing on the computers (and I have admin rights). Would also like to open more than one window at a time via this method. Could use the window tabs?That's why I rename Picaxe programs to *.AXEBAS
In Explorer you can than associate this extension to the ProgramEditor so it always starts with these files. Only problem is that it is not allowed to open the next basic program when PE is already running.
Quite simple - in Windows Explorer simply right click over the file - select Open With>Choose Program and then select 'always use this program' when you browse to the Programming Editor.It is hard to do the associate thing on the computers (and I have admin rights).
CountPulses:
count FlowSensor,100,NumberOfPulses
PulseCounter = PulseCounter + NumberOfPulses
return