Recent content by johndk

  1. J

    Picaxe Basic to C++

    Here's a question for the more seasoned PicAxers: Assuming a good working knowledge of C++, how difficult is it to convert a program from PicAxe Basic? I'm thinking of doing this for a number of reasons, some of which are assumptions on my part because I have not yet tried to program a naked...
  2. J

    Need advice on setintflags

    I'm running a large program on 28x2 which uses up all four slots. I've got an active hardware interrupt in slot 0 which works fine, getting reset each time I return from another slot. However, I'm trying to implement an interrupt based on the timer in slot 3. The code compiles fine, and runs...
  3. J

    sleepus interruptus

    Okay, I'm confused with interrupt causing a wake from deep sleep. Maybe there's someone out there who knows about kissing the (sleeping) princess? I'm running a 28x2 and wanting to put it into deep sleep (sleep 0) until my RTC says it's time to do your thing. I've found setting up interrupts...
  4. J

    i2c MULTI-MASTER MODE

    I read back in some '11 and '12 posts that PicAxe does not support multi master mode on the i2c bus. Is that still the case? I'm specifically interested in the 28x2 version. If that is still the case, which I suspect it is, has anyone come up with a clever work-around. I need to have my...
  5. J

    Cypress FRAM

    Hi All, I'm experimenting with the Cypress FM24CL04B FRAM chip. It's got a lot to offer, especially in speed and low power signature. I thought it was a drop-in replacement for the 24LCxxx and although pin-wise it is, program-wise, there's a difference. It has to do with the i2c read. It...
  6. J

    hserin to program?

    Is there a way to use hserin to program the picaxe, thus eliminating the download cable? I have 433MHz radios currently communicating over this interface. It would be really nice if I could update chip programming via this connection. I envision a radio interface on my computer initially...
  7. J

    Don't understand problem with setint

    I've been trying to set up a simple interrupt to toggle my display on and off. I'm running a 28x2 and set up the following code to initialize the interrupt. The interrupt should be generated by a button push which will drive the appropriate pins (B.0 and B.1) to logic 1. Although A.3 is in...
  8. J

    slots and hserptr

    I'm managing a large program which spans multiple slots on my 28x2. It seems that when I use background receive mode (i.e. hsersetup B14400_8, %00111) the hserptr gets corrupted when I switch between slots. The code works fine and the pointer is accurate when I don't switch. And the routines...
  9. J

    OpenLog reading a params file

    I've been using OpenLog to capture data for later analysis. It works great, especially when you create csv files that import nicely into Excel. However, I would like to be able to read some parameters from a params.txt file to set some of the conditions of the programs I'm running. I'm having...
  10. J

    Timing hserin input - ideas?

    I'm running a time sensitive loop on a 28x2. I'm using a pair of radios to communicate via hserin/out and have just two seconds to exchange information. The incoming information to the "base station" is of indeterminate length, generally multiples of 56 bytes but not always. I'm trying to...
  11. J

    Simulator problem - compiler too?

    I'm playing with a new (for me) RTC chip. PCF85263A. It has some nice features, but mostly I need a 3v i2c RTC. The slave address for this chip is %10100010 (A2h) which is where the problem comes in. The 24LC series of eeproms has a long established slave address of %10100000 (A0h). The RTC...
  12. J

    Download circuit

    I recently build two different PCB circuits each using a 28x2. I'd been doing some testing on the first when it was time to fire up the second. To my surprise, I received the typical "Hello" from the second unit, but could not program it. Checked, and checked, and checked again and couldn't...
  13. J

    Low power nap needed

    Attached is the full code for the remote radio unit. Proper communication has been confirmed when interrupt is not implemented. To generate the interrupt, I have hserin directly connected to int0.
  14. J

    Low power nap needed

    I tried searching the forum for 'nap' and came up empty. I suppose it's not much used. 'Nap' is not implemented on an x2 and so I'm looking for an alternative which will take me to ultra-low power for a period of one second, wake up to take some readings, and then back to sleep. This will be...
  15. J

    hi2c "blows up" (i2c comms fails at a point)

    I have a rather large program (3631 bytes) which has a master 28x2 communicating with several i2c slaves, one of which is another 28x2. I pull data from an external eeprom, send text to an OLED, and get timing from an RTC. All works well until I get to a certain part of the code. Then the...
Top