PIC I2C Slave Mode Multi Byte Reception – electroSome https://electrosome.com/topic/pic-i2c-slave-mode-multi-byte/feed/ Sat, 18 Mar 2023 04:52:33 +0000 https://bbpress.org/?v=2.6.9 en-US https://electrosome.com/topic/pic-i2c-slave-mode-multi-byte/#post-13702 <![CDATA[PIC I2C Slave Mode Multi Byte Reception]]> https://electrosome.com/topic/pic-i2c-slave-mode-multi-byte/#post-13702 Tue, 25 Apr 2017 18:10:05 +0000 Admtsn58 I am sending 32 bytes from master microcontroller using your I2C library. How can I do that ? Your library handles only single byte of information.

////SLAVE CODE DATA READ //
if(!SSPSTATbits.D_nA && !SSPSTATbits.R_nW)
{
  z = SSPBUF;//Address Read
  while(!BF);
  d=SSPBUF;      //data Read
  SSPCONbits.CKP = 1;
  inputflag=1;
}
]]>
https://electrosome.com/topic/pic-i2c-slave-mode-multi-byte/#post-13721 <![CDATA[Reply To: PIC I2C Slave Mode Multi Byte Reception]]> https://electrosome.com/topic/pic-i2c-slave-mode-multi-byte/#post-13721 Sun, 30 Apr 2017 13:50:01 +0000 Ligo George As per standards I2C can send and receive only one byte of information at a time. But you can easily transmit 32 bytes of information serially one after another.

]]>