please dont rip this site

SX Microcontroller Input / Ouput Methods for I2C

NEW! RS-232 / I²C-Adapter & Parallel I/O Module

Virtual Peripherals

 

Integrations:

Also:

William Says:

I was debugging my project that uses an I2C EEprom and found a small bug in the example VP code. At the end of the I2CRead subroutine, after sending a Stop, the example code sends an ACK. This appears to cause the Start sent with the next command to fail, not a big deal since the Start is repeated again. The documentaton for the I2C EEproms, under READ OPERATIONS, states:

"... The 24xx00 will then issue an acknowledge and transmits the eight bit data word. The master will not acknowledge the transfer but does generate a stop condition and the device discontinues transmission (Figure 8-2). After this command, ..."

Comment out the 2 lines that send the ACK and it works fine:


:non_seq        JMP     Send_stop               ; no, signal stop & exit
; doc says "The Master will not acknowledge the transfer but does
generate a stop ..."
;		CLRB    out_bit                 ; yes, setup acknowledge bit
;		CALL    Write_bit               ;   and send it
		RETP                            ;leave and fix page bits


+


file: /techref/scenix/lib/io/osi2/i2c/i2c_sx.htm, 5KB, , updated: 2008/1/31 07:18, local time: 2008/12/1 11:37,
TOP NEW HELP FIND: 
38.103.63.57:LOG IN
©2008 PLEASE DON'T RIP! DO: LINK / DIGG! / MAKE!

 ©2008 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it!
<A HREF="http://www.massmind.org/techref/scenix/lib/io/osi2/i2c/i2c_sx.htm"> SX Microcontroller Input / Ouput Methods for I2C</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be reviewed) Just type in the box and press the Post button. (HTML welcomed!): A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Did you find what you needed?

 
RpS i 2o3i2c
Cheap & easy I2C I/O and Monitor
Watch, recieve and send I2C via serial port. 100Kb/s. Also 5 TTL out & 8 in.
$15 chip $30 w/ PCB $40 kit $50 A&T
  'What can I do?' - SiCKO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .