PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : تغییر آدرس i2c:



sara.ee
18-02-2013, 01:41
باسلام

یک قطعه ای فقط آدرس C0 رادارد به صورت پیش فرض و کارخانه ای. میخواستم آدرس آن را تغییر بدم، هرکار می کنیم جواب نمیده.

کاتالوگ گفته:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Changing the I2C address from factory default of 0xC0
With Rev14 onwards, it is now possible to change the I2C address to any of 8 addresses 0xC0, 0xC2, 0xC4, 0xC6, 0xC8, 0xCA, 0xCC or 0xCE. You do this by writing unlock codes to registers 12,13 and 14 and the new address to register 15.



Reg 12


Reg 13


Reg 14


Reg 15


0xA0


0xAA


0xA5


0xC2

The above example will change the address to 0xC2 and the new address will be effective immediately. Don't forget to label you CMPS03 with the new address. You can do this in one I2C transaction, setting the register address to 12 and writing the four bytes. The internal register pointer is incremented automatically.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


آیا نباید مراحل زیر رو انجام بدیم؟ لطفا راهنمایی کنید

ابتدا باید رجیستر را از شماره 2 به 12 انتقال بدیم؟ که این خودش یک انتقال است، بعد چهار بایت را بنویسیم منظور چیست؟ که این خود 4 انتقال دیگر؟ اصلا درک نمی کنم که کاتالوگ چه گقته؟

درضمن مگر این رجیسترهای اشاره شده، 8 بایتی نیستند؟؟