To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 2971
2970  |  2972
Subject: 
bit_set and Poke
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Wed, 12 Nov 1997 14:40:34 GMT
Original-From: 
Bill Coghill <bill@altaudio.ednet.NOSPAMco.uk>
Viewed: 
1249 times
  
Could someone xplain the relationship that bit_set, bit_clear and poke /
poke word have ?
Specificallt in the bit_set code used for the motor control, 0x0e is placed
before the bit values - why ?  I geuess this is used to select the motor
port, but whats the relation ?

I would like to re-do the lib_hb file so I could use the motor outputs to
control relays for muting audio channels, but am unsure of the use of
bit_set etc.

I am going to use a 74hc734 on the Y0 select line to do 8 channels, but
would like to be able to control another 8 from somewhere, and since I
don't need the motor outputs......

- I thought of using the 374 on Y0 to control 3 74hc175 Quad Latches (a 4
way version of the 74hc374), using the low bits for device selkection, and
the high bits for data to be latched, but the way they latch wouldn't
really work.
TIA for any help !

Bill

_____________________________________________________________________
Bill Coghill     Mobile +44 (0)410 509 738
Alternative Audio, Edinburgh Phone/Fax +44 (0)131 225 1986
WWW : http://www.Ednet.co.uk/~bill_altaudio/ (I'm working on it !)



Message has 1 Reply:
  Re: bit_set and Poke
 
bit_set in english is "for the byte at this adress, make these bits high". The first argument is the address (i.e. 0x0e). The second argument is the mask which indicates which bits to make high. bit_clear in english is "for the byte at this address, (...) (27 years ago, 12-Nov-97, to lugnet.robotics.handyboard)

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