Search results

  1. R

    Do Rev-Ed provide any documentation for PICAXE VSM describing which BASIC commands are not supported and which chip features are not simulated?

    I have a problem with a mixed-signal simulation getting stuck. These code excerpts are from a 14M2 programme, though I'm fairly sure that all PICAXEs are affected. First off, the definitions: ; Define the special function registers. SYMBOL TMR1H_REG = 0x17 SYMBOL T1CON_REG = 0x18 ...
  2. R

    Problem getting a 18m2 program to run on a 20m2

    Ahh, I was assuming that the breadboard being used was the PICAXE development board, in which case the power supplies and RxD and TxD lines are automatically taken care of. I'm also confused by the implication that the download to the 20M2 is successful, something that cannot be true if the...
  3. R

    HSERIN to non-default scratch pad location.

    Thankyou for your replies, my understanding of the hardware serial receive has improved considerably as a result. Are HSERPTR and HSERINPTR different names for the same register? At least, I cannot think of what any difference might be. My plan is to use the bottom 256 locations of the scratch...
  4. R

    Picaxe chips supplied in there original pic form and without picaxe program

    No, this is a problem that I've not seen, although I haven't ordered any PICAXEs since 2018. Over the years I've bought some 240 PICAXEs of various types, including about 100 08M2s, and as far as I can recall, never had any problem with any device.
  5. R

    HSERIN to non-default scratch pad location.

    I think I've found the answer. Automatic background receiving (which is what I'm doing) is to the location set by HSERPTR, and this appears to be writable as well as readable (at least the compiler doesn't complain when I do set it). Hopefully, all I need to do is set this as required.
  6. R

    HSERIN to non-default scratch pad location.

    Hi all, I'm transferring data between my PC (running a tcl programme) and a 28X2 (utilising the HSERIN/HSEROUT pair of pins), connectivity being via an AXE027. It's early days yet and there's a lot of debugging ahead of me, but basic two way communication is working. One problem I am facing is...
  7. R

    Hippy status, rev 2.0

    Welcome back, great to see you again!
  8. R

    LOOKING FOR SWITCH

    The switch remains closed for as long as the button is pushed down. Release it to open the switch.
  9. R

    LOOKING FOR SWITCH

    Hi John, Are these the sort of switch you're looking for? I use the shorter button version of these to set the limits of travel of a servo motor, one for one direction, the other for the other direction. My prototyping is all done on 1.6mm PTH PCB, for which I designed my own footprint. They...
  10. R

    AXE171 board and 2 servos

    Presumably these are the Tower Pro SG90 servos that you mentioned on a previous thread? I too had problems with these servos glitching (not identical from your description but not too dissimilar either) when controlled by a 14M2 using the SERVO command. The solution was to use the PULSOUT...
  11. R

    I2C inter-PICAXE smulation ?

    It is possible, but be careful before you go down that route. Firstly, you should check with RevEd which version of Proteus VSM runs under. When I purchased VSM at the end of 2015, it ran with v7 of Proteus. My understanding is that VSM still runs under this version, but check with RevEd to be...
  12. R

    Light Dependent Resistor (LDR) and LED lighting

    Aahh yes, Peco solenoid switches, I remember them well. Driving them wasn't a problem, but the noise they make -- WACK! as you rightly put it -- was too much for me, so I junked them in favour of using a servo. Indeed so, yes, 14M2 for the two way turn out and an 18M2 for the three way and the...
  13. R

    Light Dependent Resistor (LDR) and LED lighting

    I use those Tower Pro SG90s for turn out switching. They're easy to use and reliable, I've had no problems at all with them and they should work fine in your application. However, they don't have any fixing lugs on them (don't know if this is a common trait of miniature servos or not since these...
  14. R

    Position sensing

    ...of a model train. Hi folks, Does anyone have any practical experience of locating trains automatically on a model railway? The purpose would be automating the running of the railway, such as the routing of trains, signalling, etc. The first requirement is that the hardware needs to be kept...
  15. R

    14M2 interrupt error in model

    Hi Technical, Generating a suitable .dsn file is going to be time consuming, assuming I can do it at all, that is. I haven't used Proteus v7 for some years now, having switched to v8. I can send you the .pdsprj file without any problem, but I suspect that you won't be able to handle it. Is this...
  16. R

    14M2 interrupt error in model

    Thanks hippy and Technical for your inputs. There is a single 0V rail, the various separately drawn parts being connected by signal naming, "ZEROV" and "LOGIC0". 0V_A and 0V_B are components on this rail: solder pins for connecting to the off PCB circuitry. I've just double-checked the...
  17. R

    14M2 interrupt error in model

    I'm not certain that the code and circuit diagram are going to be helpful in this particular case, however, since you asked, here they are. ; This is a programme for driving the beep test circuitry. #PICAXE 14M2 #TERMINAL 38400 ; Define the PICAXE port directions. LET dirsB = %00111111 ; [0]...
  18. R

    14M2 interrupt error in model

    I'm trying to detect a low input on either pin C.0 or pin C.1 using the interrupt thus: SETINT OR 0x00, 0x03 This simulates correctly in PE6.0.9.3, but completely misbehaves in the mixed signal environment. I'm hoping that the solution will be a fairly simple update to the AXE14M2.MDF model...
  19. R

    Confused by MIN

    I don't know for certain and the user manual isn't specific, but yes, this does appear to be the case. At least, if you re-define the temp register as a word variable then your original code works as intended.
  20. R

    PC to PICAXE communication

    Thanks all for your feedback -- it's been most useful in getting things working, and I am now able to transfer single ASCII characters from PC to PCB using TCL and an AXE027. The code I posted earlier was the entire code bar the definitions so, yes, I definitely bungled when setting the baud...
Top