Search results

  1. I

    How do i create a HOLD-in button function?

    Nope, that idea is not mine!
  2. I

    How do i create a HOLD-in button function?

    I wrote the following program several years ago as an exercise to demonstrate what can be done with a single momentary switch, three LEDs and a piezo sounder. The originally hardware was the AXE092 Schools Experimenter board made by RevEd. I believe the AXE092 kit has been discontinued but the...
  3. I

    28X2 turning off PWM when using pwmout and hpwm and invoking an interrupt with hintsetup and setintflags

    I successfully used all 4 available PWM modules on a 28X2 in a project back in 2020. The related code is as follows: Symbol oRedLED = B.0 '21 PWM Out to Red LED *** *** *** *** Red PWM *** *** Symbol oWhiteLED = B.5 '26 PWM Out to White LED *** ***...
  4. I

    Parallel Tasks

    100mS proved to be adequate for this application. In practice, it was difficult for the touch to be less than 100mS I checked the code file - it was actually a 28X2 running at 8MHz, with Timer interrupts every 100mS. The client originally supplied a 20M2 but it was unsuitable due to its...
  5. I

    Parallel Tasks

    I have used a 20M2's 28X2's Touch or Touch16 feature (this characteristic I describe below is probably typical of all PIC and PICAXE chips) for a project that had 9 touch inputs, along with 9 outputs that were used to drive 9 LEDs. I found three unexpected characteristics during the project...
  6. I

    Windows 11 update

    Have to agree with you on that point. You'll never find me queuing for 72 hours outside an Apple store for the latest iPhone 27. Nor, for that matter, will I buy a newly released model of car. As for replacing Windows 10 - I still have to run Windows XP under Oracle's VirtualBox for one...
  7. I

    Using motor with 014M and Darlington driver buffer chip

    "It works fine with LEDs." Do you mean when you download code to the 14M2 on the AXE004 board, it works when it is wired to some LEDs? It will help members if you tell us what the error message is. Otherwise, we'll just be guessing.
  8. I

    8 bit binary output from 14M2 - a binary timer??

    As mentioned previously, the "dirsB" and "dirsC" could be moved to the line just before the "sense:" label, since it only needs to execute once, at start up. For clarity "symbol out = b0", being a definition and non-executable, is best moved to just before the "setfreq m32" line.
  9. I

    Simple program problem

    A couple of optional code simplifications Do and Loop commands can be used instead of GoTo <label> Two or more outputs can be listed after the High and Low commands. #picaxe 08m2 Do if pin3 = 1 then low 0, 4: high 1, 2 else low 1, 2: high 0, 4 ' does all this if pin3 is...
  10. I

    Millivolt level spikes when toggling an output pin

    I second Buzby's message. Microcontrollers (and relays, even with protection diodes) create a lot of electrical noise on their supply lines, which can be harmful is not absorbed by capacitor/s. Refer to Manual 1 "Getting Started", from page 26 onwards - capacitors around the voltage regulator...
  11. I

    Where do I need to download PE6 from ?

    There's no way in a fit that Rev-Ed will include ASM or C. Either would expose their proprietary firmware.
  12. I

    Introductions First.

    I remember your too-neat-for-words breadboard designs all too well. Noone could match your projects!
  13. I

    Has anybody got a Picaxe to read/write serial RAM using SDI or SQI mode ?

    I often wonder how I used to find time to go to work ;) . (Now semi-retired).
  14. I

    Interesting stereo audio volume control, easy interface to Picaxe

    I think hSPI would be fine for controlling the PGA2311. I built a 5+1 home theatre controller 17 years ago. I used a 40X2 (with a 14M2 as a dedicated IR receiver/controller). While I didn't use the PGA2311 for volume control, I did use hSPI to control the 6 channel volume. I don't recommend...
  15. I

    Has anybody got a Picaxe to read/write serial RAM using SDI or SQI mode ?

    If these devices require "full duplex" SPI, then you're out of luck. By "full duplex", I mean sending and receiving data in the same command. I've tried all sorts of direct SFR manipulation to no avail.
  16. I

    Verification error

    Very tidy!
  17. I

    Verification error

    Also check the supply voltage to the chip. Does it fluctuate when you attempt a download?
  18. I

    Reset button

    You've left us guessing but I assume you're referring to a 28X2 or 40X2. Yes, a pull-up resistor is necessary on the reset pin. It can be located under the chip if you're using a socket for the PICAXE. Alternatively, it can be surface mounted on the reverse side of the circuit board - it need...
  19. I

    Clear screen cls

    You could put some code that does what you want in a macro called CLS and then use CLS in your program.
Top