Realy? =20 Prehaps that what the problem is. The ,0 is supposed to be the 'a' parameter. How should it look with the bit indicator (1) and the access bank parameter (0) ? -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Alan B. Pearce Sent: Tuesday, July 13, 2004 12:15 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC:] 18F2220 Question > #define RING PORTA,1 ;1 =3D no > > btfss RING,0 Between these two lines, it looks like you are trying to access a different bit than you think you are. I don't know if you can define the access bit this way, as a macro, followed by ,0 and I suspect either the chip or the assembler is confused. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body