Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I2c and spi in pic16f877a

Status
Not open for further replies.

eng_zizo

Newbie level 3
Joined
Jul 21, 2011
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,305
i need to know if there is library for functions to write and read by I2C OR SPI in mplab with high_tech universal suite compilor.....THANKS
 

I also want to know if there is a already function on hi-tech, even I have use SPI and I2C with own function.
 

Yes and No.

There are not library functions available in the Hi-Tech C for PIC10/12/16, like there are in other Hi-Tech C Compilers for other PIC families. However, there are sample programs with contain ready made function for I2C . These sample programs and the source and header files for the respective protocols can be found within the sample directory:

C:\Program Files\HI-TECH Software\PICC\9.81\samples




Also, a nice collection of example programs and functions for SPI and other interfaces are available at:

MicrochipC - C sample code for PIC micros and Hi-Tech C

You can adapt some libraries from the PICC18 to PICC compiler with a little work as well.

Hope the info helps in your endeavors.
 
I need to make voting system .so i need to store all ID(s) for all electors .i try to make it by I2C in micro c but have some problems like how can me choose el address of memory to write or read by I2C1_Rd() and I2C1_Wr() fuctions .thanks
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top