It's whatever you program the slave PIC to respond to.
PBP manual, Section 9.3, 'Interrupts in Assembler' has some good hints on how to set a specific variable to a specific location...but I wouldn't count on it. Easier (in my mind) to let PBP assign a location for you, then you program around it.ii) How can we define variables in a particular memory location (in slave PIC), using PBP
You realize PBP only supports I2C master modes, not slave modes. The PIC itself, if so equipped, can use I2C in a slave mode, but you have to program that manually, PBP won't help much in that respect. There is a few web pages out there with good PIC I2C slave code, don't remember where they are, don't have them bookmarked, but I've seen them.iii) How to define SDA and SCL pins on the slave PIC.
I know that's not some sort of DEMAND...like somebody owe's you something. You'd be much more likely to get some help if YOU wrote some code YOURSELF and pointed out where YOU are having trouble.Now, experts, please help me with this.
EDIT: Got this from a Google search for 'PIC I2C slave'
http://www.astrosurf.com/soubie/pic_as_an_i2c_slave.htm
1st link. Was that so hard?
Bookmarks