free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
anoopnelson
Mon Nov 24 2008, 05:34AM

 User Offline
Registered Member #12507
Joined: Mon Nov 24 2008, 05:23AM

Posts: 1
Thanked 0 times in 0 post
hii...all,
Now im doing a project in pic18f452 using mikroc compiler . Im facing a serious problem that any 1 of the 2 protocols can b implemented at a time. bcoz serial clock [scl,RC3] is sharing by both spi and i2c. But I need the both. So can anybody tell me how can I do that in mikroc..




anoop
Back to top


Ajay
Tue Nov 25 2008, 06:37AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4049
Thanked 754 times in 713 posts
you can make use of both but at a time, only one.

all you have to do is, initialize SPI or I2C before start using it in your program.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


ExperimenterUK
Tue Nov 25 2008, 05:25PM
 User Offline
Registered Member #9602
Joined: Tue Aug 05 2008, 04:15PM

Posts: 207
Thanked 38 times in 37 posts
anoopnelson wrote ...

hii...all,
Now im doing a project in pic18f452 using mikroc compiler . Im facing a serious problem that any 1 of the 2 protocols can b implemented at a time. bcoz serial clock [scl,RC3] is sharing by both spi and i2c. But I need the both. So can anybody tell me how can I do that in mikroc..



I don't know the details of mikroc but in general an I2C connection is fairly easy
do using general I/O pins.
IE.. put a data bit on one pin then toggle a second to act as a clock.
I have done this in assembly language for a 18f2455.






Learning all the time
Back to top


 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems