Recent content by reywas

  1. R

    Symbol assignment question

    Is there a way to assign more than one input to a symbol, something like "symbol SW1_SW2 = pinsC & $03" ? Currently my code is b0 = pinsC & $03
  2. R

    Good Hardware Design Practices

    I'm currently laying out my first real PCB (I've used perf-board for my projects up to this point) and I've been searching the forum (with little success) for information on good hardware design practices, specifically as it relates to PICAXE I/O pin protection. I'm sure this has been discussed...
  3. R

    User-adjustable parameters used in calculations

    I'm working on a subroutine to allow the user to step through several program parameters, adjust them, and store them to EEPROM. The initial default values will be written to EEPROM when compiled. All of these parameters are used in calculations within the program. The problem I have is a...
  4. R

    Streamlined LCD initialisation code, need some help

    Streamlined LCD initialization code, need some help Never mind, found the problem. Forgot to put the pulsout command in the loop. Doh! (I went ahead and posted the working code for future reference.) I've been using the long-form 4-bit LCD init code copied from the manual (as I recall) and...
  5. R

    Writing Variable Contents to Parallel LCD

    Here's my working code: LCD_write: ;write inch and fraction to LCD b1 = 1 ; set b1 to "clear display" instruction gosub wrins ' send instruction to LCD bintoascii inches,b3,b3,b2 ;inches range: 0-36 b1 = b3 gosub wrchr...
  6. R

    Absolute rotory encoder for linear measurement

    Hi all, First a little project background info (perhaps TMI?): I have undertaken a project to add a digital scale to my Wood-Mizer portable sawmill. Others have done this using DRO's (digital read-outs) but I want to go a different route because the DRO's invariably fail after just a few...
  7. R

    Reading port, effects on PWM?

    b9 = pinsC & 34 I am concerned that this line of code will momentarily stop the PWM that is running on c.0. Will this have any effect on c.0? If so, what is a good way to read two port pins into a variable without effecting the other port pins? Thanks for your help.
  8. R

    Help needed reading telemetry data stream

    I'm trying to figure out how to read the telemetry stream coming from an RC receiver (FrSky D8R-II) and I could use some help. I'm pretty new to PICAXE and this is the first time I've tried to use the serin. The code below doesn't work with both qualifiers in place (it just stops at the serin)...
  9. R

    Problem with byte variables in Code Explorer

    I'm seeing t's instead of b's for the byte variables in the Code Explorer window. Is this something I did?
  10. R

    Driving Multiple Relays From a Single PICAXE Output

    I have a positive-triggered, 16ch relay board that draws 3.8mA (measured) at each control input when the input is ON (High). The driver on the relay board is a darlington pair IC. I need to turn on 7 relays at once using a single PICAXE output pin. Obiously 7 x 3.8mA exceeds the 20mA max per...
  11. R

    Help needed with "simple" math calculation

    Here's the code: w9=0 main: inc w9 w10 = w9*559/1150 debug pause 2000 goto main The problem: when w9=117, w10=56 (that's correct) when w9=118, w10= 0 (should be 57) What's going on here? Edit: Ok, I see that 118*559 is larger than 65535 and is over-running the register. I guess I need to...
Top