Searching \ for '[PIC]: Assembly Language for PIC16f877' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/languages.htm?key=language
Search entire site for: 'Assembly Language for PIC16f877'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Assembly Language for PIC16f877'
2001\04\15@235228 by Henry Low

flavicon
face
hello to all,

I am working on a simple test program in assembly language to test run my
robot. Here is the simple sequence I desire to have

1) Robot starts, move forward
2) Hit or near an object/wall, it will trigger the contact / IR sensor
which
is connected to one or more of the input pins
3) It will change the input state from '0' to '1' (I have build a
simple
switch circuit to provide 5V to the input pin if the contact is made)
4) When the MCU 'sensed' the change in state (by polling I suppose),
it will
then output 2 ENABLE pins to '0', commanding both motor to stop
5) Then next step is a '0' to DIR1 of one side, a '0' to DIR2 of the
other
side of the motor, hence reversing the robot
6) Followed by outputting '1' to DIR1 and '0' to DIR, turning the
robot to
the right (avoiding the object)
7) Move forward again
8) Goes on and on.

does anyone have a similar assembly code for PIC16f877 that does similar
things?

Henry

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body


2001\04\16@190628 by Brian Reed

flavicon
face
I wrote something similar to that for my 'bot, but I did it in C.
You could do the same, and download the 21-day demo from
http://www.htsoft.com and set it to output an ASM file.  Not a bad
way to get up and running, then come back and refine or
add to the ASM as you go.

My 'bot used an F877, with the IRPDs feeding A/D channels so
I could set a threshold value, and I used the PWM outputs for
DC motor speed control... maybe more involved than you're looking
for.  If you want to see my C, lemme know.

- Bri


{Quote hidden}

--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestspamKILLspammitvma.mit.edu


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...