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
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!
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?
So we have Labview -> USB -> EZ-USB -> I2C -> LED Chip.
Assuming Labview sends USB Data to your Micro and that part works. That brings us to the next step:
EZ-USB -> I2C -> LED Chip
What Dat does LAbview leave in the chip? What does the LED chip need? In between those two statements is your code. If it means truncating the address do it. The micro will be the address decoder. LAbview send the control message. The LED performs the correct action. Your Micro is the middle man (translator).