Hi Everybody, I'm experimenting with Infineon's XC161CJ-controller on an Infineon SK-XC16x starter kit. Most of my routines work now, except the I2C-routines. Sending of data works OK, but the errors occur when I want to receive data. Has anybody on this forum written I2C-routines for this controller? And if so, are you willing to share them? Thanks in advance. :) Kind Regards, Dennis Ebben
Hi Dennis, I am currently working with the XC161CJ & the I2C Module. I am using the routines generated by 'Dave'. Haven't got it working yet though... Are you willng to share your code ?, maybe we can help eachother out. Regards, Rolf
Hi, I am FAE for Micro in Germany. I got the following feedback from our end costumer and think it may be usefully for you. Concerning the DAvE generated files there seems to be a "ugly" point. I translate the original message: "Concerning the I²C-interface there are two interrupts 'protocoll' and 'data' interrupt." The costumer was wishing only the data interrupt, "BUT DAvE is generating a interrupt handler for data interrupt with a JUMP to PROTOCOLL interrupt !" If you have first look at the generated code this not visible for you, because both interrupt vectors lay directly each one the other in memory. The first 'data interrupt ' mis initialized by the compiler with twice 0xFFFF what is equal to BSET R15, bit 15. If a data interrupt occurs than twice a BSET R15, bit 15 is executed, before the generated ISR handler is called." The costumer had not selected the register bank switch and so the register R15 was not saved (by the way: it was not used by handler routine). "What exactly happened ? All things went fine, but from time to time the most upper bit of R15 was changed to '1', what is not noted the first view, because this bit is used very seldom. Only if the compiler assume (assign ?) in function the register R15 a word variable (this istoo very seldom) the suspectly errors occur." To find this we needed 2 days. Than we noted an other thing. You need under some circumstances a extra dummy access to read back with the I²C-module. OK, that's is all I know about this, but may be it can help you to find the wrong code sequences. MESSAGE: Do not believe the DAvE can all do for you! We at this time work on a DAvE bug list. (Yes we really found some DAvE bugs ) The second: The I²C module was tested - I had contact to the developer and the test engineer, but with the hardware implementation there are some difficulties. Stefan
Hello Stefan, You can send the I2C routines to this address : davidbrev(at)yahoo.se Thank a lot for your help. David
Hi David, have it done! Check your account. Stefan
Hello Stefan: I'm working with XC167CI, and I'm getting some problems with the I2C routines. I'm only using it to communicate with a 24LC EEPROM, I used SPI and uWire to do this (93 and 95 series EEPROMs) and I2C software implementation is new to me. I'd be gratefull to you if you'd send to me your routines, wich I think will work (more or less) with the XC167CI due to architechtural similarities. My address is alfersi(at)lavhek.com Thanks a lot.
Hi Alberto, no problem. Leave your e-mail here, I will send you asap. Stefan
Sorry Alberto, I was read over your e-mail account. Driver I mailed to you. Check your account. Stefan
Dear Stefan and Friends, I am also working on an I2C – EEPROM(FM24C256) application for XC167, so far I have used Dave generated code but I got into trouble. Writing works fine but reading…not. Stefan, is it possible for me to share your I2C code? My e-mail address is ai(at)home.se With best regards, Atsushi Ishii
Hi Stefan and freinds, I am using the iiC module of the XC161 to communicate to external eeprom. Please can i share you iic files? email:kaleem20@yahoo.com Thanks in advance Kaleem.
Hi Stefan! I'm also working with a XC161 and i didn't get my routines working. Can you please send me the routines. Thank you in advance. email: tinytove@gmx.at
Hi Ludwig, I sent it. Sorry for delay. Stefan
Hello Stefan, i have the same problem XC167 with 24LC16B serial eeprom. would you please send me the routines? Thomas
Hi Thomas, that is no problem, but I need your e-mail address to send it. Best regards - Stefan
Hello Stefan, my email address is thomas.schneider@berger-lahr.com thank you Thomas
Hi Thomas - done !! Stefan
Hi Stefan, could you (or someone who have also the code) please send me IIC-code? best regards, Karl E-Mail:koarl70(at)gmx.at
View all questions in Keil forum