CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PIC 18F2520 I2C

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
pr83



Joined: 20 Jul 2006
Posts: 15

View user's profile Send private message

PIC 18F2520 I2C
PostPosted: Fri Jul 21, 2006 2:12 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Jul 21, 2006 2:33 pm     Reply with quote

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.

Ronald
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group