Searching \ for '[SX] Help using I2C protocol' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/ubicom/lib/io/index.htm?key=i2c
Search entire site for: 'Help using I2C protocol'.

Exact match. Not showing close matches.
PICList Thread
'[SX] Help using I2C protocol'
2007\11\02@143016 by wchahlan/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, wchahla wrote:

Hi ,
Ive read the documentation about I2c protocl in Gunther's Book "Programming the SX microcontroller" , but i could not understand technically how to assign an address for each device connected to the bus.


suppose for example i have DS-1302 and DS-1620 connected to the I2c bus .

How to assign addresses to these chips and communicate with them.


note : Iam using Assembly for coding.


Regards.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=228512
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)

2007\11\02@143726 by mgreenn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, mgreen wrote:

I2C chips have pre-assigned addresses.  Look at the datasheet for the device for the specific address.  Many devices will let you set a portion of the address via extra pins on the device.  Again, check the datasheet for details.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=228512#m228514
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)

2007\11\02@145309 by wchahlan/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, wchahla wrote:

Thanks Mike for the tip .
Iam not that expert in reading data sheets , i just started recently programming SX m.c .

could you please guide me where to look exactly.

i attached a data sheet file for the DS1302.

Regards.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=228512#m228520
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)

2007\11\02@155548 by JonnyMacn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote:

The DS1302 is an SPI device (and is not I2C compatible); for that matter, so is the DS1620.  You can share the clock and data pins but will need separate RST lines for each so that only one can be on the buss at the same time.  There is SX/B code in the SX-Key help file; it will help you get started, even though you're using assembly.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=228512#m228534
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)

2007\11\02@163309 by mgreenn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, mgreen wrote:

SPI is a different protocol that requires at least 3 I/O pins, possibly 4.  There's no addressing needed because each chip requires a separate select line (low true).  SPI is not as standardized as I2C and each device may have different details about how data is transmitted to the device and you really must become familiar with the datasheet of each device.  For example, some devices use separate receive and transmit data lines (and all have a clock and the select line) and transmit status back to the controller at the same time that data is being received.  Some devices expect 11 bits to be sent / received on every data transfer while most expect 8 bits.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=228512#m228539
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)

2007\11\03@102000 by wchahlan/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, wchahla wrote:

Thanks gentlemen for the feedack .
I  think now the situation is clearer to me.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=228512#m228675
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)

More... (looser matching)
- Last day of these posts
- In 2007 , 2008 only
- Today
- New search...