Haberler:

Foruma Resim Yükleme ve Boyut Sınırlaması ( ! )  https://bit.ly/2GMFb8H

Ana Menü

LPC2138 I2C

Başlatan CoşkuN, 01 Ocak 2011, 22:32:28

CoşkuN

Arkadaşlar LPC2138 için NXP'nin sitesindeki kod örneklerinde verilen I2C kodunu çalıştırabilen var mı acaba? Proteus üzerinde simülasyon yapıyorum fakat I2C DEBUGGER'da hiç bir şekilde I2C mesajlarını göremiyorum.

Kod kütüphanesi: http://www.standardics.nxp.com/support/documents/microcontrollers/zip/code.bundle.lpc213x.lpc214x.uvision.zip

arges

proteus cizimini ve main i yollarsan yardımcı olabilirim belki.
The whole is equal to the sum of parts(Euclid)... The whole is greater than the sum of its parts(Max Wertheimer)...

CoşkuN

Örnek kod ve board: http://rapidshare.com/files/440374534/I2C.zip
Çizimde DS1621 var ama o önemli değil şu anda. Sadece I2C debugger'da mesajları görmek istiyorum.

arges

Alıntı YapÖrnek kod ve board: http://rapidshare.com/files/440374534/I2C.zip
Çizimde DS1621 var ama o önemli değil şu anda. Sadece I2C debugger'da mesajları görmek istiyorum.

Gonderdiğin örnekte startup code "MCB2130 Board - LPC2138" için yazılmış.

eeprom okumak ve yazmak istiyorsun sanırım.
ornek kodu aşağıdaki linke yükledim.
http://rapidshare.com/files/440409160/IIC.zip
eger eepromla haberleşmek istiyorsan kod hazır çalışıyor.
Yok eger I2C yi anlamak istiyorsan; init, read, write yordamları ayrıntılı olarak açıklamalı. Proteus ta kurarsan sorunsuz olarak çalışacaktır.
Umarım yardımcı olur.
The whole is equal to the sum of parts(Euclid)... The whole is greater than the sum of its parts(Max Wertheimer)...