To: | |
---|---|
Subject: | Re: [ts-7000] Re: I2C interface on TS-7500 |
From: | Jonatan Olofsson <> |
Date: | Thu, 23 Dec 2010 18:00:08 +0100 |
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..
Best regards and Happy Holidays! Jonatan Olofsson On Thu, Dec 16, 2010 at 21:13, jonatan_olofsson <> wrote:
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe __,_._,___ |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | [ts-7000] Re: Programming threads, josue.cubero |
---|---|
Next by Date: | Re: [ts-7000] Re: I2C interface on TS-7500, Jason Stahls |
Previous by Thread: | [ts-7000] Re: I2C interface on TS-7500, jonatan_olofsson |
Next by Thread: | Re: [ts-7000] Re: I2C interface on TS-7500, Jason Stahls |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU