<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Fri, 24 Apr 1998 15:55:09
From   : Bouke Buitenkamp <boukehj@...>
Subject: Re: Fw: a question about codes

Hello Jane, 

from the BBC-microlist i got your request.

As I recall:

&FE62 controls whether the ports PB0 to PB7 are used as input or output:

&FE62 = 0  All input
&FE62 = 8  PB3 output ; all others input
&FE62 = 255        All output
etc.

&FE60 is register that controls the output ports  (and reads inputs)

So:

&FE60 = 255 sets PB0 to PB7 to 'high'

It is of course possible to read these:

P. ?&FE60

returns a value from 0 to 255, indicating the setting of the switches, as
described above.


Cheers,

Bouke.


<Original message follows>


>Hello
>
>I'm a botanist who has a BBC that controls the lights for my plants.
>Someone else kindly set up the system for me so I'm a little stuck
>now that it has a problem. I was hoping to be able to  display
>the state of the internal switches related to the user port and/or to
>set my external relay on another channel but I don't have any of the
>relevant address codes. Can you help me?
>
>Thanks very much,
>
>Janet Kubler
>University of Dundee
>
>j.e.kubler@...
>
>
>
=========================================
Bouke Buitenkamp
Akkerstraat 141
5025 MG Tilburg
+31 13  5447335
E-mail: BoukeHJ@...

+++ divide by cucumber error
       please reinstall universe and reboot +++
==========================================
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>