to the device? oI2CM.Location is the address you set to access the
internals of the device. It is either unused for mode cv7bit, an 8 bit
register address for cv10bit or a 16 bit address for cv23bit. The
oI2CM.node attribute is the I2C address/2 of the device. The ooPIC adds
in the LSB when it does reads or writes. The ooPIC completely hides the
details of the I2C transaction. All you need to know is the device
address, how to address the internals and then you just do reads or writes.
DLC
ngocthach1130 wrote:
>okay lets ignore the previous code and work at one problem at a time.
>Say i want to replicate code like the example i posted in the first
>part of my post. With start signal, address,length,command,stop. Can i
>just use simple layout like
>i2c.value=ff *what variable type goes here? should i send it as 255?
>i2c.value=00 *FF 00 is the start sequence for the RFID module it seem
>i2c.value=42 *developer for i2c stated address is 42 but with 7bit
>addressing mode you shifted right so 84 for write and 85 for read
>i2c.value=81 *get firmware command
>i2c.value=82 *checksum
>
>places where it confuse me is PicMicro state the address of the slave
>during the transmission sequence. OOpic seem to do this in the i2c.node
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment