Search results

  1. M

    Recursion

    If I was to be pedantic (which I am) I would say the following was a truer example of recursion ... loop1: b = 10 gosub recurse gosub flash goto loop1 flash: ' Do something flashy return recurse: b = b - 1 if (b > 0) then...
  2. M

    memory full error

    The code DOES work correctly in simulation mode; the problem is that your logic is incorrect. Imagine that you are at the first loop, and the execution reaches this statement ... button1: if pinC.2 = 1 then goto button2 If C2 is high then the code execution will jump to this statement ...
  3. M

    Ciseco ERF module - data sheet

    Thanks Jack - that is a lot more than I ever expected to find. I had tried a lot of Googling, as I had thought, without finding anything much at all. Now I am overwhelmed!
  4. M

    Ciseco ERF module - data sheet

    Thanks @hippy for your quick response. One of the modules has a yellow antenna, but it also has an inked cross on the main module so maybe that one has bitten the dust. They are all in an anti-static bag marked Ciseco Ltd so I am pretty sure that the others came directly from Ciseco. It is...
  5. M

    Ciseco ERF module - data sheet

    Digging through my bits box the other day I found three Ciseco R003 ERF modules. Two of the modules are exactly like the one shown in this post. I think that I bought them just before Ciseco closed down but didn't have an immediate use for them. I would like to use them now, but cannot find any...
  6. M

    Can someone check my code?

    You don't really explain what you mean by this. By the way, it is better if you put code extracts inside "code tags" ... start2: do if pinC.1 = 0 then ; reserve tank low high F_R_LED ; turn on flashing red LED reserve tank low sound 0, (105,50) ; warning sounds through the piezo speaker sound...
  7. M

    Estimating processing capacity

    Yes - that is similar to my situation, except that my interrupts occur around once a second, and are quickly serviced, and it is the main processing loop that needs to maintain a 4msec responsiveness. But none of this is going to approach 80 lines of code so that makes me fell pretty confident...
  8. M

    Estimating processing capacity

    Thanks inglewoodpete - that is the sort of answer that I was looking for. I am using a 20X2, and using timer3 to avoid using Pause. The circuit seems to be working well on the test bench but I don't have the experience to get a feel for the margins. I don't want to add more hardware because I...
  9. M

    Estimating processing capacity

    I am trying to measure the elapsed time between two events, in the region of 20 to 30 minutes apart, to a roughly 1msec precision. I have a clock crystal oscillator (32768kHz) and a 7-stage binary divider delivering clock pulses to a 20X2 at nominally 4msec intervals and I am counting the pulses...
  10. M

    Opening PE6 Full Screen

    Yes - I am set as administrator, although I did not see the pop-up warning that usually shows up.
  11. M

    Opening PE6 Full Screen

    Hi @benbaker7. Thanks for the response, but this didn't work for me. I get full screen whatever shortcut setting I use. But now I know that it is possible to change I will poke around a little more.
  12. M

    Opening PE6 Full Screen

    It is unfortunate that you did not say what the fix was - it might have helped me solve my problem. I have the opposite question - "How do you not open PE6 in full-screen mode?"
  13. M

    Understanding 20X2 interrupts

    Just a footnote ... There was one thing niggling me about this thread : "Why hadn't @hippy fixed it?". Then I carefully reread his second post and discovered that he had. I had copied and pasted his code into the PICaxe editor to test it, but I rewrote the main loop because that was "Just for...
  14. M

    Understanding 20X2 interrupts

    Yes @marks - that is it! An RTFM error on my part. I had seen those prefixes but mentally dismissed them as being "advanced usage" that didn't apply to me, and skipped over them. All is well now, and some other things learned along the way.
  15. M

    Understanding 20X2 interrupts

    Thanks for your help. I have modified the "main" loop as suggested by Busby and am now checking flags rather than pins as suggested by InglewoodPete. This produces virtually the code suggested by Hippy. The AXE091 board provides positive pulses from the push buttons and requires only four jumper...
  16. M

    Understanding 20X2 interrupts

    I quickly tried Inglewood Pete's and Buzby's suggestions - an improvement but not a solution. Then I thought "What about contact bounce. Am I checking the button states too soon after the interrupt?" So I put in a "pause 100", but no change. Don't have time now to try anything else. Back later.
  17. M

    Understanding 20X2 interrupts

    I have spent the evening trying to understand interrupts on the 20X2. I am using an AXE091 Development Board with the following code : ' 20X2 interrupt testbed #terminal 9600 #picaxe 20X2 #no_table #no_data symbol LED1 = B.3...
  18. M

    Receiving variable length serial data

    Thanks, everyone, for your suggestions. As you might suppose, this project is as much about me learning by doing as anything else. I have done a fair bit of programming in my time but I have always used quite helpful IDEs (which the PICaxe Editor is not) and have mainly been manipulating data...
  19. M

    Receiving variable length serial data

    Actually using hserout was a second string when my first attempts all failed. I had started with exactly the code that you show. I have just tried it again, still with no success. Here is the code that I am using now ... data_received: pause 2000 '...
  20. M

    Receiving variable length serial data

    Okay - I had been working on this before I read the last three posts, so bear that in mind. I am back on the original quest of this thread, and using an 20X2. I have no problem receiving data - I have checked that I am receiving what I am sending (not shown in the code below). I would like help...
Top