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 CCS Technical Support

I2c + RS232 in pic16f8XX

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



Joined: 16 Oct 2009
Posts: 3

View user's profile Send private message

I2c + RS232 in pic16f8XX
PostPosted: Fri Oct 16, 2009 10:37 am     Reply with quote

Hi:
I write this post because I need your help with use I2C + USART in PIC16F8XX. My application is to store data from RS232 in a EEPROM 24LC256. Once the data is stored, I need after to read from EEPROM and take data from other USART port (for software)
If you can help me, very thank
Best Regards
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Fri Oct 16, 2009 10:51 am     Reply with quote

So what is your question then?

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
jelectron



Joined: 16 Oct 2009
Posts: 3

View user's profile Send private message

PostPosted: Fri Oct 16, 2009 11:23 am     Reply with quote

I need a example of I2C + USART (RS232), where the data is stored in the EEPROM for I2C, because i dont know how make it.
If you can help me very thank
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 16, 2009 12:07 pm     Reply with quote

This CCS example file provides a simple interface to the eeprom
by using commands typed into a terminal window on your PC:
Quote:
c:\program files\picc\examples\ex_extee.c

Edit the following line in this example file:
Quote:
#include "2416.c"

Change it to:
Code:
#include <24256.c>


This is the driver for the 24LC256 eeprom:
Quote:
c:\program files\picc\drivers\24256.c
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