Hi Chuck, If you have not already, download the bible: MPASM USER'S GUIDE with MPLINK and MPLIB -- I believe the latest rev is DS33014G. It's a valuable reference -- definitely worth printing it out, or asking for a hardcopy from Microchip. However, using bitwise AND *probably* won't solve your problem either if you make the modification with the code you posted: MOVF ( HV_SetPH & DA_MASK ), W MOVWF SSPBUF I'm pretty sure you don't want the 'MOVF' above, am I right? Do you see the difference between the code above and the code below?: MOVLW ( HV_SetPH & DA_MASK ) MOVWF SSPBUF However, I'm assuming both 'HV_SetPH' and 'DA_MASK' are pre-defined constants, and this might be a bad assumption. If 'HV_SetPH' represents a RAM register and 'DA_MASK' is a pre-defined constant, then you probably want something like: MOVLW DA_MASK ANDWF HV_SetPH, W MOVWF SSPBUF I could be way off base with my post here since I don't have enough information as to what 'HV_SetPH' and 'DA_MASK' represent. Could you post the definitions of 'HV_SetPH' and 'DA_MASK'?] In your project, do they represent just constants, intended RAM locations, or something else? Thanks Chuck. Regards, Ken Pergola -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Roberts II, Charles K. Sent: Wednesday, October 15, 2003 1:18 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC:] Another question, I2C woes...... Ken Pergola >Is this what you intended? >This is why I'm saying this looks odd to me. Do you see my point? I hope >this makes sense. I see exactly what you are saying. I thought that the && would bit wise AND. I guess I will have to used the MASM AND command. Thanks for catching that. Chuck -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics