From: Matthias T. <mt...@we...> - 2007-05-20 16:15:27
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hans, Hans H=FCbner schrieb: >=20 > Something else: How do you (as in everyone) handle bitwise I/O with > amforth? see lib/bitnames.frt. Thanks to Michael Kalus who has written the documentation and made some subtle but very useful improvemnts to my prior design. > The AVR has the very useful SBI/CBI instructions that can be > used to set and clear individual bits without affecting the state of > the other bits in a port. The bit number is coded into the > instruction, so I am a bit at loss when it comes to defining a proper > amforth word to do it. Obviously, having cbi and sbi words ( bit port > -- ) would be just great. Any ideas? The sbi/cbi work for the IO address _only_, so they are of very limited use for a general ATmega design. Matthias -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGUHRG9bEHdGEMFjMRAhzNAKDExllhsWYS+0J0xRvdspkxum6+wwCeKn9G fZBIimalkTi25Cz2DUypRIc=3D =3Ddgrx -----END PGP SIGNATURE----- |