NEW! RS-232 / I²C-Adapter & Parallel I/O Module
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:+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: 2024/11/8 15:23,
18.216.149.49:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 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? <A HREF="http://www.piclist.com/Techref/scenix/lib/io/osi2/i2c/i2c_sx.htm"> SX Microcontroller Input / Ouput Methods for I2C</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.