252 or 2520


Closed Thread
Results 1 to 11 of 11

Thread: 252 or 2520

Hybrid View

  1. #1
    icaotyr's Avatar
    icaotyr Guest


    Did you find this post helpful? Yes | No

    Default problems with i2c

    Im trying to communicate with i2c two Picīs a master and a slave of course. I attemp to do a communication with 3 slaves later but at first i have to do it with a single one. Im having problems initiating the i2c protocol.
    Im using MPLAB to create the master and slave code. Using MPSIM and checking the ssp registers i see that the code is right in theory but once i try it on the chip it doesnt work. I cant initiate the Start condition i activate the SSPEN flag in SSPCON2 in the simulation it works pefectly but in the chip polling the register i can see that the flag have never been set i dont know which problem i have but please i need some help
    Attached Files Attached Files

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts