Search results

  1. P

    ADC Channel Numbers

    input 8,9,1,2,4,5,6,7 main: for b0 = 0 to 7 lookup b0,(8, 9, 1, 2, 4, 5, 6, 7),b8 readadc b8, b7 if b8 = value do something..... next b0 I have used this type of program to read list of analog inputs. The manual say readadc channel, variable.? What are channel numbers...?? The numbers I...
  2. P

    Parallel Tasks

    This is example from manual on Parallel tasking...... It has 2 tasks, flash a led to show system is on and then if it goes into alarm when the input is high, but it stays in alarm loop and doesn't reset when input is low. start0: pause 5000 high B.1 pause 500 low B.1 goto...
  3. P

    PWMOUT on 18M2 with 50 percent duty

    I am trying to program pwmout on an 18M2+ using ...... PWMOUT PWMDIV64, pin, period, duty_cycles Period has to be integer 0 to 255 and duty_cycles has to be an integer 0 to 1024 and it turns out that if the duty_cycles integer value is always kept twice the period integer value it will always...
  4. P

    08M2+ not found

    removed text......problem was faulty chip...... Actually resetting the chip sorted the problem.......click program first then switch on power to chip ......sorted
  5. P

    Low Freq PWM and Interrupts

    I was trying to generate a low freq. square wave about 100 Hz with 18M2+ running at 16MHz but PWM only goes down to 244 Hz. So tried to use Interrupts to trigger on rising edge of the PWM and toggle output B.0. This works quite well providing very little code or delay in the main loop. Even...
  6. P

    Touch and Touch16

    I can get both touch and touch16 to work, eg I can sertxt out the of the variable giving its value. I am using 8 off 8mm dia pads and wire of about 300mm out to them. It is only a test case at this stage so I covered the pads with 1 layer of sellotape. I works but dont get much difference...
  7. P

    Midi control codes 18x

    I have been trying sending midi from 18x to a Sparkfun VS1103 breakout board. I started using Hippys midiuart.txt prog and all appeared to work Ok. Midiuart actually plays a tune in a loop going through all the midi sounds. Waht I want to do is switch on 18x then send program change to setup a...
  8. P

    SOMO-14D and Picaxe

    I bought a SOMO-14D about 6 weeks ago and it worked for about 5 minutes in pushbutton mode and then would not do anything. I just thought I had "blown it" somehow ???? and had almost given up when I noticed that users on this forum were also having problems. Power supplies, SD cards, etc etc...
  9. P

    simulator output 2 Picaxe18X

    high 6 for b0 = 10 to 200 step 4 high 7 next b0 This is a snipit from an Picaxe 18X program. When I run the Simulator in the editor as I pass the "For b0 10 to 200 " line output 2 on the simulator goes "High" bright green. I was wondering why, Is it a bug. I have even run...
  10. P

    parallel flash memory DIP32

    I was wanting to use a parallel flash memory chip with the picaxe 18X output pins connected to the address of the memory and be able to read the parallel output data directly from the memory data pins. eg. If I had the letters of the alphabet stored in the memory at the first 26 locations as 8...
  11. P

    Was Forum Down

    To see if this works ??? Was the forum down since Saturday or was it my PC. I can log on now but only see posts dated 25th Sat. ...............
  12. P

    SPI Basics

    I have PICAXE 18X and want to talk to a device using SPI 4 wire. I tried the spiin/spiout commands and gave me syntax error with this line. I then used the Shiftout_LSB routines in the manual, copied are they are in manual and PICAXE wired to suit but cannot get it to work. The prog downloads to...
  13. P

    Happy Hippy's Terminal

    Tried your terminal out and it works wonderfully well. I typed an few hundred codes (decimal, comma separated) in windows notepad, then copied this to clipboard, opened your terminal, clicked in bottom textbox, ctrl V to paste the codes ready to send. Clicked # to send as Hex and all the codes...
  14. P

    Program Editor Terminal

    I use a picaxe to talk to a device using the serial port, a typical command would be sertxd (27,88,64) This sends the decimal numbers 27 then 88 then 64 out the serial port. I can read this in Hex on a datascope in hex as 1B then 58 then 40. OK all works fine. This code is actually escape...
  15. P

    Picaxe Books and Manuals

    Has anyone read the green book Programming and Customising Picaxe Microcontroller as seen in the rev-ed shopping pages ?? Does it contain the same information as in CDs or Online manuals or is it additional or more detailed tehnical info etc.?? Is there any more books available on picaxe usage...
  16. P

    How do I stop sounds on demand

    Tune command Plays for duration of tune Play command plays for duration of tune Sounds play for duration multiples of 10ms If want them to play longer put command in loop. But how can I stop the sound without waiting until end of tune if I want it to stop immediately say an input pin changes...
Top