I have a PIC18F2520 that does some math and generates an array of 5 float values.
I have another PIC18F2520 that I would like to use to talk to the first PIC and be able to retrieve the array of 5 values from it.
Any suggestions where I can find some example code implementing that.
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
Posted: Fri Jul 21, 2006 2:33 pm
There's a boat load of threads that talk about this exact topic. Do a search on I2C, Slave, Master or whatever else you could think of and look through all of the examples that have been given. I, personally, don't like using the built-in functions inside my Slave PIC's. I like accessing the registers directly. You just need to search around and then start trying a very simple program to see if you can talk back and forth. Once you've written something up and played with it then post what problems you're having and we can try to help you through them.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum