To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 2135
2134  |  2136
Subject: 
Re: Programming in Assembly
Newsgroups: 
lugnet.robotics.rcx, lugnet.robotics.rcx.legos
Date: 
Thu, 17 Jul 2003 01:39:26 GMT
Viewed: 
4193 times
  
Cool, thanks
I was able to find the doc here:
http://www.renesas.com/avs/resource/japan/eng/pdf/mpumcu/e602025_h8300.pdf

your post about the motor seems helpful, so if I understand right the way to
run motor A forward would be
"mov 0x030003,r0h
mov 0x80,r0h"
and for the motor C the same except 0x06?
How does the instruction get to the motors? is there a sepearte routine that
needs to be run to do this or is it taken care of by the ROM?

also I was a little confused by the @ signs in the c code of legos can someone
explain these to me?

When I was looking at the brickOS code for dsensor.h I noticed a command "beq"
which I coudn't find in the documentation for the chip. What is this?

-Aaron


On Wed, 16 Jul 2003 20:19:38 GMT
"Mark Riley" <markril@hotmail.com> wrote:

Here's a more direct link for the H8 docs:

http://www.eu.renesas.com/products/mpumcu/8bit/h8300/3297/h8_3297_eu.html

Scroll down to the literature section and download the two PDFs.

For assembly, I would recommend starting off with an installation
of BrickOS and perusing the various source code files for the
kernel.  You'll find a fair bit of assembly code mixed in with the
C code.

Of course, you must visit Kekoa's RCX Internals site:

http://graphics.stanford.edu/~kekoa/rcx/

Note:  Since you mentioned fiddling with the motor ports, the motor
bits on Kekoa's page are inverted from what they should be (I've
emailed him).  See this post for the correct bit patterns:

http://news.lugnet.com/robotics/?n=20725

For using the assembler and linker, this link has proved itself useful:

http://asis.web.cern.ch/asis/products/GNU.SYS/binutils-2.11.2/

Mark







Message has 1 Reply:
  Re: Programming in Assembly
 
(...) mentioned previously) that describes the on chip I/O features of the H8 if you plan on doing any work with the sensors. (...) to (...) that (...) To turn on motor C forward you would do this: mov #0x02,r0h mov r0h,@0x80:8 The second (...) (21 years ago, 17-Jul-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: Programming in Assembly
 
Here's a more direct link for the H8 docs: (URL) down to the literature section and download the two PDFs. For assembly, I would recommend starting off with an installation of BrickOS and perusing the various source code files for the kernel. You'll (...) (21 years ago, 16-Jul-03, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)

9 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