Author Topic: hlp/adv: LTC2400 + arduino + adum  (Read 2443 times)

0 Members and 1 Guest are viewing this topic.

Offline GigaJoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 516
  • Country: ca
hlp/adv: LTC2400 + arduino + adum
« on: March 13, 2018, 04:51:09 pm »
Hello everyone,

need some help advice on:

LTC2400 connected directly by SPI to arduino board , everything fine , and there is below SPI protocol:
( as you can see all, perfect, top channel enable chip, 2-nd spi data, 3-rd  clock; I'm able to decode it  )


Then I added ADUM1412A directly between LTC and arduino ....

ADUM on ADC, LTC side:


ADUM on arduino side:

( sorry images not in scale, but channel sequence the same , despite color )

I don't quite understanding what happens with LTC output when the arduino was replaced by ADUM ....
it a direct connection;  +5V feed on both ends
I also may assume, ADUM malfunction ..... I have no clue, it my first attempt to use isolator  ...
« Last Edit: March 13, 2018, 05:13:05 pm by GigaJoe »
 

Offline cellularmitosis

  • Supporter
  • ****
  • Posts: 1111
  • Country: us
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #1 on: March 13, 2018, 05:43:11 pm »
Looking at the way some of those pulses aren't evenly spaced, I'd say your problem is analog.  Getting an optoisolator to behave the way you'd like can also be similarly frustrating.  https://github.com/pepaslabs/Electronics/wiki/Designing-a-TTL-Serial-Opto-isolator

Do you have a scope?  I'd say that's the next step in debugging.
LTZs: KX FX MX CX PX Frank A9 QX
 

Offline GigaJoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 516
  • Country: ca
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #2 on: March 13, 2018, 06:00:55 pm »
let put jitters an so things to aside ...
Why:   replacing arduino board by ADUM isolator , LTC stops to produce 32 cycles  on the clock line ( 3-rd lime) ???
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15408
  • Country: fr
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #3 on: March 13, 2018, 07:25:43 pm »
Could you post a schematic?
Are both sides of the isolator properly powered?
Is the part genuine?
 

Offline GigaJoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 516
  • Country: ca
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #4 on: March 13, 2018, 08:52:03 pm »
+4.95 on LTC side +5.00 on arduino side,
schematics are simple ... direct connections from LCT to the chip, 10uf caps on both power lines for adum, that it ...

couple chips bought in surplus store (but it may be fake):
(crappy image by phone ..; so label looks awful )



I will get 1402C, for a test tomorrow


 

Offline GigaJoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 516
  • Country: ca
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #5 on: March 15, 2018, 12:47:19 am »
purchase ADUM1402C  - same picture ...
(chip are diff kind, diff source - highly unlikely it bad ... )


schematic:  (green - ADC LTC2400 ; blue ADUM1402C)
resistors need to set high during ADC startup, force it to start in a specific mode.


scope:
purple - chip select ( arduino side, HI to LOW - trigger measure cycle )
blue -  clock LTC to adum (  LTC  side)
yelloy - clock adum to arduino ( arduino side)


as I said , should be 32 pulses (blue one) ... not 6,  like that

HELP, HELP,  |O

(i'm wonder that i have to set some buffer between LTC and ADUM)
« Last Edit: March 15, 2018, 01:38:21 am by GigaJoe »
 

Offline tombi

  • Regular Contributor
  • *
  • Posts: 163
  • Country: au
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #6 on: March 15, 2018, 01:50:07 am »
Silly question in your test setup - are the grounds on either side of the isolator connected?

If not then which side did you connect your logic analyser/scope ground to?

You will get weird results if you don't use the same ground as the side you are watching.

Tom
 

Offline KrudyZ

  • Frequent Contributor
  • **
  • Posts: 293
  • Country: us
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #7 on: March 15, 2018, 02:04:17 am »
The LT2400 SCK pin is bi-directional.
The mode is selected based on the state of SCK when CS goes low.
Could this be your problem?
Also make sure you have outputs and inputs hooked up correctly.
What is the 74LS00 doing in your schematics??? wrong symbol?
 

Offline GigaJoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 516
  • Country: ca
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #8 on: March 15, 2018, 03:07:41 am »
just repeat again:
no adum , LTC directly connected to SPI arduino = no prbl,  all ideal ( 1st post , 1st diagram)
adding adum between LTC and arduino -something  started  to behave .....   ( I assumed it adum, but had replace it with identical result ....)

LTC has many modes , one of them, internal oscillator, output - clock  and spi data;  input - ChipSelect ; unidirectional.

74LS00 - wrong, just draw it in a rush ...

Ground  are correct point - basically i shorted both grounds by scope, but see no different at all when I measure it separately , absolute the same picture.

I"m thinking:
( https://www.eevblog.com/forum/projects/ppmgeek!-5-5-digit-dvm-volt-ref-cal-(for-arduino-or-any-uc-w-spi)/?action=dlattach;attach=61925;image )
demo board, add buffers like on schematic above , and then adum ?  ( have no clue, which direction to dig in )

« Last Edit: March 15, 2018, 03:48:09 am by GigaJoe »
 

Offline KrudyZ

  • Frequent Contributor
  • **
  • Posts: 293
  • Country: us
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #9 on: March 15, 2018, 04:57:18 pm »
How did you hook up the CTRL pins on the ADUM1412?
It supposedly makes no difference if the part is powered, but who knows.
I would try tying them both low to see if it has any effect.


 

Offline GigaJoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 516
  • Country: ca
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #10 on: March 15, 2018, 06:29:14 pm »
control pin -on air - I did think about it, had thy to HI , LO ... no changes ...

I will try this thing:
LTC ->  74HC14 ( 2 in seq. ) -> adum -> ( maybe another 74HC14 x2 ) -> arduino
need some chips , make small board , test it .... will see ...
 

Offline KrudyZ

  • Frequent Contributor
  • **
  • Posts: 293
  • Country: us
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #11 on: March 16, 2018, 12:15:04 am »
Maybe test the ADUM1412 by itself first.
The reason why you only get six clocks or so is because the Arduino actually sees 32.
After all it is driving the CS line, right?

 

Offline GigaJoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 516
  • Country: ca
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #12 on: March 16, 2018, 03:33:53 am »
O! I see, the SC time signal are identical in all cases then it good and bad,   around .25 - .27ms
when I change to ADUM1402C,  I got the same picture.

I will do by steps ...
isolate by Schmitt-trigger,   then maybe second trigger , then add adum ... will see ...
 

Offline KrudyZ

  • Frequent Contributor
  • **
  • Posts: 293
  • Country: us
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #13 on: March 16, 2018, 04:34:55 pm »
Here is my guess at what is actually happening.
The Arduino is not just controlling the CS line, but also driving the clock (rather than receiving it).
The drive strength of the LTC2400 is not very high, so the Arduino driver overpowers it.
When you insert the ADUM1412, you buffer the LTC2400 SCK driver and the ADUM1412 driver strength is comparable to the Arduino ports which is why you see the mess on the scope.
You should check the SCK line with the setup where you have a direct Arduino connection with a scope as well. You should see some bus contention in that setup, but the Arduino is strong enough to maintain proper logic levels for your logic analyzer to not show the contention.
 

Offline KrudyZ

  • Frequent Contributor
  • **
  • Posts: 293
  • Country: us
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #14 on: March 16, 2018, 04:42:31 pm »
My recommendation would be to just flip around the SCK in the ADUM1412 and have the Arduino drive it like a normal SPI peripheral.
Controlling the CS line from the Arduino, but then clocking it in from an external clock is a bit weird...
You just need to make sure that the SCK is in default low, so that when CS is asserted the LTC2400 is set to external clock mode.
 

Offline GigaJoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 516
  • Country: ca
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #15 on: March 17, 2018, 02:44:20 am »
"but also driving the clock (rather than receiving it)"  O, please ...

Page 14:
 

Offline KrudyZ

  • Frequent Contributor
  • **
  • Posts: 293
  • Country: us
Re: hlp/adv: LTC2400 + arduino + adum
« Reply #16 on: March 17, 2018, 05:38:51 am »
How are you programming the Arduino?
Is it driving the clock or not?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf