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

How to implement the I2C test board using PIC16F77?

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



Joined: 24 May 2005
Posts: 1

View user's profile Send private message Send e-mail

How to implement the I2C test board using PIC16F77?
PostPosted: Tue May 24, 2005 8:30 pm     Reply with quote

Hi every body.
I am a newbie in PIC microcontroller.
I am starting study about PIC, so i want to build some test programming such as blink a led, Echo characters from PC via RS232, I2C communication...
I just have only two pic16F77 and PIC16F84A to practice.
I had build two test programming blink led and Echo characters from PC via RS232 successful. Now i want to build I2C communication between two pic.
or interface i2c between pic16F77 and serial ROM (I2C ROM).

Have any one, who had build i2c test board using pic16f77 or another pic such as 16f877... or have experience in pic give me a schematic and source code.

I am using PIC C compiler to build program.
Thanks.
valemike
Guest







PostPosted: Wed May 25, 2005 10:29 am     Reply with quote

okay, so assuming you already have the circuit to do the other stuff as you say you do, then just add the following:

solder a wire between RC3 on one micro to RC3 on the other.
Solder another wire between RC4 on one micro to RC4 on the other.
Tie one end of a 4.7K resistor on one wire.
Tie one end of a different 4.7K resistor on the other wire.
Tie the two dangling ends of the resistors together and pull them up to the 5V rail.

That's the hardware.

as for the software -- it's archived everywhere in this website.
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