Search found 12 matches

by amaitra
Mon Jul 25, 2011 4:41 pm
Forum: SUB-20 General Discussion
Topic: SPI data transfer issue
Replies: 43
Views: 88467

Re: SPI data transfer issue

Thanks!

Amit
by amaitra
Mon Jul 25, 2011 10:28 am
Forum: SUB-20 General Discussion
Topic: SPI data transfer issue
Replies: 43
Views: 88467

Re: SPI data transfer issue

No problem. Thanks for your help so far.

Just tell me - why did you suggest the configuration you did. That is all I want to know. Because we might end up using sub-20 in another applications as well.

Thanks in advance.

Regards,

Amit
by amaitra
Mon Jul 25, 2011 7:05 am
Forum: SUB-20 General Discussion
Topic: SPI data transfer issue
Replies: 43
Views: 88467

Re: SPI data transfer issue

I had grown up to believe that as well. The other thing about digital electronics - unless you really work at it and make sure, it does NOT work! But the configuration you suggest and the one I try are sort of mirror images - and they BOTH work. I am perfectly happy to use your suggestion, it will h...
by amaitra
Mon Jul 25, 2011 5:01 am
Forum: SUB-20 General Discussion
Topic: SPI data transfer issue
Replies: 43
Views: 88467

Re: SPI data transfer issue

Hi there,

There was some issue with the connectivity. But the following config seems to work most reliably ...

SPI_ENABLE | SPI_CPOL_FALL | SPI_SETUP_SMPL | SPI_MSB_FIRST | SPI_CLK_1MHZ;

Could this work by "accident"?

Amit
by amaitra
Thu Jul 21, 2011 12:38 pm
Forum: SUB-20 General Discussion
Topic: SPI data transfer issue
Replies: 43
Views: 88467

Re: SPI data transfer issue

Let me see if I understand correctly. SPI_SMPL_SETUP => write from sub-20 will be on trailing edge of sck. But as per the documentation - 6802-2 (slave) will READ on the leading edge. (wouldn't slave make errors on read?) CPOL=1 the base value of the clock is one => SPI_CPOL_FALL? http://en.wikipedi...
by amaitra
Thu Jul 21, 2011 10:50 am
Forum: SUB-20 General Discussion
Topic: SPI data transfer issue
Replies: 43
Views: 88467

Re: SPI data transfer issue

This is the posting with all the info.

viewtopic.php?f=2&t=190&p=1161#p1161

I would appreciate any suggestions or thoughts you have,

Regards,

Amit
by amaitra
Thu Jul 21, 2011 10:48 am
Forum: SUB-20 General Discussion
Topic: SPI data transfer issue
Replies: 43
Views: 88467

Re: SPI data transfer issue

It does not work! That is the prolbem and my question is what to do! The rest is data I am giving from what I know. The problem seems to be; write to 6802-2 works ok, 6802-2 outputs the correct data on SPI bus. But the sub-20 reads it incorrectly - value at the USB level and "library" on PC is not w...
by amaitra
Thu Jul 21, 2011 8:49 am
Forum: SUB-20 General Discussion
Topic: SPI data transfer issue
Replies: 43
Views: 88467

Re: SPI data transfer issue

Some more quotes from the LTC6802-2 data sheet. When the data is being sampled for reading seems to be the key to be problem. As mentioned, the data on the SPI bus is correct if we sample on the leading edge. Thanks in advance for your help. Regards, Amit ------------------- Data Link Layer Clock Ph...
by amaitra
Thu Jul 21, 2011 7:10 am
Forum: SUB-20 General Discussion
Topic: SPI data transfer issue
Replies: 43
Views: 88467

Re: SPI data transfer issue

xol, That is what we exactly did. Connect a scope and see the individual transaction bit by bit. Summary: The writes to the 6802 are going ok. The command to output data also goes through ok. LTC6802-2 outputs the expected data on SPI (we are reading back what we wrote). But the output of the sub-20...
by amaitra
Sun Jul 17, 2011 8:50 am
Forum: SUB-20 General Discussion
Topic: SPI data transfer issue
Replies: 43
Views: 88467

Re: SPI data transfer issue

Thanks, I will try to get the scope traces for you. As I mentioned in the initial mail, for getting started I am merely trying to write and then read a configuration register. I do not read back what I wrote. I have no access to the 6802 registers - since this is the transport and that is not workin...