Re: 2313 output pin problem

Robert Baruch <[email protected]> Mon, 22 Dec 2003 13:09:15 -0500
Newsgroups gmane.comp.hardware.avr.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Russell Shaw wrote:

| You've gone to hyperspace;)
| Try:
|
| void main(void)
| {
|     DDRB = 0xff; // port b set to all outputs
|     PORTB = 0;
|     for(;;){};
| }

Not necessary; the gcc-compiled code already has a busy-loop at the end
of main. I verified this with a dump of the assembly.

- --Rob


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/5zNL3n80I35hhEsRAp2JAJ0Tx6GlLO6AvLPiWuC3sJSrp/b3eQCdEGOR
GCfo07+a/SBWtt0wUtPxgOU=
=Qwar
-----END PGP SIGNATURE-----