Search results

  1. R

    Disappering Indents

    Happy new year! I am using PE6.0.8.8 and the following editor behavior is a bit annoying. having written the 'endif' , the cursor is located at the 'f': if b0=0 then b1=w3/10 endif Now, I continue writing by by pressing enter to start the next line, and suddenly 'endif' is no longer...
  2. R

    Nested macroes

    In a program written in PE6, this sequence : #IFDEF test sertxd(" %",msg,13,10) #ENDIF is often repeated, so I would like to put it in a macro. However, this doesn't work: #macro println(msg) #IFDEF test sertxd(" %",msg,13,10) #ENDIF #endmacro Is there a way to define such a macro in PE6?
  3. R

    Use of touch pins

    The following is from manual 2 (7.9.1 10/2013) p. 248 about the touch16 command: IMPORTANT - Never ‘directly touch’ a touch sensor (e.g. a piece of bare wire)! A touch sensor must be electrically isolated from the end user. I guess that is to prevent damage by electrostatic discharge...
  4. R

    Subs/macros for I2C displays

    A while ago I asked the forum about how to use these cheap ebay I2C displays (like Hitachi 1602), and I was made aware of work by Rick100 and Hippy. Based on their work, I made an #include file containing macros and subroutines implementing these display functions for ..M2 chips: ...
  5. R

    Subs/macros for I2C displays

    A while ago I asked the forum about how to use these cheap ebay I2C displays (like Hitachi 1602), and I was made aware of work by Rick100 and Hippy. Based on their work, I made an #include file containing macros and subroutines implementing these display functions for ..M2 chips: ...
  6. R

    New commands

    I have noticed that some new commands and directives have been introduced in PE6 (like pop, push, macro). However, these are not documented in the latest manual 2 (v. 7.9.1), and may be there are others.. Is there a list of commands and directives for PE6, not documented in the latest Manual 2 ?
  7. R

    I2C display

    Hi, I came across a 1602 display IIC / I2C serie lcd 1602 modul display for (for arduino) bought on ebay, but no documentation except adr 0x27. Anyone who has tried using something like that with picaxe? Is there a I2C standard for display commands and data?
  8. R

    Memory full ....

    I am using PE 6.0.8.0 to write a 08M2LE program, and now getting this msg:: line# 216, col# 12 Error: Memory full - 1 bytes over. I try to check line# 216, but no such thing, my program ends with line no 213 (the sim-file also). Kind of surprising, but ok, - so I remove one line (high c.0)...
  9. R

    Play tune,... ?

    Hi, Trying to use play-command on a 08M2, but became a little confused. Manual 2 says: PLAY pin, tune (all non-8 pin parts) PLAY pin, tune, LED_mask (M2 parts only) PLAY tune, LED_option (8 pin devices only) Using a 08M, alt. 3 obviously applies, and it works. Not so obvious with 08M2...
  10. R

    Documentation for macros and PE6..

    Hi! I am trying to familiarize myself with PE6, and I really look forward to using macros for writing subroutine calls with parameters. (much like examples I've seen in the forum). I have tried hard to search for documentation for #macros (like that they seem to need to be defined before they...
  11. R

    Problems with hwint1 on 20x2

    I am using PE 5.5.1 trying to obtain communication btw a 20x2 (vs.c.0) based "box" and a pc/windows application. My idea is to use the axe027 cable btw the two, and use serrxd and sertxd on the picaxe side. The pc-application (written in ROBOTbasic) is to be the master, and send commands...
  12. R

    08M2LE

    I know I've been across the 08M2LE somewhere, but long forgotten.. Just that it it a kind of 08M2 intended for educational use, but with some extra limitations. And as searching gave no answers, I have to ask here: what is it?
  13. R

    Command dependencies upon on-chip timers

    Hello, I am trying to use a 20X2 in a project which will involve lots of the many commands involving the 20X2's internal timers. Many of these commands might intefere with ea other ( different serial comms, count, pwms, play, servo, pulse , pause, timing, etc. ), and even if I have have...
  14. R

    PE Error, naming adc pins..

    In order to make my programs more readable, I like to assign names/symbols for variables and I/O ports/pins (20X2 and PE 5.5.0). So, Instead of: readadc10 C.7,w3 (which works fine as expected)) I tried this: symbol adpin = C.7 symbol advalue = w3 ….. readadc10 adpin,advalue But that...
  15. R

    Toggle bit vs inc bit

    Using an 8M (vs. 9.2, PE 5.4.3), I wanted to toggle one of the b0 flags. Inc bit0 worked as expected, but when I tried: toggle bit0 , toggle 0 was what happened, while nothing happened to bit0. (And same with bit1 and op1.) As I have not yet entered the xM2 world, I don't know it the same will...
  16. R

    Scratchpad and bintoascii in 20x2

    Hello, I am measureing an analogue voltage, and displaying the value in a 4 digit 7-seg LED display. My H/SW is a 20x2 vs. c.0, and PE vs. 5.3.0. A fairly straightforward task, but on my way, I have encountered a couple of 'strangeties' : 1. bintoascii on a wordvar using bptr (scratchpad...
  17. R

    More interruptions..

    In manual2 (vs. 6.09 06/2009), the description of the SETINTFLAGS on p. 184, states that this is a so-called "polled interrupt", and further on: "It is the only type of interrupt available in the PICAXE system." On the other hand, on p. 69 (Hintsetup for X2 chips) we find this:"The hardware...
  18. R

    Hserout in 20X2

    The hardware serout from the 20X2, with a breakpulse included, seemed to be handy for my 8M receiver. The 20X2 Hsetup is simple, and as an example, Hserout 1,("a") should send a breakpulse, immediately followed by the serial "a". This seems to be true when simulating, but my chip (firmware...
  19. R

    Lions roar from a PICAXE?

    I would like to do a kind of robot-project, i.e. "picaxify" some children's toys .. a teddybear, a fluffy lion and a monkey.. The main idea is to let a ldr and a vibration sensor trigger a few leds and a (small) speaker, producing "animal sounds". So far so good, but can picaxe chips be...
  20. R

    AXE130 - Lack of supply decoupling

    I have bought a number of AXE130 simple 8/8M battery powered boards for use in a school. However, I was quite surprised to discover that this board has been designed with no power supply decoupling. Now, ”picaxe-frequencies” (mainly < 10MHz) and currents are not very demanding, so ”everybody”...
Top