On Sat, Aug 03, 2002 at 04:36:21PM +1200, Jinx wrote: > Tony, why do some of your instructions include the ,A ? It's the 18XXXX "access bank". It's a special memory designation that consists of the special function registers + 128 bytes of handily accessible general purpose RAM in bank 0. It's special because you can access it directly without having to switch/setup the bank select register. It's described in secton 4.10 of the 18FXXX datasheet. > > eg > > INCF i2c_State,F,A ; update I2C state variable > BSF SSPCON2,SEN,A ; initiate I2C bus start condition > > but not with > > BSF SSPCON2,RCEN or MOVWF BuffBankFSR > > -- > 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