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

Connect two PIC via I2C

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



Joined: 16 Feb 2006
Posts: 9
Location: Viet Nam

View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger

Connect two PIC via I2C
PostPosted: Thu Feb 16, 2006 11:36 am     Reply with quote

Hello!
Fisrt I sorry about my English, I'm from Viet Nam. About PIC, I'm just a newbie. So i had a problem when using PIC.
I want to connect two PIC: F877A and F876A via I2C bus. PIC16F877A using in Master-Mode and 876A is Slave-mode. Connect via I2C, fisrt i send one byte from 877A to 876 via I2C, and then when 876A recieved this byte, it send this byte return to 877A. All data display on LCD module.
For control LCD module I had the code, but i have some problem with I2C bus. I'm using CCS for program PIC.
Please help me the code for this problem.
Thank!
Mail to:linhnc308@yahoo.com

What about code for Multi-Master with this circuit?
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Thu Feb 16, 2006 1:09 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=21456&highlight=i2c+master
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