Subject:
|
Re: bit_set and Poke
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Wed, 12 Nov 1997 21:12:15 GMT
|
Original-From:
|
MAR ERICSON <mar@cooper.#AvoidSpam#edu>
|
Viewed:
|
1287 times
|
| |
| |
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, make these bits
low". The first argument is the address (i.e. 0x0e). The second argument
is the mask which indicates which bits to make low.
poke in english is "for the byte at this address, make it this"
Ths first argument is the address. The second argument is "this".
poke_word in english is "for the bytes(2) at this address and address + 1,
make it this"
Ths first argument is the address. The second argument is "this".
-----------
ericson mar
Master of Engineering Candidate
Project: Mobile Robotics
mar@cooper.edu
(212)353-4356
Department of Mechanical Engineering
The Cooper Union for the Advancement of Science and Art
-------------------------------------------------------
On Wed, 12 Nov 1997, Bill Coghill wrote:
> 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 is in Reply To:
| | bit_set and Poke
|
| 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 (...) (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
|
|
|
|