Search results

  1. M

    Interrupt code legitimacy question?

    Hi! Wacky though it may sound, is it 'legitimate' to have an 'interrupt' enabled and used from within an interrupt routine? Or does it 'upset' the picaxe? Thanks Mik
  2. M

    Underclocking a 28X2 - is this correct?

    (Yes - I have done a search for 'underclocking' :-) Help appreciated as I am very new to all this.... I am trying to 'underclock' a 28X2, just before 'sleep' and 'back to normal' i.e. 8Mhz internal immediately after 'sleep Is the following code correct for a 28X2? pokesfr $D3,%00000000 ' =...
  3. M

    AxePad 0.1.4 for Mac - Double Printing

    Hi! I am using Axepad 0.1.4 for the Mac on latest Leopard Every time I print some code, it gives me two versions, one plain one (which I want) and then another copy of the same code with a grey border on each page. How do I turn off this second version. (I have tried using the standard mac...
  4. M

    'Sleep' current consumption too high....

    Help! I am in a panic. I have a project that, when in 'sleep' mode, it MUST use very low current e.g. a few uA (without underclocking). What am i doing wrong? The lowest current that I am getting in the 'sleep' loop is 640uA Here is my 'hardware' setup: I have a 28X2 (3volt version) running...
  5. M

    Two basic picaxe 28X2(3v) questions....

    Hi! Be grateful for assistance I am using a 28X2 (3 volt version) Question-1 The 'picaxe x2 product briefing' document, refers to 'the internal resonator' (P3). Is this internal resonator (I assume that it is a proper one?) as accurate as an external one? or would an external one give me...
  6. M

    How to detect how long a button is pressed...

    Newbie help needed to get me started..... I need to see how long a pushbutton is pressed and carry out a different action depending upon the timing. If a pushbutton is held down for under a second, I want to goto address1 If the pushbutton is held down for more than two seconds, to goto...
  7. M

    Hibernate Equivalent for the 28X2

    Hi! I have just upgraded from the 28X1 to the 28X2 for a project. However I see that I have lost the 'Hibernate' command which I was using with the 'manual wakeup' switch circuit on P65 I would be grateful for some newbie 'guidance'/code snippet that I can use instead of this. Thanks Mikler
  8. M

    Newbie Help with 28X2 and a clock....

    Hi! Some newbie help/guidance appreciated.... I have created a circuit that controls 15 leds using available outputs and also uses ADC0 as a hibernate control (using the circuit on P65) My question is, is it possible to run a timer (resolution in seconds would be fine) that runs...
  9. M

    28X2 - 3V version - Which PIC? What Current?

    Hi! 1. Could someone please advise which Microchip PIC is used for the LOW VOLTAGE version of the 28X2, so that I can have a look at the data sheet? 2. Can anyone advise what the current output capabilities are? Thanks as always Mik
  10. M

    Interrupt 'returning' to another part of code

    Hi! My understanding is that when an interrupt routine has finished, it will return to where it was up to in the code when the interrupt happenned. My problem is that if an interrupt has occured and the interrupt routine has happened, I want it to go elsewhere, typically to start at the...
  11. M

    Passing a variable to a gosub...?

    Newbie advise please.... How do I define and then send a variable to a gosub that typically "variable" would be 'portc 2' or 'out 2' etc An example of my gosub: ramp_up: for b0 = 1 to 100 low "variable" pauseus 100 high "variable" next b0 Return
  12. M

    *Hibernate and the correct way to drive LEDs.

    Hi! Some beginners help please. My project basically lights LEDS. I want to have a switch that when pressed, it hibernates. When pressed again, it 'wakes up'. In the manual (P57) for 'Hibernate', regarding best low power consumption, it advises: "ensure that no outputs are being actively...
  13. M

    Adjusting brightness of LEDs on all 28X1 outputs

    Help for a Newbie, please. I am using all possible pins of a 28X1 as output pins, directly driving LEDs. Can anyone suggest a snippet of code that I can use to be able to selectively adjust the brightness of the various LEDs. I assume that I can't use PWM as this is not available on all the...
  14. M

    Can ADC pins handle interrupts?

    Hi! (I am using a 28X1) Forgive a newbie question. In order to monitor a push-button switch, I have the interrupt function working fine on 'In 0' (physical pin 11) on the 28X1. However, I would dearly love to have one more output. Therefore, rather than use 'In 0' for the interrupt, is there...
  15. M

    'Idiots Guide' to portc...

    Hi! I am using a 28X1. Forgive me if it is in the manual, but I must be misunderstanding. I use 'let dirsC=%11111100' to set c6 and c7 as an output I had assumed that they would behave like the 'standard' outputs. However, with the following code (I am driving two LEDs) low portc 6 pause...
  16. M

    Minimum Voltage of Picaxe 28x1

    Hi! I would be grateful for newbie comments/help regarding the minimum, reliable, operating voltage of the 28X1. ONE: I have looked up the datasheet of the PIC16F886 which states 2v to 5.5v. I have seen elsewhere that one needs a minimum of 3 volts? Which is it really? TWO: Also, does...
  17. M

    Newbie help with battery voltage variation....

    Hi! I have put together a circuit that appears to work... but.... OK - I have a 14M that is using pwmout (at 4Khz) at varying duty cycles, across a 100K/220uf, to drive an LM3914 and a 10-bar LED unit. The unit needs to build up from zero to a full set of bars and then back to zero again every...
  18. M

    Newbie Questions re pwmout

    Help for a newbie please.... I am using a 14M ONE: I am trying to use pwmout to produce various precise frequencies around the 500hz range but the wizard says I can't produce a fequency below 3.9Khz - is there a workaround? or something I am missing? (I need to use pwmout as I need an accurate...
Top