Recent content by CommanderLake

  1. C

    40X2 hardware interrupt

    Found the solution, I have to set flags = 0 before calling setintflags again otherwise it loops.
  2. C

    40X2 hardware interrupt

    But I'm not using polling interrupts I'm using hardware interrupts!
  3. C

    40X2 hardware interrupt

    I need to get a 40X2 to respond at any moment using a hardware interrupt to a falling edge on the "hint0" pin but I cannot get it to interrupt more than once, how do I get the hardware interrupt to work more than once?
  4. C

    08M2 serout corrupt and restarts after serin

    I have an 8x2 OLED with a program for the 18M2 I modified to allow 38.4K baud because if it can go that fast then why not. I was just trying T serial to see if it would help and it turns out N is better, I dont know why N is considered inverted. I forgot about the disconnect command, that would...
  5. C

    08M2 serout corrupt and restarts after serin

    I'm trying to use the serial terminal to get a 08M2 to relay commands to an I2C device but it wasn't transmitting anything so to troubleshoot I'm trying to output the exact data it received back to the terminal and the data the 08M2 transmits is completely unexpected and makes no sense. I'm also...
  6. C

    Scale readadc10 input to limit max value

    Edit: Just seen your correction. It works now, just a little off due to lack of precision.
  7. C

    Scale readadc10 input to limit max value

    But w0 * w7 can overflow. Forgot to mention its a 08M2. w8 = w0 * w7 / 1024 w8 = w0 ** w7 / 64 + w8 doesn't work.
  8. C

    Scale readadc10 input to limit max value

    I'm using readadc10 with a pot to set 2 variables separately, switching between them with a button, however one must not be greater than the other but I dont want to limit the usable range on the potentiometer. readadc10 C.4,w0 if w0!=w1 AND w0!=w2 then if b12=0 then w7=w0...
  9. C

    08M2 pwmout 0,1

    I'm trying to get pwmout to 0,1 on a 08M2 but it just switches off, can I use poke or pokesfr to set the pwm to such a value?
  10. C

    ADC10>pulsout and display pulse time

    Actually I figured it out: w3=w9*10 w4=w3/4 w10=w4+w3+5 1 decimal place of precision rather than 2 but thats fine.
  11. C

    ADC10>pulsout and display pulse time

    I want to pulseout (at 32MHz) with a time value straight from the ADC10 input and display the pulse time on a 2X8 OLED display, the thing I cant figure out is how to display a time such as "1279.25u", if I reduce the maximum time by dividing ADC10 by 10 I can display the time like this...
  12. C

    HPWM current capacity

    I cant power it on because the power pins are shorted via the internal HPWM driver circuitry. V+ to 0V is 6.5 ohms.
  13. C

    HPWM current capacity

    I have accidentally shorted picaxe outputs to ground in the past and no damage was done but I got a new 20X2 and accidentally touched an active HPWM output to ground with a scope probe ground clip and it appears pin B.4 has shorted to V+ and 0V internally. What is the current capacity for HPWM...
  14. C

    ADC to milliseconds

    I need to use the ADC to set a pause to between 250ms and 2000ms how do I do that?
  15. C

    Get digit after decimal point

    I'm going to try my best to explain this... Currently I'm doing the following: readadc10 vcc,w13 w13=w13*10 b18=w13/205 bintoascii b18,b19,b15,b16 I need to get the digit after the decimal point and put it into a variable, but I cant multiply by 100 instead of 10 because the value may go beyond...
Top