23 Sep 2008 08:25 AM |
|
Does any have the spec for the unsupported i2c driver for wince5.0?
what I meant is how to use it to read a word from a slave device.
I have a smart battery on the smbus(I believe the i2c driver uses the smbus as the i2c)
and I can transmit to the battery and it ACK back(seeing from the logic analyzer), but the A404 processor said
it didn't get the ACK.
So, I am not sure if this is because I write something wrong or there is still something
wrong with the board(needs pull up resistors)
I am using the LOLO to test this
w /w 0x80000f48 0x822
w /w 0x80000f44 0x125
w /b 0x80000f40 0x16
w /b 0x80000f40 0x16
w /b 0x80000f40 0x17
x /b 0x80000f40
x /b 0x80000f40
and the processor reg said it failed ACK
losh> x /w 0x80000f44 6
0x80000f44 00000125 00000822 00000183 00000015 %..."...........
0x80000f54 00000000 00000000 ........
|
|
|
|
02 Oct 2008 09:46 AM |
|
Can the LogicPD people post the spec on how to use it (the i2c driver)
or added that to the download website please.
Without documentation, no one can really use the driver.
|
|
|
|
07 Jan 2009 08:29 AM |
|
there is a i2c doc which is the smbus for those who need this info.
I don't think the lpd people are going to answer this question posting here, but here goes.
is the ReadFile() to access the i2c driver thread safe?
|
|
|
|
mikea@logicpd.comNew Member Posts:
27 Jan 2009 01:10 PM |
|
The driver was written to use a critical section around reads/writes to the I2C registers. So, the hardware accesses are protected.
|
|
|
|