|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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> Last edited by Jeremy Roberts : 01-11-2003 at 21:22. |
|
#3
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |