Hi all i wanted the FX2 to receive a 16 bit address (used to interface with labview)one eg is E012(one of the addressing i need to use), i am using the two registers I2CS and I2DAT. As u all know I2DAT is an 8 bit register as i am oso not sure wheather it is the correct step to write to I2DAT a 16 bit address when I2DAT only holds 8 bit. Or is there any other step, I wanted I2C to to write or read from (in my case labview) Please enlighten me thanks
A 16-bit slave address? If so, it would no longer be I2C and you want to design your own protocol.
My effort will go to ash :( if i am unable to access the 16 bit address(eg E012) to inform FX2 of the subaddress that i want FX2 to access.My purpose is to interface with labview (the addressing are all in 16 bits). one method i can think of is sending 2 seprate byte like send E0 first then send 12 can someone show or advice me how to solve this problem. Thanks in advance.
Are you perhaps not making the distinction between a slave's address on the I2C bus versus a 16-bit address within the slave device? For example a 512 Kbit EEPROM device might have a 0x50 as its 7-bit bus address, but to address the memory within the EEPROM, it takes two bytes of device address following the I2C control byte (slave address plus R/~W bit).
What Are you addressing? How Many slaves are on the Bus? Thousands? After you address a device what you send after that is up to you. If you send two bytes the "FX" (assuming what? an 8052FX?) will have interpret what that means. Since I2C Hardware address are 7 bits how can Labveiw expect more? What is Labveiw using to talk to the I2C device? I assume you have some type of converter
The 8052 Hardware after recognizing its address will return data 8bits at a time. You can combine the bytes as 16, 24, or 32 bit numbers as you like.
FX2 what is FX2 one method i can think of is sending 2 seprate byte like send E0 first then send 12 can someone show or advice me how to solve this problem. if you have a look at an appnote for a/some large serial EEPROM you should get some ideas.
Erik
i think he saysing this;
Cypress Semiconductor EZ-USB FX2 (CY7C68XXX)
i think he saysing this; Is it our job to GUESS? I would never base an answer in what somebody thought the OP ment.
it could be an old Intel 8xC51Fx as well
or, of course, ot could mean "for example"
i am using EZ-USB FX2 CY7C68013, i will go take a look at the appnote again see if i can get some answers.Thanks for ur reply
"i am using EZ-USB FX2 CY7C68013"
Wouldn't it have been so much easier if you had provided that information in the first place?!
"i will go take a look at the appnote again"
What appnote is that? If you provide a full reference - preferably with a link - people will be able to see what you're talking about.
Again, the more information you provide, the more likely you are to get good answers!
You also need to look at your Labview manuals to determine exactly how it sends this "16 bit address"...
see; it were a easy guess to a person whot is profeshional!
The appnote i refer to is the EZ-USB FX2 Technical Reference Manual, it is in PDF format. this maneual can be found in google in the first link. My belongs to the 128 pin TQFP (thin quad flat pack). On page 289 to page 293. On page 292 is the steps i follow. After step 2 sending the slave address (in my case is EC) i need to send an sub address (which is E012, problem i faced) to FX2 that is the address location in labview. i have conplete all other steps (write & read) except the sub address part (not included in the steps) the ic which i am communicating to is AN32057A (it is an LED mangement IC)
"the ic which i am communicating to is AN32057A"
I thought you said you were interfacing with Labview?
So what's this LED chip? Manufacturer? Provide a link to the datasheet!
Either go and troll somewhere else, or at least spend some time and try to be a funny troll.
You mean this: download.cypress.com.edgesuite.net/.../ez_usb_r___technical_reference_manual__trm__14.pdf
yes?
That document isn't really what would usually be described as an "Application Note". An Application Note would illustrate how to Apply the part in a specific application.
What you really need is an application note that describes how to use the I2C controller...
Note that this has nothing to do with Keil software tools - have you tried asking Cypress about this?
see; it were a easy guess to a person whot is profeshional! guessing is easy knowing that you guessed right is impossible.