I2C slave also
Rsadeika
Posts: 3,837
I am working on a device/sensor that will be based on the SX. I am also trying to figure out how to use SX/B to implemnet the I2C command as it would pertain to a slave device. I asked a similar question about this before, and the answer was, if I read it correctly, the I2C command is only for a master. So, in essence, can not be used in a or for a slave device. Maybe, nobody knows for sure, in the next release of SX/B this will be taken care of.
<edit: I messed up here, this was supposed to be a reply to the I2C slave post>
Ray
Post Edited (Rsadeika) : 1/26/2006 3:59:53 PM GMT
<edit: I messed up here, this was supposed to be a reply to the I2C slave post>
Ray
Post Edited (Rsadeika) : 1/26/2006 3:59:53 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
I got all the docs and the example code in asm, I have been looking at that stuff for the last month or so. I got a mix of different examples that show me how to get some of what I need in SX/B, and some of it in asm. The problem is, I want to do it all in SX/B, that way I have a better understanding if something needs to changed or I need to optimise or add some new feature.
I have gone the route of compiling the SX/B example·part, then looking at the asm lst file, and then trying to figure out the asm part of what I need. My device/sensor is not going to be a snazzy flashing LED. I feel sort of comfortable with the inline aspect of SX/B, but I am finding it very difficult, or near impossible to refit with asm code in an SX/B environment. To bad you can not do inline SX/B within an asm environment. I can hear the asm pros saying "Is this guy nuts!".
You would think that after all these years their would appear, a language, that would incorporate asm, C or Basic into one, so you would have the best of all worlds, and the best of one, also. Oh, well, more decissions.
Thanks
Ray
So you want a language called ABC hun?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan