This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS131M04: - Not able to use simultaneous sampling

Part Number: ADS131M04

Hello,

I am using ADS131M04 IC in one of our projects. So I am facing some issues in the IC. The simultaneous sampling is not working properly. When I enable all channels and read the data of all the channels then I am facing some data shifts in the output data only the first channel data is correct and the other channel's data is not correct as you can see in the attached image. 

When I am enabling the single channel it is working fine I can read the correct data of all the channels by enabling a single-single channel. May I know what is the reason behind this?

Any help would be appreciable.

Thanks and Regards

Sarthak Malik

  • Hi Sarthak,

    Your attached image was missed. I'm not sure what your image will show, however can you provide your timing plot of SPI interface captured with oscilloscope? and also let me know your ADC configuration. 

    Best regards,

    Dale

  • Hello

    Sorry, I forgot to attach the Image. Actually, I facing some data shift in the simultaneous sampling. as you can see in the attached image. And these are the ADC register configuration as you can see below.

    Register 0 0x2405
    Register 1 0x500
    Register 2 0x500
    Register 3 0xc
    Register 4 0x6666
    Register 5 0x0
    Register 6 0x600
    Register 7 0x0
    Register 8 0x0
    Register 9 0x800
    Register 10 0x0
    Register 11 0x0
    Register 12 0x8000
    Register 13 0x0
    Register 14 0x800
    Register 15 0x0
    Register 16 0x0
    Register 17 0x8000
    Register 18 0x0
    Register 19 0x800
    Register 20 0x0
    Register 21 0x0
    Register 22 0x8000
    Register 23 0x0
    Register 24 0x800
    Register 25 0x0
    Register 26 0x0
    Register 27 0x8000
    Register 28 0x0

    Waiting for your response! Why am I facing this issue with simultaneous sampling?

    Thanks 

    Sarthak Malik

  • Hi Sarthak,

    Thanks for providing your register configuration. Can you provide timing plots captured with an oscilloscope including /CS, SCLK, DIN and DOUT? that will be very helpful to address the issue. Also, can you clarify the data for which channel in your image? it will be great if you can share your raw data. 

    Best regards,

    Dale

  • Hello Dale,

    Thanks for the update Currently I am unable to provide the timing plots if you can't do anything without timing plots then I can arrange the timing plots. And In the Image, it is the second channel. Only the first channel is working fine other 3 channels are behaving the same as you can see in the shared image. But it's happening in the simultaneous sampling only. when I am enabling the one-by-one channel and reading the data then all channels are working fine. I am also sharing the Raw data of channel 2 on enabling the simultaneous sampling. 

    Channel_2_raw_data.txt
    Channel 2
    -114880
    -70058
    -78112
    -74045
    -78172
    -77490
    -79925
    -78785
    -78040
    -79122
    -78049
    -74720
    -72324
    -71367
    -74703
    -80003
    -79267
    -70985
    -69592
    -70286
    -74383
    -73220
    -80906
    -71789
    -76478
    -76802
    -73935
    -75349
    -73734
    -76961
    -76690
    -76404
    -75267
    -77834
    -77903
    -76560
    -78054
    -74771
    -77279
    -79497
    -76563
    -77543
    -76859
    -75229
    -75192
    -77603
    -81088
    -75366
    -80206
    -75602
    -78807
    -74915
    -75415
    -76703
    58403
    -76468
    -71914
    -73541
    -72240
    -68127
    -71728
    -74637
    -75684
    -77701
    -77408
    -73683
    -72915
    -78679
    -76381
    -80833
    -80550
    -79466
    -76473
    -73555
    -77692
    -76418
    -77973
    -78658
    -77709
    -79814
    -73443
    -75811
    -74300
    -77187
    -83693
    -73748
    -77905
    -75727
    -74083
    -78808
    -76326
    -77369
    -69952
    -71103
    -72922
    -76788
    -76538
    -74362
    -79082
    -73902
    -74687
    -73428
    -71059
    -69455
    -75123
    -74830
    -76465
    -72499
    -73792
    -75168
    -77717
    -78052
    -73059
    -75202
    -74688
    -74759
    -79309
    -76120
    -74043
    -79315
    -74752
    -73700
    -75689
    -79974
    -73849
    -77100
    -80987
    -73869
    -74132
    -76146
    -76495
    -77946
    -75668
    -74908
    -74923
    -130869
    -77708
    -76014
    -73817
    -78598
    -70172
    -71121
    -74564
    -78135
    -71844
    -71593
    -80841
    -77629
    -76883
    -69247
    -77737
    -79244
    -75274
    -77056
    -75415
    -76707
    -71390
    -76273
    -75968
    -75579
    -76675
    -70786
    -82679
    -72255
    -70584
    -73893
    -77581
    -76835
    -76171
    -78477
    -74057
    -76949
    -68669
    -74145
    -72208
    -74340
    -75709
    -77557
    -74694
    -76891
    -75835
    -74404
    -72485
    -73624
    -78859
    -76095
    -76866
    -71976
    -72415
    -75717
    -78117
    -74199
    -77933
    -78826
    -77506
    -78566
    -76749
    -75952
    -71440
    -81090
    -74632
    -73015
    -72361
    -76897
    -76214
    -76399
    -79235
    -78815
    -73390
    -74341
    -78845
    -76933
    -75711
    -73358
    -70512
    -73444
    -76637
    -76222
    -81175
    -74171
    -75225
    -70590
    -75267
    -79140
    -72619
    -74684
    -80404
    -69342
    -74944
    -77393
    -83072
    -74315
    -77059
    -74708
    -77012
    -72521
    -74466
    -80983
    -75734
    -77053
    -78419
    -79888
    -75370
    -77827
    -71061
    -75889
    -83659
    -77312
    -80636
    -69918
    -78331
    -76880
    -76632
    -77667
    -77964
    -73680
    -72407
    -74461
    -78674
    -78827
    -75148
    -73428
    -79532
    -74389
    -70186
    -76137
    -73775
    -78991
    -78043
    -76250
    -74928
    -79459
    -82381
    -75712
    -79714
    -74478
    -77997
    -79209
    -72134
    -73717
    -76800
    -78468
    55436
    -77378
    -76786
    -79567
    -76301
    -72818
    -76588
    -75180
    -77679
    -76230
    -77825
    -71743
    -79684
    -77002
    -79854
    -77260
    -78927
    -80128
    -77763
    -78622
    -73568
    -77158
    -79204
    -73951
    -79788
    -75229
    -76239
    -78317
    -74093
    -76947
    -75188
    -78242
    -72588
    -78283
    -77054
    54418
    -79137
    -74539
    -77888
    -72652
    -79973
    -73847
    -79253
    -82297
    -73005
    -75574
    -71339
    -81334
    -77486
    -77688
    -75526
    -72110
    -73434
    -73945
    -80595
    -79590
    -70234
    -68980
    -76180
    -80142
    -81126
    -74359
    -76325
    -66615
    -76583
    -74715
    -77773
    -71455
    -77341
    -72976
    -79970
    -74084
    -74834
    -81921
    -77114
    -79508
    -78409
    -80721
    -77103
    -76446
    -78064
    -77870
    -76793
    -76834
    -81871
    -73943
    53424
    -75072
    -79465
    -70865
    -72508
    -73152
    -78391
    -74864
    -74984
    -83763
    -77775
    -80325
    -77119
    -80436
    -75230
    -75778
    -76752
    -80733
    -77632
    -73819
    -74809
    -76535
    -69863
    -73285
    -77324
    -70873
    -79005
    -76119
    -76370
    -75536
    -75854
    -82907
    -72791
    -77947
    -81500
    -75176
    -74394
    -69634
    -75239
    -79771
    -74708
    -75111
    -79350
    -82093
    -76976
    -80454
    -72682
    -74067
    -83513
    -81950
    -75052
    -81236
    -78623
    -75675
    -76654
    -82465
    -75949
    -83010
    -77926
    -80778
    -81216
    -79035
    -78530
    -75841
    -75628
    -76610
    -71983
    -80074
    -73248
    -80005
    -80374
    -76624
    -78162
    -79837
    -79300
    -80513
    -71529
    -75905
    -77422
    -73052
    -77810
    -74392
    -78638
    -82411
    -74796
    -79927
    -76507
    -81512
    -72947
    -77642
    55144
    -75385
    -73351
    -80883
    -77493
    -76727
    -79851
    -74818
    -75050
    -79007
    -81213
    -75378
    -80213
    -130851
    -79340
    -78681
    -78891
    -75148
    54132
    -75161
    -80715
    -80557
    -78195
    -78310
    -78855
    -79107
    -76178
    -78666
    -78423
    -78961
    -78907
    -130871
    -81310
    -79675
    -77070
    -75769
    -75761
    -81600
    -86573
    65155
    -77940
    -77180
    -82154
    -80710
    -76934
    -76384
    -81360
    -79999
    -79915
    -83055
    -79027
    -77056
    -75993
    -77148
    -76765
    -74002
    -79260
    -74473
    -77501
    -72320
    -71355
    -78499
    -80449
    -79874
    -80939
    -75365
    -84189
    -77505
    -79005
    -74627
    -78120
    -75853
    -70627
    -80830
    -76023
    -81774
    -76026
    -75001
    -79492
    -79902
    -78706
    -75784
    -75291
    -75510
    -74066
    -73730
    -75181
    -76130
    -82974
    -80552
    -81672
    -80502
    -75569
    -81395
    -76099
    -79823
    -75429
    -78106
    -79603
    -73018
    -72910
    -76349
    -79190
    -71738
    -75441
    -77301
    -80360
    -73367
    -130862
    -76096
    -70707
    -71757
    -77326
    -74109
    -75601
    -73107
    -78683
    -79481
    -76620
    -76231
    -70698
    -75153
    -72452
    -80465
    -78550
    -78642
    -72686
    -80551
    -73736
    -78253
    -75374
    -72204
    -81220
    -79098
    -77615
    -74919
    -78131
    -76692
    -75947
    -78257
    -72699
    -84110
    -77417
    -74129
    -79920
    -73380
    -74580
    -80935
    -76087
    -73328
    -72355
    -78516
    -74307
    -80731
    -77854
    -81337
    -75504
    -81292
    -80160
    -81252
    -79877
    -80184
    -80462
    -74866
    -72296
    -79000
    -78980
    -76108
    -79709
    -72539
    -76159
    -79103
    -76481
    -77154
    -74636
    -75444
    -79617
    -74290
    -79972
    -74919
    -79976
    -73641
    -73796
    -69121
    -76162
    -77890
    -79751
    -73384
    -78232
    -73639
    -72566
    -74762
    -75909
    -77005
    -74392
    -76492
    -75817
    -75622
    -73398
    -77150
    -76780
    -76468
    -70392
    -78866
    -76494
    -72757
    -79217
    -78580
    -78201
    -77348
    -77946
    -79205
    -72730
    -77020
    -77303
    -74327
    -80856
    -79897
    -75162
    -76326
    -79862
    -74241
    -78819
    -78000
    -78555
    -82077
    -82134
    -73676
    -82170
    -78014
    -76478
    -70660
    -69646
    -78598
    -76913
    -73936
    -74867
    -74770
    65179
    -81585
    -77033
    -76816
    -76380
    -77693
    -84361
    -73273
    -73878
    -79970
    -75324
    -78377
    -74532
    -76240
    -76381
    -71502
    -82650
    -69142
    -75999
    -80507
    -72597
    -74402
    -70967
    -76113
    -73137
    -76318
    -73737
    -77499
    -77335
    -79959
    -79355
    -78604
    -76729
    -78592
    -78907
    -81275
    -77560
    -81824
    -79639
    -77200
    -72106
    -80240
    -78611
    -76797
    -74273
    -75152
    -77367
    -74313
    -79806
    -74234
    -74528
    -72431
    -75834
    -73613
    -72181
    -77767
    -81302
    -74786
    -78100
    -75823
    -79426
    -75918
    -79178
    -76232
    -75781
    -77175
    -73808
    -70775
    -74009
    -77544
    -77723
    -75063
    -78724
    -76126
    -77244
    -72618
    -79722
    -76705
    -76474
    -77629
    -82271
    -83061
    -82464
    -76426
    -79196
    -77260
    -83536
    -71836
    -73226
    -80129
    -81632
    -74853
    -77315
    -77754
    -81995
    -80485
    -81169
    -82565
    -80145
    -78586
    -78296
    -72451
    -78368
    -80440
    -74821
    -76824
    -74676
    -76741
    -77610
    -77776
    -80520
    -77986
    -75643
    -78209
    -80316
    -75171
    -79801
    -79348
    -75099
    -82572
    -77414
    -79257
    -79249
    -74670
    -82643
    -79751
    -77933
    -77843
    -80345
    -81244
    -77125
    -80496
    -77370
    -81267
    -76766
    -75860
    -80419
    -76022
    -78484
    -79390
    -79471
    -81157
    -82432
    -80291
    -76610
    -83879
    -81448
    -77064
    -78537
    -76310
    -78606
    -79481
    -80352
    -79283
    -82007
    -77144
    -78207
    -75963
    -75955
    -78999
    -78508
    -73177
    -76121
    -79193
    -69147
    -77489
    -74118
    -69232
    -80103
    -80074
    -73740
    -83549
    -77851
    -77617
    -74194
    -79454
    -80462
    -75216
    -83664
    -82116
    -74682
    -77477
    -77515
    -74395
    -79601
    -79335
    -80307
    -82504
    -79311
    -77398
    -85431
    -75827
    -83637
    -80712
    -82042
    -76628
    -80125
    -76412
    -79365
    -76016
    -78469
    -78524
    -79818
    -70000
    -78983
    -78465
    -77496
    -78558
    -72419
    -80029
    -83626
    -78726
    -73345
    -78762
    -79103
    -77574
    -79803
    -80755
    -78228
    -79171
    -76570
    -74217
    -77904
    -78966
    -80957
    -78251
    -76622
    -78940
    -81898
    -80313
    -76171
    -77893
    -74884
    -76663
    -72848
    -74074
    -79702
    -75797
    -77918
    -80125
    -79160
    -80703
    -82035
    -77910
    -81640
    -75892
    -79249
    -77794
    -80266
    -81755
    -76987
    -79084
    -78876
    -78400
    -130878
    -79001
    -75792
    -73207
    -79402
    -80911
    -79676
    -78876
    -81665
    -82856
    -79881
    -78445
    -80900
    -77368
    -79693
    -74394
    -77583
    -82806
    -78430
    -80996
    -81853
    -78620
    -81417
    -78368
    -79370
    -75218
    -76776
    -81898
    -80979
    -77755
    -84133
    -78219
    -77779
    -77735
    -78329
    -82967
    -79258
    -80780
    -81171
    -82112
    -77396
    -80896
    -79127
    -82781
    -76529
    -79700
    -77968
    -81923
    -78488
    -79860
    -74232
    -77388
    -78837
    -83752
    -82456
    -78845
    65062
    -74950
    -79848
    -74716
    -79559
    -75668
    -80731
    -79670
    -77182
    -78860
    -79074
    -80573
    -80332
    -76282
    -76613
    -83147
    -77354
    -80313
    -79890
    -76996
    -77737
    -77021
    -75191
    -81084
    -78190
    -80156
    -78002
    -80289
    -78014
    -81940
    -82182
    -81871
    -80348
    -81939
    -76350
    -74403
    -71949
    -73210
    -76516
    -82428
    -82275
    -78303
    -76289
    -77488
    -83717
    -78898
    -77598
    -81495
    -78965
    -78301
    -80220
    -79990
    -80940
    -75339
    -76427
    -79961
    -73941
    -78870
    -75478
    -78282
    -81669
    -73253
    -76236
    -77352
    -82853
    -79241
    -77033
    -78065
    -82032
    -70882
    -81730
    -73618
    -79736
    -77239
    -76289
    -77214
    -79403
    -79404
    -79989
    -78177
    -76638
    -80315
    -83747
    -78504
    -82124
    -75907
    -79396
    -75238
    -82665
    -79436
    -84044
    -76863
    -82268
    -77244
    -80570
    -80346
    -77771
    -83459
    -83792
    -84203
    -81228
    -78586
    -79897
    -74939
    -78063
    -76997
    -77231
    -76660
    -77965
    -82463
    -78212
    -82285
    -78815
    -76991
    -80725
    -72745
    -77737
    -80211
    -74984
    -80265
    -76410
    -81498
    -75662
    -75480
    -80810
    -78186
    -85522
    -77302
    -81360
    -74877
    -82194
    -74189
    -77160
    -81448
    -73524
    -74664
    -84506
    -79654
    -81692
    -79525
    -80282
    -80167
    -80349
    -78059
    -80733
    -80683
    -74456
    -76143
    -80548
    -80094
    -81166
    -80384
    -78573
    -82783
    -81741
    -75268
    -76310
    -80452
    -86727
    -80498
    -75082
    -77278
    -76983
    -79030
    -69172
    -71110
    -76415
    -76797
    -79491
    -78015
    -81398
    -76640
    -78765
    -76716
    -74274
    -75174
    -69792
    -81913
    -76499
    -77921
    -74795
    -75527
    -78173
    -73811
    -80202
    -74899
    -78122
    -73500
    -78190
    -84928
    -79933
    -80752
    -79792
    -72844
    -74015
    -77226
    -77172
    -77961
    -78684
    -77714
    -76876
    -82162
    -78014
    -80383
    -82264
    -72390
    -77558
    -75633
    -81060
    -80854
    -74304
    -77110
    -75987
    -77712
    -77880
    -79879
    55318
    -77157
    -77250
    -74266
    55941
    -83506
    -79245
    -75932
    -80594
    -76486
    -77584
    -77038
    -79668
    -77264
    -79189
    -76834
    -80813
    -77579
    -84082
    -75009
    -75230
    -78965
    -75415
    -76316
    -79732
    -77533
    -73147
    -77854
    -70287
    -77944
    -79930
    -79573
    -74128
    -78383
    -74572
    -81446
    -80174
    -84413
    -77193
    -72493
    -79945
    -71817
    -71401
    -69658
    -76101
    -75214
    -76446
    -64263
    -78282
    -77078
    -82579
    -79299
    -79648
    -76532
    -76701
    -72767
    -71069
    -80617
    -79782
    -78003
    -76836
    -77960
    -72296
    -74630
    -75685
    -78803
    -77605
    -77710
    -79156
    -81687
    -74591
    -81610
    -77090
    -76059
    -80079
    -77323
    -80362
    -82990
    -78348
    -79354
    -75658
    -81199
    -82834
    -75303
    -83220
    -75655
    -83911
    -79786
    -81575
    -73042
    -79705
    -81314
    -77749
    -74453
    -79345
    -77821
    -76596
    -79732
    -77946
    -79392
    -78247
    -72628
    -76547
    -83185
    -74155
    -80013
    -77460
    -82693
    -82856
    -80035
    -83409
    65211
    -79964
    -79605
    -79928
    -82630
    -84041
    -81759
    -81423
    -77874
    -79821
    -77935
    -80727
    -79725
    -80555
    -83455
    -77332
    -78475
    -76693
    -81230
    -79274
    -81903
    -82603
    -81568
    -80063
    -72988
    -82628
    -79932
    -130865
    -84842
    -79862
    -82706
    -81998
    -79366
    -76542
    -82435
    -83766
    -82391
    -78076
    -80825
    -78232
    -73925
    -77513
    -81738
    -75498
    -76383
    -78840
    -81092
    -85620
    -82518
    -79702
    -83283
    -76933
    -130870
    -80104
    -80806
    -83539
    -79663
    -79114
    -78398
    -75691
    -80213
    -78371
    -77686
    -80581
    -80000
    -78629
    -80549
    -78519
    -80724
    -82185
    -82505
    -83337
    -78219
    -82744
    -79637
    -83157
    -74401
    -80809
    -79794
    -82398
    -78537
    -84668
    -80117
    -80615
    -79674
    -82694
    -73985
    -77480
    -76126
    -80905
    -77878
    -79957
    -87517
    -73839
    -70301
    -82544
    -81510
    -83225
    -72193
    -70030
    -86868
    -69064
    -77545
    -81127
    -78043
    -86769
    -80835
    -79329
    -82639
    -72787
    -78568
    -77861
    -84804
    -83612
    -77835
    -84540
    -78568
    -81110
    -78899
    -80148
    -82843
    -82389
    -80215
    -85006
    -80798
    -77916
    49454
    -81610
    -80427
    -80964
    -79992
    -81079
    -77281
    -77435
    -130868
    -78519
    -74539
    -73838
    -80769
    -80281
    -79994
    -74013
    -80533
    -77230
    -74966
    -78010
    -78450
    -77896
    -76977
    -77143
    -77413
    -82531
    -83224
    -77555
    -80640
    -81039
    -80650
    -78736
    -83853
    -82467
    -80272
    -76956
    -85021
    -84182
    -79053
    -80725
    -80339
    -77079
    -84037
    -83545
    -75761
    -82438
    -81725
    -76196
    -79652
    -82860
    -82058
    -73147
    -81597
    -78280
    -84120
    -79374
    -84485
    -76226
    -79821
    -82563
    -78274
    -77296
    -79536
    -78998
    -77690
    -75484
    -79475
    -73182
    -77787
    -77628
    -74854
    -79584
    -80714
    -77182
    -75163
    -79784
    -78439
    48393
    -75988
    -81976
    -77644
    65159
    -78639
    -81596
    -78302
    -77861
    -79478
    -76465
    -76059
    -78855
    -85186
    -84045
    -78081
    -82690
    -85875
    -77797
    -80508
    -80438
    -81767
    -82991
    -79864
    -81555
    -78739
    -79137
    -80817
    -79423
    -80834
    -79360
    -76277
    -80859
    -73946
    -75954
    -77720
    -81554
    -79773
    -78021
    -77817
    -80500
    -76979
    -78984
    -82944
    -84997
    -82241
    -78929
    -80218
    48835
    -76009
    -80383
    -79802
    -79469
    -73406
    -76307
    -77859
    -76131
    -81564
    -82345
    -78422
    -77328
    -77750
    -79047
    -77104
    -75084
    -79279
    -80323
    -77259
    -81540
    -81533
    -74338
    -83097
    -78144
    -83787
    

    Thanks 

    sarthak

  • Hi Sarthak,

    Thank you for your clarification and also sharing the data. I noticed that your configuration in address 0x03 register is 0xC, this configuration indicates that all four channels of ADC are disabled, can you please verify? 0x0F0C will enable all input channels of M04 ADC.

    Best regards,

    Dale

  • Hello Dale,

    Sorry for the late reply Actually initially we turned off all the channels and at the time of streaming we enabled all the channels by writing 0x0F0C in the configuration register 3. We have also tried to enable all the channels at the start but captured the same result.

    Regards 

    Sarthak

  • Hi Sarthak,

    Thank you for your confirmation. Can you please provide timing plots an oscilloscope? at least two frames will be good to check. 

    Thanks& regards,

    Dale

  • Hello Dale Li,

    I am sharing the timing plots of an oscilloscope where Yellow is CS, Green is SCK, Blue is MISO, and RED is MOSI.


    Thanks 

    Sarthak Malik

  • Hi Sarthak,

    A whole frame data should be similar as the following timing, the first word is status or register data, then the data for CH0, CH1, CH2, CH3, the last word could be CRC, each word size is either 16 bits, 24 bits or 32 bits based on your configuration. one or two whole frame data will be helpful and also a zoom-in timing is very helpful as well. Thanks.

    Best regards,

    Dale

  • Hello Dale,

    Sorry for the late reply, I am sharing the updated image please check.

    Thanks

    Sarthak

  • Hi Sarthak,

    No worries, thank you for providing the timing image. Your timing shows that the data of CH0/CH2/CH2 are zero and the data of CH3 is 0xFFFFFF, are all channel inputs floating or short? what's the data of the first word which should be the status register?

    PS: What you did (disabled timeout, set gain to 64 and phase delay for each channel) by writing the registers should not impact data output.

    Best regards,

    Dale

  • Hello ,

    Yes, all the channels are floating. Why do we need a phase delay for each channel? because there is simultaneous sampling available in the IC, why do we need phase delay? and I have tried with gain 64 and phase delay for each channel but no improvements in the data.

    Thanks 

    Sarthak

  • Hi Sarthak,

    From the timing you shared, these data (zero and the data of CH3 is 0xFFFFFF) on the DOUT are correct data for floating input, so you are getting correct data for each channel. You can double check by using a DC input on some of channels, it will be clear for you to see if the data is output correctly for the corresponding channel.

    When you collect data, were you monitoring /DRDY signal? basically we keep monitoring /DRDY signal, we usually start selecting the ADC and collecting data when a falling edge of /DRDY is detected, a low /DRDY indicates that the data is ready for the microcontroller to read. 

    As I said, your programming internal registers to set gain and phase delay should not impact data output, so I did not think you can get any improvement.

    Best regards,

    Dale

  • Hello Dale,

    If my channel data is correct, why am I getting the spikes in the output data plots? 

    Regards

    Sarthak

  • Hi Sarthak,

    The data in the SPI timing you shared with me are correct. It will be better if you could share the SPI timing when observing the spikes.

    Also, were you monitoring /DRDY signal to read the data?

    Regards,

    Dale

  • Hi Dale,

    Can you please suggest how to capture the SPI timing when observing the spikes.As its so fast to capture.

    Also, were you monitoring /DRDY signal to read the data?

    Reply-->Yes,we are monitoring signal to read the data.

    Regards

    Sarthak

  • Hi Sarthak,

    I would suggest to try using the trigger of oscilloscope. I checked on our EVM board and captured a lot of data, but did not see any spikes. Please see the following timing. I'm trying to understand where it came from on your circuit board. Timing is one way I can check. Did you check other device/boards whether they showed similar behavior or not?

    Thanks&regards,

    Dale

  • Hi Dale

    What should we set the trigger at, since the occurrence and extent of spikes is very unpredictable?

    Regards

    Sarthak

  • Hi Sarthak,

    You can see how high is your spike, and set a proper voltage to trigger it on oscilloscope. 

    Did you check other device/boards whether they showed similar behavior or not?

    Regards,

    Dale

  • Hi Dale

    That is the whole problem. There are no spikes on the input (analog) side. We checked that already, it's all clean.

    Regards,

    Sarthak

  • Hi Dale

    Please suggest further as its been so long this issue is running.Our work has been stuck because of that.If you need any information from our end please let me know but please try to close this issue on Priority basis.

    Regards

    Sarthak

  • Hi Sarthak,

    I'm sorry to hear that your work is stuck, looks like this one has been going on for awhile. Let me see if I can help.

    With all of the work done, I unfortunately don't think the issue is obvious, I see some obvious issues that haven't been discussed, but I think we can drill down to the bottom of it 

    Let's establish givens:

    The settings provided make sense and are currently setting f_dataRate = 1kSPS in Very-low-power mode which means the f_CLK< 2.08MHz, is this correct? 

    What the issue could be:

    The Register dump makes some sense so I'm going to assume that the exact formatting isn't part of the issue (not clocking data on the falling edge is a typical issue with these devices). With that being said, the oscilloscope waveform above seems to take ~350us to get one channel of data (the 8 bit SCLK chunks, which should be 24bit SCLK chunks, are really far apart from each other, which wastes time). The data rate above means that f_DRDY should be toggling every 1ms. Can you verify the f_DRDY is toggling at that rate?

    This is a pretty large percentage of the time. I'm not sure if you clear the FIFO after writing the registers, but if not, the FIFO within the device is definitely filled up by the time you take data and we can't trust the channel data as a result. As soon as the device power up, it starts converting, so between that and the first NULL command to grab data, this would be considered a "pause" before you collected data for the first time. Here's some text from the datasheet:

    If you already do this, then we can move on to some of the other issues that don't look correct about the device.

    Other Issues:

    Bus contention:

    What is your intended DVDD?

    Assuming the MISO POCI or SIMO PICO is connected to the same voltage rail, we are current in an unacceptable voltage rail range for the device. The measurement "Top" for each waveform does not fall within 1.65V through 2V < V_DVDD < 2.7V - 3.6V. If I take MISO for example, I can see what looks like 2.2V and a distinct 2.4V waveform "high" in the same transaction. This is usually the result from bus contention and if you have anything else tied to MISO, it might be pulling that rail down. Because we power the digital logic core (including modulators) with this rail, it would surprise me if some unexpected behavior were to occur.

    This needs to be fixed in addition to the problem we're seeing. I would take a look at your schematic and see if anything else could be the issue (in the past I've seen an external memory IC near the MCU cause this problem).

    Best,

    -Cole

    edit: changed language

  • Hello Cole

    Thank you so much for response.

    Please find the  details:

    1.f_CLK< 2.08MHz, is this correct? --> We are using Clock 2.0 Mhz.

    2.Can you verify the f_DRDY is toggling at that rate? --> f_DRDY is toggling at 1kSPS .

    3.MISO and MOSI are running at same voltage level,

    4.What is your intended DVDD? --> 3.3 V

    If you need any other information please let me know.

    Regards

    Sarthak

  • Hi Sarthak,

    I might be interpreting the oscilloscope screenshots but the V_OH are out of specification then:

    3.3*0.8 = 2.64V and the high on the waveforms are 2.37V and less than 2.64V. Why is this?

    Can you send a picture of your schematic?

    Thanks,

    -Cole

  • Hi Cole

    Sorry for the delay response.

    We are using Schematic as required in the data sheet.

    Thanks and Regards

    Sarthak

  • Hi Sarthak,

    Thanks for the response, it makes the review easier then.

    What about the schematic on the MCU side? I won't be able to review it with much confidence but DVDD is an input that is sourced somewhere and I would start looking there.

    Best,

    -Cole

  • Hi Cole

    Really sorry ! It's proprietary and we don't have the clearance to share that with anyone.

    Can we debug the issue with some other way.

    Best

    Sarthak

  • Hi Sarthak,

    I understand, thanks for letting me know.

    Unfortunately, I don't have a way to help you fix the DVDD issue besides what I recommended before. Grab an oscilloscope, find the source of the DVDD voltage rail, and probe directly at the pins of the source while sending the same SPI transaction. I would then compare that with the voltage at the pins of the ADS131M04. Finally, I would look at any other devices on the MCU that uses the same DVDD source and look at the voltage there.

    The most common cause of bus contention is another device with programable SPI MISO PICO pins (or a MUX or voltage translator). Ensure the output pins are HIZ when they are not used. If there is any passive pullups or pulldowns within the device that fight with the DOUT pin, then you'll see this kind of behavior.

    Best,

    -Cole

  • Hi Cole

    In previous message you ask "

    I might be interpreting the oscilloscope screenshots but the V_OH are out of specification then:

    3.3*0.8 = 2.64V and the high on the waveforms are 2.37V and less than 2.64V. Why is this?"

    Now,we have check V_OH=3.3V.But still we are seeing spikes on the input (analog) side.

    Please find the attached waveform.

  • Hi Sarthak,

    It does look a bit better but it looks like you might be violating the -0.3V pin absolute maximum (3.7Vpp-3.39Vtop = 0.31V). Its also very clear that the DGND is not 0V, or at least the Low state is below 0V on the waveform. In addition the High is higher than the 3.6V which is also out of spec. There is a risk that the device might have been damaged.

    Do you happen to have DGND and AGND split in your schematic that is connected at a single point? I see this sometimes when DGND and AGND are not connected together to a general GND plane with a via that is directly next to the pins.   

    Best,

    -Cole

  • Hi Cole

    DGND is 0 V and DGND - AGND is connected to each other.The -0.3V is due to Problem of Oscilloscope calibration.Please find the updated attached waveform.

    Best

    Sarthak

  • Hi Sarthak,

    What's going on with 2 distinct levels for digital voltage? Do we know what might be causing that? See the white box below:

    At this point, the waveform looks a lot better. Can we take a look at all 4 SPI waveforms on the same capture now? CS, SCLK, DIN and DOUT, just like you did before. They should also be within spec still.

    After that, I'd like to look at the response to a NULL and look explicitly at the STATUS word.

    Thanks,

    -Cole

  • Hi Cole

    Please find the attached waveform:

    Yellow is CS, Green is SCK, Blue is MISO, and RED is MOS

    Thanks and Regards

    Sarthak

  • Hi Sarthak,

    Everything looks better now. That being said, 95% of time, fixing the levels will fix any stage behavior seen with data collection. Everything looks okay and I assume you're still getting the spikes on the input.

    I haven't see confirmation that you toggle RESET before collecting data (to clear the FIFO), but I'm going to assume you are doing that. 

    As a result, I've sent you an email. Please keep an eye out for it.

    Best,

    -Cole

  • Hi Cole,

    Yes everything looks better now but I am still geting spikes in the data. Yes I am toggle RESET before collecting the data.

    Thanks 

    Sarthak

  • Hi Cole,

    I am still getting spikes in the data.Is there anything else we are missing?

    Thanks 

    Sarthak

  • Hi Cole

    Any update ?

    Thanks 

    Sarthak

  • Hi Sarthak,

    We're in communication on email. Still trying to get you a new EVM. No updates.

    Best,

    -Cole