Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Erik Malund
11/25/13 20:26
Read: 949 times
Mt Airy, Nc
USA


 
#190166 - what happened to MSB of data?
Responding to: Nor Ain Kasmuri's previous message
for(i=0;i<8;i++)		// Repeat for every bit
	{
		SCL = 0;		// Make SCL pin low
		delay1();		  // Data pin should change it's value,
									// when it is confirm that SCL is low

		if ((Data & 0x40) == 0)			  //
			SDA = 1;
		else
			SDA = 0;
			delay1();
		SCL = 1;
		Data<<=1;
	 }


 

what happened to MSB of data?

List of 6 messages in thread
TopicAuthorDate
i2c : PCF8575 interface with 8051 microcontroller      NOR AIN KASMURI      11/25/13 08:47      
   did you notice      Erik Malund      11/25/13 09:07      
   How did you connect the LED's?      Bert Van Den Berg      11/25/13 10:50      
      LED connection to PCF8575      NOR AIN KASMURI      11/25/13 18:26      
         what happened to MSB of data?      Erik Malund      11/25/13 20:26      
            Write_Byte      NOR AIN KASMURI      11/26/13 02:40      

Back to Subject List