• AVR Freaks

Hot!PIC16F15324 I2C Slave unable to send data

Author
tahirsk
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2021/02/12 06:08:25
  • Location: 0
  • Status: offline
2021/02/22 01:12:21 (permalink)
0

PIC16F15324 I2C Slave unable to send data

Hi,
I wrote I2C slave code for PIC16F15324, and I'm able to read the data from Master but I'm unable to send the data to master.
where,  ESP32  ---> Master
             PIC      ---> Slave
 
I attached the Master(ESP32) and Slave(PIC16F15324) codes,
Please check the attached files........
 
Thank you,
 
Regards,
Tahir Shaik
#1

1 Reply Related Threads

    tahirsk
    New Member
    • Total Posts : 2
    • Reward points : 0
    • Joined: 2021/02/12 06:08:25
    • Location: 0
    • Status: offline
    Re: PIC16F15324 I2C Slave unable to send data 2021/02/25 07:11:55 (permalink)
    +1 (1)
    Hi guys,
    Issue was resolved....

    replace   #define PPS_OUT_SDA (0b10001)     with   #define PPS_OUT_SDA (0x16) //(0b10110) 
    replace   #define PPS_OUT_SCL (0b10000)     with   #define PPS_OUT_SCL (0x15) //(0b10101)
    in main.c file
    #2
    Jump to:
    © 2021 APG vNext Commercial Version 4.5