Recent content by Peter Goldsbury

  1. P

    28X2 Latch Operation - any advise please

    We have used the internal latch in an 18M2 with the SRI input paralleled (B.0) with the C.4 serial in port. This means that a f9 Datalink run character sent is captured as SRQ even if the picaxe is napping ( as this is a very low power field data logging application running off solar)...
  2. P

    SERTXD questions with 18m2 version 2B at 8 Mhz to give 9600 baud rate for F9 Datalink

    I have had perfect operation with code A below outputing CSV files to datalink F9. As soon as I addded code B ahead of it (outputing a station name label from PICAXE eeprom) I find the output of code B transmits OK but that from Code A becomes unpredictable missing a variable amount of...
  3. P

    Running Program Editor on Samsung Gallaxy TaB2?

    Has anyone run the Programming editor software on a Samsung tablet or similar or will this be provided as a downloadable application sometime. The Samsung tablet has a USB port into which the AXE 027 cable plugs. I downloaded the editor as normal but could not run it on Samsung. I am not...
  4. P

    Tune command - can default to 4 MHz be diasbled to give more octaves 16Hz = 15.8 kHz

    Is there a way in which the default that the tune command has that sets it to 4 Mhz (irrespective of setfreq) can be disabled. If so then it seems that M2 chips might be able to generate audio tones from 16.3 Hz (@ 0.5 MHz clock), to 15.8 Khz (at 32 MHz clock). That would open up a lot of...
  5. P

    31 biits by 15 bits division could this be added to the Picaxe Manual please

    Can I suggest that you please put at least a link in the Picaxe manual Variables-Maths under Multiplication and Division to the great post below by Alleycat. As a compliment to the picaxe 32 bit multiply functions * and ** it opens the gate to more effective, accurate and easy processing of...
  6. P

    Dividing a 32 bit number by a 16 bit one???

    I have a tipping bucket ranguage and need to convert tips to rain in mm . Here is the start of my code:: ; Now calibrate the rain pulses from tipping bucket and converts them to cumulative rain mm x 0.1 ; each tip is around 6.25 cc and we get around 160 pulses per litre so pulses...
  7. P

    18M2 touch input temperature sensitivity

    Has anyone else found that the touch imput levels vary massively with temperature? Here are are the results of some tests today on input B.6 7.6 degrees C open 6642 touched 6784 13.5 degrees C open 6761 touched 6889 19.7 degreesC open 9444 touched...
  8. P

    18M2 calibadc ( and maybe also readADC?) seems unreliable and 32 Mhz clock

    The following code seems to work OK at M16 or below, but for M32 it gets erratic. ( It should return around 5.5 volts but most often fails giving a pretty fixed reading of 3.2 independent largely of the actual battery voltage level). Logging over time suggests that there may be a...
  9. P

    visible spectrum analyser - a question about 18m2 analogue inputs when open circuit

    srmet: Thanks again for the suggestions to try. If its about capacitor charging perhaps I can try to reduce the impedence by buffering each input with a capacitor hippy: the LEDS are connected directly across the input with the long leg to 0v attached is a (typical) LED freq response...
  10. P

    visible spectrum analyser - a question about 18m2 analogue inputs when open circuit

    For a school research project involving radiation absorbition , reflection and transmittance in leaves,we are trying to construct a simple visible spectrum analyser using 5 coloured LEDs and an IR LED in reverse connected to 18m2 analogue inputs. We need high input impedence on the inputs to...
  11. P

    18m2 - linternal lockup on write /read commands and more - any advice please.

    I have implemented a 65 k byte Fifo using two external i2c EEproms for a 18M2 (2B version) data logger that uses that F9 datalink function to dump data it has collected via its datastore routine. The pointers for this are held in 18m2 program memory. It seems that there may be an internal...
  12. P

    18M2 calibadc interaction with port C.7 ???

    I have had a situation where I have done a High or Low C.7 expecting it to remain at that state, as an output, but found that after following that with a calidadc C.7 it is reset to the input direction. I got around that by followng calibadc with another Low C.7. Am I reading the situation...
  13. P

    18M2 reseting when serial cable unpluged

    For our Data Logger we are using the standard programing editor connection using the 3.5mm stereo socket (22k /10k level shifter) and 9 pin D type connector to my desk PC. We want to plug a laptop and use Datalink (F9) to extract data, but when inserting or removing the stereo plug the...
  14. P

    18M2 restarting randomly

    I have an 18M2 working hard doing a number of normally quite short real time environmental sensing / processing and transmission tasks (all in a single loop ) and when it gets to the end it increments a 16 bit loopcounter then naps 4 with brownout disabled to save (solar) power before...
  15. P

    18m2 i2c limit with DS1307 RTC at 32MHz

    I pulled my hairout for a day yesterday until I at last found that when trying to read from the RTC chip, I got a failure (return of 255) on the higher bytes if running the 18M2 at 32 Mhz. Dropping it to 16MHz seemed to work OK. If this a limit just with the RTC chip or is it a chartacteristic...
Top