I would guess 1010000 means 50hex. With out all 8 bits, leading zeros are assumed. Now try 10100000. It has 8 bits and it equates to A0. -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Jinx Sent: Monday, June 14, 2004 8:46 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC:] Help with 24LC16B and PIC16F84A! > I2CWRITE PORTA.0,PORTA.1$,%1010000,B0,[G0] > Yesterday i found what was going wrong... > It was the %1010000! I dont know why this is not working. > I wrote $A0 = %1010000 in Hexadecimal and now it is ok! What does the PICBASIC PRO COMPILER do with %1010000 ? Does it become %01010000 ? $A0 is %10100000, not %1010000 -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu