Search results

  1. M

    18M2 WJEC Assembler HC-SR04

    Yeah I'll send him an email, and I'll make a copy of the code and replace the ultra with pure assembler as well. Thank you so much for the help.
  2. M

    18M2 WJEC Assembler HC-SR04

    symbol SIG = C.1 ; Define pin for Trigger & Echo (All M2, X2 parts) symbol range = w1 ; 16 bit word variable for range main: clrf PORTB ultra SIG,range ;dedicated ultra command for ultrasonic sensor debug range ; display range via debug command call wait100ms ; short delay...
  3. M

    18M2 WJEC Assembler HC-SR04

    Yeah I gave that a try and I think I got it to work now, just need to use a buzzer now to make it beep when I get it to a certain distance.
  4. M

    18M2 WJEC Assembler HC-SR04

    I will give this a try tomorrow, but I don't think I will be able to use the ultra command as it is Basic code and not Assembler. Thank you very much.
  5. M

    18M2 WJEC Assembler HC-SR04

    I'm trying to use a HC-SR04 range sensor with a picaxe 18m2 chip, however it uses the WJEC Assembler language and I can't seem to find any tutorials or sample code that could help me set it up to start range detection. I know the pulses from the HC-SR04 need to sent out every 10 micro seconds...
Top