To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 27411
27410  |  27412
Subject: 
Re: Mars mission IV
Newsgroups: 
lugnet.robotics
Date: 
Sat, 15 Mar 2008 21:55:56 GMT
Viewed: 
11305 times
  
In lugnet.robotics, Claude Baumann wrote:
Question to H8/3292 specialists (Kekoa Proudfoot, Michael Anderson, Markus Noga,
Ralph Hempel, John Hansen, Dick Swan ... these are the ones I know, ... are
there others... probably?)

I tried to plunge the RCX into sleep mode (not the normal RCX software stand-by
mode), which, according to the datasheet, halts the CPU, but keeps on running
the clock. The hardware manual explains that the H8/3292 can be exited from this
state through an internal or external interrupt.

But, I was not able, after several tests of doing this. I first cleared the 7th
bit of SYSCR, then configured an interrupt, added a dummy interrupt service
routine, finally called "SLEEP". The current dissipation corresponds to the one
noted in the datasheet, but none of the interrupts -neither external, nor
internal, woke-up the RCX. Has anyone got an idea, what I might be doing wrong
here? Am I missing a configuration sequence? Is there a special timing that
needs to be respected?

This is quite intriguing, because it should work according to the datasheet.

http://www.convict.lu/htm/rob/mars_IV.htm

Perhaps it's not the best habitude to answer one's own post, but the good news
is that we were able to fix the problem:

The issue was that we were using the Assembler code

bclr #7,@0xFFC4

in order to select sleep mode instead of software stand-by mode. We already had
troubles with direct bit setting or clearing with other microcontrollers.
Sometimes the hardware requires that certain registers are first read and then
set. This also is the case with the SYSCR register of the H8/3292. So, we used
the following code instead:

mov.b @0xffc4:8,r6L
and #0x7F,r6L
mov.b r6L,@0xffc4:8

==> And everything works now. We already tested the NMI-interrupt that is
generated through the watchdog timer overflow and IRQ0 interrupt that is
produced through the RUN-button pressed.



Message is in Reply To:
  Re: Mars mission IV
 
Question to H8/3292 specialists (Kekoa Proudfoot, Michael Anderson, Markus Noga, Ralph Hempel, John Hansen, Dick Swan ... these are the ones I know, ... are there others... probably?) I tried to plunge the RCX into sleep mode (not the normal RCX (...) (16 years ago, 15-Mar-08, to lugnet.robotics)

15 Messages in This Thread:




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

Custom Search

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