To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1811
1810  |  1812
Subject: 
Re: Assembly in my C-program
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 28 Mar 2001 12:12:34 GMT
Viewed: 
1421 times
  
In lugnet.robotics.rcx.legos, Athanasios Kostakos writes:
HI,

I was wondering if I could write assembly code in my c-program. I would like • to
access the motor output port as a digital port and control when it is on and
when off (possibly writting something like "mov.b r6l,@0xf000:16").

This should be performed by mapping a variable on top of the memory location,
and NOT by inline assembly.

Or can I change the dmotor.h file and when I call the "motor_a_speed(1-255)",
actually to control the times the motor output port will go on and off?

What is wrong with speed=0 for off and speed=255 for on?

/jakob



Message has 1 Reply:
  Re: Assembly in my C-program
 
Actually I am trying to control a stepper motor. So when i need to send 50 pulses fast, motor on and off takes same time because there same other tasks running at the same time. So it would be much quicker if I could just call motor speed (50), and (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Assembly in my C-program
 
HI, I was wondering if I could write assembly code in my c-program. I would like to access the motor output port as a digital port and control when it is on and when off (possibly writting something like "mov.b r6l,@0xf000:16"). Or can I change the (...) (24 years ago, 28-Mar-01, to lugnet.robotics.rcx.legos)

5 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR