Search results

  1. C

    Harmonic series problem

    Hi guys Hope all is well, and glad to see Hippy back again these days! I'm using 5No 08M2's to generate sine waves in a harmonic series. E.g/ Pic 1 - f0 = 100Hz Pic 2 - f1 = 200Hz Pic 3 - f3 = 300Hz Pic 4 - f4 = 400Hz Pic 5 - f5 = 500Hz Have tried this in a 'do' loop: Do Readadc C.4, w1 PWMout...
  2. C

    20M2 - using an idle timer

    Hi guys I'm using a 20M2 with an external clock input, which then triggers an output pin to light a few LEDs. The clock is manually introduced to the circuit and so there might be long periods of time where I'd like the LED to remain off, when the clock isn't being used. I'd like this time...
  3. C

    Using 2 buttons in combinations

    Hi guys, hope you're all well If you have two buttons A and B connected to separate input pins, is there a logical way of achieving: While A is pressed and held (i.e pin A is high) then subsequent presses of B can act as one-shot inputs. While B is pressed and held then subsequent presses of A...
  4. C

    "Need for speed" - help needed optimising code

    Hi guys I've hit a speed wall in my program. I purchased a 40X2 with 16MHz resonator in the hope to include some extra code/features with an ongoing circular buffer program I've been working on to drive a home-made drum machine at the desired speed of 120bpm. A quick summary of the program's...
  5. C

    Quick way to peek/poke large amount of bytes? - 20M2

    Hi guys I'm using a 20M2 at present. Is there an efficient way to copy values from 128 RAM addresses into another 128 addresses? e.g copy addresses 32 through 159 into addresses 160 through 287? I get that it will work fine by using for example peek 32,b22 poke 160,b22 peek...
  6. C

    PE6 freezing

    Hi guys Running PE6 on Windows 10. I'm working on some code which works fine, but when I try to alter one of the sections it freezes during simulation. Here is the code #picaxe 20m2 #no_data main: symbol StepLen = b0 symbol Pulses = b1 symbol StepLenADC = b2 symbol PulsesADC =...
  7. C

    My first PICaxe attempt was a success!

    Hi guys Just managed to get a program working on a 20M2 PICaxe! I know it sounds strange but I was amazed that it worked :D It was a simple program to help with a couple of functions on my project, but it was good to actually see the process in full, from code to breadboard. #picaxe 20M2...
  8. C

    Defining the 'end' variable in a FOR command

    Hi I'd like to be able to wipe all of the RAM storage variables as part of my code for bptr = 32 to 128 @bptr = 0 next But let's say that in the rest of my code, there is no data stored after address 64. Then am I wasting 'time' by asking the program to keep...
  9. C

    Virtual Shift Register

    Hi everyone This is my first post. I'm new to programming, my background is diy electronics, and my latest project uses 8No shift registers to make a 64-step 'loop'. The data is input at the first step and gets fed back into the register from another of the steps (which therefore sets the...
Top