-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/23/10 12:00, Jonatan Olofsson wrote:
> It seems very few people has ever used the I2C on the TS-7500, so the
> documentation is very sparse. I'm determined to write a better one to
> publish once I've successfully figured it out, but as of now, i would need a
> pointer or two.
>
> What I'm trying to accomplish is reading data from a Wii controller to the
> TS. I know the controller works, but all I can seem to get out of it is a
> series of ones (0xFFFFFFFF), wherever i read from or write to. At first i
> thought the initialization was wrong, but after triple-checking everything,
> in that case it must be because i misunderstand the way it sends data.
>
> From what I gather, the data in the TWI_WR_DAT register is sent LSB first.
> Thus, to send the sequence "start - 0xA6 - 0xFE - 0x05 - stop", I should
> write 0x53 to the slave address register (=0xA6 in transferred bytes), then
> 0x05FE to the write data register, and lastly enable the bit to start the
> transmission.
> So my first question is, am I getting these basic things right? It would be
> really nice to hear from someone who successfully implemented something more
> than that i2ctemp example, which really isn't very helpful..
i2c as cool as it is can be a bit of a pain if you're having to write
the low-level interface and aren't quite sure how i2c works :) I'd love
to give you a run down of how I got it working on the 7200 and various
AVR micros but it's been years and I can't remember :) I can say this,
to help myself understand how i2c works I ended up borrowing a i2c
protocol analyzer, if you have a logic analyzer already it may do i2c
decode for you. When I could see what I was transmitting out on the bus
it made debuging where I mucked up the protocol so much easier.
- --
Jason Stahls
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJNE4t8AAoJEBWmhVAMrS/g9toH/1Mo5mUqpK8S6JUjKPdsPQoO
M7gegCx+mj6FXgilzLf4IizlmTISm6PjROHs32lBvoUDpuFXQOXlAp4iztXyjcFE
BRkYnV9pq97uVzB9m9kZ6I8tkWAzxzpsmKkBGMHWO84boo/TQlasu0hct5tpimC7
W34Z8oBglqWlLr+q4ceHnwB9aRLo83AyYi2caLfNdX/CUxEgoIEyy81727828sME
2vhHGLiuE+XWHK9L/qgunRUJVVsItP6imDVI6+rOFzLg2YliUx0eOJ/SdG4iXPi4
E/8m0rw3gnZR1qH5rXD11RN90/Fjy8NvMBgWmtAWOmBRTtWD6mk2tiBLPdKE28U=
=hGjd
-----END PGP SIGNATURE-----
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|