This might be of use.
Is there a way to do what sajid ask in PBP?
This might be of use.
Is there a way to do what sajid ask in PBP?
Dave
Always wear safety glasses while programming.
Yes, everything is possible. I don't know if i would use the MSSP port and share everybody on the same bus, or use a serial communication so far.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Fun, fast and handy, that's for sure.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thanks guys, for atleast replying to my query.
Sorry, for that DIM thing....its my first post, remember that. (Thanks, mister_e )
Im using Crownhill Proton, I wud ask them, about DIMming anything....
OK......lets forget that. Now I want to do it in PBP. Can anybody help me in my queries, for interfacing two PICs, like,
i) what should be the read/write address for the slave PIC
ii) How can we define variables in a particular memory location (in slave PIC), using PBP
iii) How to define SDA and SCL pins on the slave PIC.
Thanks all for the response (good or bad), I appreciate that. Now, experts, please help me with this.
Regards,
Sajid
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?
Last edited by skimask; - 25th May 2007 at 07:22. Reason: edit: added I2C slave link
Directly from Melabs Website: http://www.melabs.com/resources/samples.htm
I2Cslave.bas: http://www.melabs.com/resources/samp...p/i2cslave.bas
I2cmast.bas: http://www.melabs.com/resources/samples/pbp/i2cmast.bas
HTH
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks