Search results

  1. D

    Need understanding of brown out detector in 28X2

    Hello all, I started looking into connecting a GPS to a 28X2. As the GPS works better outside, I took my circuit outside and even powered it with a small solar panel. While I had it outside, on several occasions I would return to it and find the indicator LED on the GPS indicating that it...
  2. D

    Using slots, what must be re-declaired?

    Hello all, I am writing a program that is large enough to require using another SLOT. In the SLOT0 program I use SETTIMER to produce a 1/100 second timer. Anytime the program runs SLOT1 then goes back to SLOT0 it looks like TIMER defaults to a 1 second timer. If I use the SETTIMER command to set...
  3. D

    "no-table directive cannot be used...."?

    I received this message when I tried to program a 28X2 (B.3), editor 5.5.0: "#no_table directive cannot be used when that memory area is used by program!" I have used 3879 bytes in slot 0 of this program. I don't understand why I get this error when I am NOT using a data table. Is the NO_TABLE...
  4. D

    Another internal clock accuracy question

    Hello everyone, The quick question is: Is the internal clock of a PICAXE 28X2 B.3 (using 4MHz external resonator for 16MHz running freq) that is used for the TIMER command the same clock used for PWM output? I am using an inductive sensor to see 2 pieces of metal that are attached to a belt a...
  5. D

    Using SEROUT changes TIME count?

    Hello All, I was using an 08M2 for a project that required a lot of SEROUT info being sent to an LCD. I noticed that when using the TIME command that each second was a bit long. Checking it with a stop watch showed that a 5 second TIME count took almost 7 seconds. My question: Does using the...
  6. D

    Using TIME=0 does not reset internal timer to zero (08M2)

    Hello all, I have been trying to program an 08M2 (4.A) to wait an interval of time then do a task. During my testing, I noticed that if I reset the TIME variable to zero (TIME=0), the first one second interval varies. It is always less than a second and the interval varies. I use a "DO WHILE...
  7. D

    Is there a Time / Servo conflict with M2s?

    Hello all, I know that there is a conflict with using the TIMER and SERVO commands in the same program with X1 and X2 chips. Is there a similar conflict with using the TIME variable and the SERVO command with the M2 chips? The manual does not mention one in the enabletimer section but I thought...
  8. D

    Does HPWM DIV work on 20X2?

    I am trying to use HPWM DIV4, DIV16 and DIV64 with a 20X2 (c.1) and get an "unknown symbol - DIV4" error. I am using PE 5.5.0. Anyone know of issues with this? My code is: HPWM DIV4, 0, 0, %1001, 255, 0 Dave E
  9. D

    Touch output pin with finger and program cycles faster? Servo/PING issue.

    Hi all, I have been out of the programming loop (pun intended) for about a year but am back and I am rebuilding a robotic car that decided to launch itself down a flight of stairs. Dumb robots. What I have so far is a 20X2(C.1) running 2 servos, 2 PING sensors, 2 LEDs and a LCD. Have not...
  10. D

    How many I/O per chip?

    I was updating my Picaxe quick reference chart for the M2 chips when I noticed that I was only able to count 16 I/O pins on the 20M2 instead of the 18 listed on the web site. Can the serial IN and OUT pins be used for an input only and output only pin like the other M2 chips? This got me to...
  11. D

    M2 Memory types and amounts

    I am trying to get an idea of what types of memories the M2 chips have and how many bytes of each there are but am having a bit of a problem doing that. The 8 page M2 product breifing was a bit confusing to me on this subject as well as pages 153 (peek) and 157 (poke) of manual 2 version 7.7 and...
  12. D

    Does Pwmdiv64 Work On All Chips?

    Does the PWMDIV64 command work on all Picaxe chips? I can not find that info in the latest EDITOR REVISION text file. I am running 5.3.1 and when I check syntax on an 08M or 20X2 I get "PWMDIV64 COMMAND NOT SUPPORTED" or something to that affect. Manual 2 v.7 shows that it should work with...
  13. D

    Schmitt Trigger inputs for 18M2?

    Does anyone know where I can get info on which 18M2 input pins, if any, are schmitt trigger type? I have looked on the Rev-Ed site but have not found any tech data except the several page long PDF info sheet. Also searched Microchip site for 18M2 but found nothing. Thanks, Dave E
  14. D

    18M2 / setfreq issue?

    Just received my first 18M2 chips! :p Got a robotic car just waiting for it's new brain to arrive. One of the new commands I have been wanting to look at is the PWMDIV64 command, so I set the chip up with an oscilloscope and started looking at all of the posible combinations of SETFREQ and...
  15. D

    20M program stops after 1 pass thru loop

    I needed a Picaxe to check battery voltages and I had a couple of 20M chips around so I used them. I wanted to check to see at what voltage NiMH batteries were at the end of their charge. I needed the picaxe to turn on loads, wait for the batteries to drain then turn off the loads. When I got up...
  16. D

    Is "ERROR" a reserved word?

    Is the word ERROR a reserved word? I did not see it in the list of reserved words in manual 2 . When using the word as a variable, the PE displays it in a blue/grey color like that used for commands and not purple used for variables. A syntax check shows all is well. Dave E
  17. D

    Taking PWMDIV a step further? More of a good thing.

    Now that we have PWMDIV4 and PWMDIV16 the question must be asked.... Is there a way to get a PWMDIV 32 or 64 by POKING a SFR? I know I can reduce the chip frequency but that can complicate matters sometimes. I have now converted my several solar battery chargers to PWMDIV16 and brought the...
  18. D

    Continuous rotation servo jerks every 2 seconds- 20X2

    Hello all, I am experimenting with a continuous rotation servo and noticed that when running it at slow speed, 150 +- 10, I notice a jerk about every 2 seconds. My 'scope shows what looks like a longer pulse every 2 seconds but I am not able to actually capture the odd pulse. My code is: SERVO...
  19. D

    Where is "hpwm motor driver datasheet"?

    I am looking for the "hpwm motor driver datasheet" mentioned in manual 2 but did not see it in the datasheet menu on the REV-ED site. Did I overlook it? Dave E
  20. D

    Adcsetup With 28x2

    Hello all, I seem to be having a problem with a 28X2 (5 volt version, B.0 firmware) and analog inputs. I have tried this with 2 different chips but don't seem to get what I think I should get. I have a simple program that reads ADC0(leg2) of the 28X2 and display it on an LCD. I use: INPUT A.0...
Top