PIC I2C Slave Mode Multi Byte Reception

Home Forums Microcontrollers PIC Microcontroller PIC I2C Slave Mode Multi Byte Reception

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13702
    Admtsn58
    Participant

    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;
    }
    
    #13721
    Ligo George
    Keymaster

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
>