Recent content by hippy

  1. hippy

    To poll RTC or not to poll RTC

    Before optimising it's probably worth considering where the most code is used. The following code, though untested, should handle the timing, the turning on and turning off of outputs, and handles setting outputs correctly no matter when the PICAXE loses power or gets it back again. This does...
  2. hippy

    Loop For Zero Times

    No. The FOR part simple becomes a LET, sets the initial variable value, will execute the code within the FOR-NEXT, and only at the NEXT will it decide if it's going to repeat or not. Thus a FOR-NEXT will always execute at least once. But you can make it have no effect by placing an IF-ENDIF...
  3. hippy

    To poll RTC or not to poll RTC

    Code optimisation is always a challenge. Some is easy some is hard. Most times there is some low-hanging fruit which can save enough to not make further optimisation necessary. For example, the SET_PORT and CLEAR_PORT routines can be optimised reduce the 174 bytes they currently use to just 30 -...
  4. hippy

    AXE401 Out of stock. Is this a temporary situation ?

    I would guess that, as it's a kit with so few parts to solder, none of them difficult to solder, and probably going to people who already have some soldering skills, self-assembly is seen as a cost effective way to save money.
  5. hippy

    AXE027 drivers

    This is what's so really odd with Windows at times. It seemingly borked itself on FTDIBUS.SYS, but then was fine, even though there was still another FTDIBUS.SYS there, and was perfectly happy even when the other was reinstalled. That suggests to me Windows is somehow 'getting its knickers in a...
  6. hippy

    To poll RTC or not to poll RTC

    If you are happy to post your code I am sure people will take a look at it to see if there are any clever but understandable tricks which can be applied to make it smaller.
  7. hippy

    To poll RTC or not to poll RTC

    You are probably right. But the important thing is how much wearing out it actually causes and how much of a reduction on life expectancy it has. Most devices have some notional 'many decades' lifetime and any reduction would probably be minuscule in comparison so it usually gets discounted...
  8. hippy

    To poll RTC or not to poll RTC

    Electronic devices should allow infinite and continual reads. And if not there should be a big warning in the datasheet. The most common reason for not allowing continual reading is where a chip does something like take a temperature reading and it needs time to take the reading, determine and...
  9. hippy

    hspiin and Bisync

    It certainly seems possible, in fact I'm sure I even used synchronous mode once but cannot find any details on doing that. From what I can recall it was over a decade ago using an 18X. If one doesn't use any PICAXE commands which touch the on-chip hardware one can usually use that hardware...
  10. hippy

    hspiin and Bisync

    That does look like it's the best option. What I would be tempted to have is a two PICAXE solution. The SCN2651 interfacing PICAXE which just grabs bytes received and sends them out using HSEROUT. That gives a main PICAXE, using background receive, plenty of time to handle what it receives with...
  11. hippy

    Hardware not found!

    You're going to struggle to convince anyone that has happened and it's not something else. A PC mysteriously changing its hardware configuration, changing its 0V to be somewhere else would be unheard off. How long ago was this cable last used and was working ? Are you entirely sure it's the...
  12. hippy

    Hardware not found!

    It is hard to imagine that the computer somehow switched over signals which would normally be hard-wired and impossible to change. I would strongly suspect it's something else. Which is very odd, because all the 9-way COM port connectors on the back of all my PC's are 9-way male. One would...
  13. hippy

    hspiin and Bisync

    There wouldn't be a conflict if the hardware were set up right. It's just that you couldn't use SPIIN / HSPIIN to achieve that. I must admit I am not at all familiar with bisync, and nothing I've looked at seems to say exactly who generates the clock. It's described as synchronous, but it's not...
  14. hippy

    hspiin and Bisync

    The PICAXE is always an SPI master, which means it generates the clock pulses, even when receiving. I am guessing the bisync device sends data and clock when it's transmitting. It does appear that the on-chip hardware would accept being clocked externally but you would likely need to use...
  15. hippy

    Hardware not found!

    Device Manager cannot actually determine that data sent into the port will get into the PC. Device Manager effectively checks if there's a telephone present on the desk. It doesn't check if it can actually receive any calls.
Top