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 / 1804
1803  |  1805
Subject: 
Re: Watch Dog Timer on the H8 - Working!
Newsgroups: 
lugnet.robotics.rcx
Date: 
Sat, 28 Sep 2002 05:14:39 GMT
Viewed: 
2558 times
  
Well, after browsing through the H8 reference another, oh 20 (?), times; and
some messing around; it is now working.

Basically, I had declared the Control Status Register as an 8 bit value.
Since this is a special register (8 bit) that requires a 16 bit value... it
had to be declared as a 16 bit value.  Odd thing is... I cast it to unsigned
int before assigning the 16 bit value, but it didn't work until I changed
the declaration from unsigned char to unsigned int.

Now, it is late, I am tired, so (to avoid rambling aimlessly) I will be
going....

... but first, if anyone is doing some major crazy low level programming and
needs to use the NMI, I would be happy to send what I have their way.

// Joe

"Joseph Woolley" <jwoolley@spamblock.insight.rr.com> wrote in message
news:H34Cr5.9MK@lugnet.com...
Has anyone been able to make use of the Watch Dog Timer on the RCX?

The H8 documentation seems to spell out the workings quite well.  BrickOS
(LegOS) has minimal support (a vector is declared for both NMI and • overflow)
and pbForth files list the WDT vector/interrupt.

I have been attempting to make use of this timer in a test version of
BrickOS.  Everything compiles ok, but the overflow interrupt never fires;
using the NMI settings and mapping the nmi_vector to my routine doesn't • work
either.

I understand that the NMI might not work, since the NMI pin on the H8 may • be
tied to something.  However, in the overflow configuration, I don't see
anything that would keep it from working.

If anyone has been able to tie an interrupt routine to this timer in some
way, I really want to talk to them!

// Joe





Message is in Reply To:
  Watch Dog Timer on the H8
 
Has anyone been able to make use of the Watch Dog Timer on the RCX? The H8 documentation seems to spell out the workings quite well. BrickOS (LegOS) has minimal support (a vector is declared for both NMI and overflow) and pbForth files list the WDT (...) (22 years ago, 27-Sep-02, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)

2 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