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 support@ccsinfo.com

Controlling MAX7311 I2C port extender

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



Joined: 14 Nov 2006
Posts: 14

View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number

Controlling MAX7311 I2C port extender
PostPosted: Sun May 13, 2007 3:57 am     Reply with quote

I want to set MAX7311's 16pins to input, read the pins values to
port1, port2 byte variables, then set MAX7311's pins to output
and send out these 2 variable in reverse order: port2,port1.
I2C control must be software driven.

Slave device (MAX7311):
I2C address is: 0x40 (64 dec)
max 400kbit/s I2C
http://datasheets.maxim-ic.com/en/ds/MAX7311.pdf

The master device:
PIC16F690 @ 20Mhz
CLK:RB6, DATA:RB4 @ each pull-uped with 4k7 resistor

Plase help me to write the code, Im not an expert in I2C.
Thank you!
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