-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 threewheeler7 wrote: [snip] > Sitdown > movlw b'1010' ;turn on "stand motor" and "reverse relay" > iorwf SHADOWB,f > movfw SHADOWB > movwf PORTB > btfss home_sensor ;wate till home is reached > goto $-1 > bcf direction_stand ;switch motor back to forward Is direction_stand defined as SHADOWB,N or as PORTB,N? > movfw SHADOWB > movwf PORTB > call Debounce ;for 200ms > bcf stand ;then turn off "stand motor Similarly, is stand defined against SHADOWB? > movfw SHADOWB > movwf PORTB > return -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: GnuPT 2.7.2 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjuSZkACgkQiD2svb/jCb5q0wCfZPAA/iP4Gexn6xf3g4IYk1i4 J+EAoJ2pPRprYN+3076Iunzatur0t1D6 =z6JE -----END PGP SIGNATURE----- -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist