Search results

  1. D

    Using Octal in PE6

    sounds sensible :-) Might just use binary if it isn't supported natively though... KISS :D Thanks for the reply though!
  2. D

    Using Octal in PE6

    Morning folks, Just a very quick question - does the PICAXE Editor support the Octal numbering system? Just personal preference, given that it's base-8... useful for an 8-bit microcontroller... Just can't find reference to it in the documentation Cheers!
  3. D

    PICAXE PreProcessor crash

    Yep, that's solved it - broke the 490 bytes into 100 byte chunks, and it's loaded those successfully :-) thanks for the tip!
  4. D

    PICAXE PreProcessor crash

    Update - running PE6 with admin rights unfortunately doesn't work
  5. D

    PICAXE PreProcessor crash

    Sorry, forgot to add - Windows 7 Enterprise, 64-bit, Intel i5-6300U @ 2.4GHz, 8GB RAM, running PE 6.1.0.0. Attempted to check syntax with chips set to both 40X2 (was obviously gonna fail, not enough table memory) and 20M2 (should work...)
  6. D

    PICAXE PreProcessor crash

    Afternoon folks, I'm trying to check the syntax on what I would call a reasonably simple program - quite literally all it does is load a set of data into the table memory of a 20M2. However, when I hit Check Syntax, Windows throws up an error, saying PICAXE PreProcessor has stopped working...
  7. D

    Random command strange results

    sorry for the late reply - events overtook me and I had to press the program into use. On the plus side, it performed perfectly for the entire weekend with just a minor tweak (the temporary removal of the potentiometer input)! I have to admit I'm not convinced either, Hippy, it seems like a...
  8. D

    Random command strange results

    That would probably take longer than my plan though... purely because as we've seen, if the number were really low it would take a while for a random number to "grow" again. Perhaps something similar, however: do while w3 < 10000 w3 * 10 loop
  9. D

    Random command strange results

    if w3 < 10000 then 'The RNG uses the previous result (w3) as the seed for the next generation. if w3 < 1000 then 'To prevent low value seeds causing RNG problems, this procedure ensures the seed is always at or above 10,000. if w3 < 100 then if w3 <...
  10. D

    Random command strange results

    That's a fair point... perhaps just trap any results below 10,000 and multiply by 10/100/1000, whichever would be required to bring the result back above 10,000 - cheers for that point!
  11. D

    Random command strange results

    Update: I tried pre-seeding w3 with 35634 during initialisation (random number from my head), and that seems to have worked. To add an extra layer of randomisation, I've also tried taking the ADC value from the potentiometer and multiplying it by 255 - I'll see how that works tonight on the...
  12. D

    Random command strange results

    So in theory, if I pre-seeded w3 with an arbitrary number, somewhere in the 10,000 - 60,000 range during initialisation, that should result in "normal" behaviour? Erm... oopsie... :ROFLMAO: Technical, given what Aries has said, would that line still be a problem? I've replaced the variable...
  13. D

    Random command strange results

    Hey folks, I'm trying to write a program to randomnly flash 16 LEDs one at a time, each time using one of 4 random colours with a random delay between each flash. The idea is to simulate shell flashes behind a model of a WWI trench. The 4 colours are achieved by 12 potentiometers in groups of 3...
  14. D

    Editing keyboard shortcuts

    Morning folks, Is there a way to edit keyboard shortcut bindings? I'm specifically wanting to swap F8 and Cntrl + Space so I can step through a program like in Visual Studio (just personal preference)
  15. D

    Understanding i2c addressing syntax

    excellent - I'll get testing :-) thanks for the clarification!
  16. D

    Understanding i2c addressing syntax

    Probably true xD So the syntax would be hi2cout [$0F], $FF, $FF........ Is it possible to use the contents of a variable to replace the newaddress and location?
  17. D

    Understanding i2c addressing syntax

    Afternoon (again) ladies and gentlefolks, Hopefully a quick question with regards to the syntax of the hi2csetup, hi2cout and hi2cin commands, specifically addressing. My bus is going to have multiple slave devices for various different things. It seems that you have to set a slave address in...
  18. D

    Multiplexing using a 40X2

    Caution - I may have just found another multiplex module... ;-) Has anyone here used an LED171596A from Texas Instruments before?
  19. D

    Multiplexing using a 40X2

    I forgot about the MAX232... I suppose that would work :-) I'll put my design in here later on for you perusal :D
  20. D

    Multiplexing using a 40X2

    that seems sensible... Perhaps my best route for now is to go ahead and order the circuit boards (which I need anyway), as the hardware won't change, only the firmware which we've been discussing (at great length!!) here... I'll get a proper circuit diagram and pcb design rolled out when I get...
Top