Go to Post There is a problem getting girls interested in STEM. Swift, immediate action is required. Continuing to stay the course leads to disaster. - Madison [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-11-2003, 20:23
CBM3 CBM3 is offline
Registered User
no team
 
Join Date: Nov 2003
Location: Vancouver
Posts: 1
CBM3 is an unknown quantity at this point
I²C Interface on PIC

Anyone knows how to program PIC's I²C interface? I'm trying to use a EEPROM as extrenal device for my PIC via I²C interface.

SPI will work too. Please post some sample codes for me. Thanks
  #2   Spotlight this post!  
Unread 01-11-2003, 21:19
Jeremy Roberts's Avatar
Jeremy Roberts Jeremy Roberts is offline
Coach 4026
FRC #4026 (Global Dynamics)
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1997
Location: Atlanta, Georgia
Posts: 229
Jeremy Roberts has a brilliant futureJeremy Roberts has a brilliant futureJeremy Roberts has a brilliant futureJeremy Roberts has a brilliant futureJeremy Roberts has a brilliant futureJeremy Roberts has a brilliant futureJeremy Roberts has a brilliant futureJeremy Roberts has a brilliant futureJeremy Roberts has a brilliant futureJeremy Roberts has a brilliant futureJeremy Roberts has a brilliant future
Send a message via AIM to Jeremy Roberts
Here are some short notes on it. Go the bottom of the page on the link below and click on the last 2 dealing with I2C on the PIC18F452 (should be the same as on the one in the IFI controller - PIC18F852).

http://piclab.ece.gatech.edu/projects.html

<edit>
There are code examples here . (may be in ASM)
Go down under Book Examples and look for Chapter 17 or I2C.
</edit>
__________________
Jeremy Roberts
GeorgiaFIRST Planning Committee | Peachtree Regional
Georgia Tech RoboJackets FIRST Co-Founder
Engineer/Mentor 4026
Former teams: 132, 608, 832, 1002, 1848

Last edited by Jeremy Roberts : 01-11-2003 at 21:22.
  #3   Spotlight this post!  
Unread 01-11-2003, 22:28
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Here is a whitepaper:
http://www.microchip.com/download/ap...c16/00735a.pdf

All the code is in assembly, but c18 supports inline assemly if you know it. Hope this Helps.
__________________
1139 Alumni
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TCP/IP on a PIC Venkatesh Electrical 1 18-11-2003 21:00
pic: Another pic of Team 930 CD47-Bot Robot Showcase 7 25-02-2003 21:07
Looking for operator interface... Where is it? mike325 General Forum 2 07-01-2003 15:28
Who am I pic... Pamela CD Forum Support 6 23-07-2001 23:49


All times are GMT -5. The time now is 03:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi