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.

AMC1210 Unexpected Values at Zero Crosses

Other Parts Discussed in Thread: AMC1210, AMC1203

I use AMC1210 with AMC1203 in a motor drive application for shunt current measurement.

The problem is that, not periodically but randomly I read unexpected datas at DSP side (F28335). The unexpected data is as high as 32700, 32500 etc depending on the initially first read offset value.

The specified unexpected high data is always seen at zero crossings of the waveform (see attached file ).

Below is the configuration of AMC1210

SINCFILTER: 0x0F7C, INTEGRATOR: 0x4907, CLOCKDIVIDE: 0x0800

Also AMC1210 is read by SPI interface of DSP and the read operation is performed after checking the AF3 and AF4 bits of INTEGRATOR register. I mean the read operation is guaranteed bu checking if new data is available for filter3 and filter4 modules.

I have performed so many tests but couldn't find the reason of this spikes on the data. Can anybody have any suggestion ?

Thanks in advance. 

  • Hi onur!

    Can you provide a schematic of the AMC1210 section on your board as well as a buffer dump of the raw data your are receiving from the AMC1210?
  • i Tom,

    Below is the schematic and I also inserted the related code block. For the time being I have problem with the set up. I will also add the raw data you need as soon as possible.

    Thank you.

  • Hi Tom,


    Below is the data.


    mySPI_Ia column is the data 16bit data read from directly AMC1210 via SPI

    myIa is the data value obtained after performing the 2s complemet and offset subtracting operation.

    AMC1210Data.txt
    Sample	mySPI_Ia myIa
    0	-7206	-7272
    1	-7398	-7464
    2	-7584	-7650
    3	-7760	-7826
    4	-7932	-7998
    5	-8095	-8161
    6	-8250	-8316
    7	-8397	-8463
    8	-8535	-8601
    9	-8667	-8733
    10	-8790	-8856
    11	-8902	-8968
    12	-9007	-9073
    13	-9105	-9171
    14	-9192	-9258
    15	-9270	-9336
    16	-9343	-9409
    17	-9401	-9467
    18	-9454	-9520
    19	-9496	-9562
    20	-9529	-9595
    21	-9554	-9620
    22	-9568	-9634
    23	-9578	-9644
    24	-9575	-9641
    25	-9560	-9626
    26	-9539	-9605
    27	-9508	-9574
    28	-9469	-9535
    29	-9421	-9487
    30	-9363	-9429
    31	-9295	-9361
    32	-9221	-9287
    33	-9136	-9202
    34	-9043	-9109
    35	-8940	-9006
    36	-8829	-8895
    37	-8710	-8776
    38	-8579	-8645
    39	-8441	-8507
    40	-8296	-8362
    41	-8145	-8211
    42	-7983	-8049
    43	-7816	-7882
    44	-7641	-7707
    45	-7454	-7520
    46	-7265	-7331
    47	-7067	-7133
    48	-6861	-6927
    49	-6652	-6718
    50	-6434	-6500
    51	-6210	-6276
    52	-5979	-6045
    53	-5746	-5812
    54	-5506	-5572
    55	-5260	-5326
    56	-5009	-5075
    57	-4753	-4819
    58	-4493	-4559
    59	-4227	-4293
    60	-3959	-4025
    61	-3690	-3756
    62	-3413	-3479
    63	-3134	-3200
    64	-2851	-2917
    65	-2565	-2631
    66	-2278	-2344
    67	-1991	-2057
    68	-1701	-1767
    69	-1410	-1476
    70	-1117	-1183
    71	-822	-888
    72	-531	-597
    73	-233	-299
    74	-32707	-32773
    75	-32707	-32773
    76	356	290
    77	647	581
    78	941	875
    79	1235	1169
    80	1524	1458
    81	1812	1746
    82	2100	2034
    83	2383	2317
    84	2667	2601
    85	2946	2880
    86	3221	3155
    87	3494	3428
    88	3762	3696
    89	4028	3962
    90	4290	4224
    91	4544	4478
    92	4797	4731
    93	5043	4977
    94	5283	5217
    95	5520	5454
    96	5749	5683
    97	5974	5908
    98	6193	6127
    99	6404	6338
    100	6610	6544
    101	6809	6743
    102	7000	6934
    103	7186	7120
    104	7363	7297
    105	7533	7467
    106	7696	7630
    107	7850	7784
    108	7999	7933
    109	8137	8071
    110	8270	8204
    111	8392	8326
    112	8506	8440
    113	8609	8543
    114	8709	8643
    115	8795	8729
    116	8874	8808
    117	8946	8880
    118	9008	8942
    119	9058	8992
    120	9099	9033
    121	9133	9067
    122	9159	9093
    123	9172	9106
    124	9179	9113
    125	9173	9107
    126	9157	9091
    127	9134	9068
    128	9103	9037
    129	9062	8996
    130	9013	8947
    131	8954	8888
    132	8887	8821
    133	8809	8743
    134	8723	8657
    135	8628	8562
    136	8526	8460
    137	8416	8350
    138	8296	8230
    139	8167	8101
    140	8030	7964
    141	7887	7821
    142	7735	7669
    143	7576	7510
    144	7407	7341
    145	7230	7164
    146	7048	6982
    147	6857	6791
    148	6660	6594
    149	6455	6389
    150	6244	6178
    151	6027	5961
    152	5803	5737
    153	5572	5506
    154	5338	5272
    155	5096	5030
    156	4848	4782
    157	4600	4534
    158	4345	4279
    159	4086	4020
    160	3820	3754
    161	3553	3487
    162	3281	3215
    163	3008	2942
    164	2731	2665
    165	2453	2387
    166	2166	2100
    167	1882	1816
    168	1595	1529
    169	1306	1240
    170	1014	948
    171	720	654
    172	427	361
    173	133	67
    174	-161	-227
    175	-457	-523
    176	-751	-817
    177	-1046	-1112
    178	-1337	-1403
    179	-1629	-1695
    180	-1922	-1988
    181	-2209	-2275
    182	-2496	-2562
    183	-2782	-2848
    184	-3063	-3129
    185	-3342	-3408
    186	-3618	-3684
    187	-3892	-3958
    188	-4158	-4224
    189	-4422	-4488
    190	-4685	-4751
    191	-4939	-5005
    192	-5191	-5257
    193	-5437	-5503
    194	-5679	-5745
    195	-5915	-5981
    196	-6146	-6212
    197	-6370	-6436
    198	-6589	-6655
    199	-6799	-6865
    200	-7007	-7073
    201	-7206	-7272
    202	-7399	-7465
    203	-7584	-7650
    204	-7762	-7828
    205	-7933	-7999
    206	-8097	-8163
    207	-8251	-8317
    208	-8399	-8465
    209	-8536	-8602
    210	-8667	-8733
    211	-8791	-8857
    212	-8904	-8970
    213	-9008	-9074
    214	-9107	-9173
    215	-9192	-9258
    216	-9271	-9337
    217	-9343	-9409
    218	-9402	-9468
    219	-9455	-9521
    220	-9499	-9565
    221	-9531	-9597
    222	-9557	-9623
    223	-9572	-9638
    224	-9578	-9644
    225	-9575	-9641
    226	-9561	-9627
    227	-9540	-9606
    228	-9509	-9575
    229	-9470	-9536
    230	-9422	-9488
    231	-9363	-9429
    232	-9296	-9362
    233	-9222	-9288
    234	-9137	-9203
    235	-9044	-9110
    236	-8940	-9006
    237	-8830	-8896
    238	-8707	-8773
    239	-8579	-8645
    240	-8444	-8510
    241	-8297	-8363
    242	-8145	-8211
    243	-7983	-8049
    244	-7816	-7882
    245	-7640	-7706
    246	-7456	-7522
    247	-7264	-7330
    248	-7067	-7133
    249	-6864	-6930
    250	-6651	-6717
    251	-6435	-6501
    252	-6212	-6278
    253	-5980	-6046
    254	-5747	-5813
    255	-5506	-5572
    256	-5261	-5327
    257	-5010	-5076
    258	-4754	-4820
    259	-4493	-4559
    260	-4228	-4294
    261	-3961	-4027
    262	-3689	-3755
    263	-3415	-3481
    264	-3133	-3199
    265	-2850	-2916
    266	-2564	-2630
    267	-2279	-2345
    268	-1990	-2056
    269	-1701	-1767
    270	-1411	-1477
    271	-1116	-1182
    272	-822	-888
    273	-528	-594
    274	-233	-299
    275	61	-5
    276	356	290
    277	650	584
    278	943	877
    279	1234	1168
    280	1524	1458
    281	1813	1747
    282	2101	2035
    283	2386	2320
    284	2667	2601
    285	2947	2881
    286	3222	3156
    287	3495	3429
    288	3763	3697
    289	4028	3962
    290	4293	4227
    291	4547	4481
    292	4798	4732
    293	5046	4980
    294	5286	5220
    295	5521	5455
    296	5754	5688
    297	5978	5912
    298	6195	6129
    299	6406	6340
    300	6611	6545
    301	6809	6743
    302	7002	6936
    303	7187	7121
    304	7363	7297
    305	7533	7467
    306	7698	7632
    307	7852	7786
    308	7999	7933
    309	8136	8070
    310	8268	8202
    311	8392	8326
    312	8505	8439
    313	8610	8544
    314	8709	8643
    315	8794	8728
    316	8873	8807
    317	8944	8878
    318	9003	8937
    319	9056	8990
    320	9098	9032
    321	9132	9066
    322	9158	9092
    323	9173	9107
    324	9176	9110
    325	9171	9105
    326	9156	9090
    327	9134	9068
    328	9102	9036
    329	9062	8996
    330	9013	8947
    331	8953	8887
    332	8886	8820
    333	8807	8741
    334	8723	8657
    335	8629	8563
    336	8526	8460
    337	8413	8347
    338	8296	8230
    339	8167	8101
    340	8029	7963
    341	7886	7820
    342	7734	7668
    343	7573	7507
    344	7407	7341
    345	7228	7162
    346	7047	6981
    347	6857	6791
    348	6659	6593
    349	6455	6389
    350	6244	6178
    351	6026	5960
    352	5804	5738
    353	5572	5506
    354	5337	5271
    355	5097	5031
    356	4850	4784
    357	4600	4534
    358	4345	4279
    359	4087	4021
    360	3822	3756
    361	3553	3487
    362	3281	3215
    363	3008	2942
    364	2729	2663
    365	2448	2382
    366	2165	2099
    367	1882	1816
    368	1594	1528
    369	1302	1236
    370	1012	946
    371	720	654
    372	424	358
    373	132	66
    374	-162	-228
    375	-455	-521
    376	-751	-817
    377	-1045	-1111
    378	-1339	-1405
    379	-1630	-1696
    380	-1921	-1987
    381	-2208	-2274
    382	-2497	-2563
    383	-2781	-2847
    384	-3064	-3130
    385	-3340	-3406
    386	-3617	-3683
    387	-3891	-3957
    388	-4159	-4225
    389	-4422	-4488
    390	-4685	-4751
    391	-4939	-5005
    392	-5190	-5256
    393	-5439	-5505
    394	-5678	-5744
    395	-5916	-5982
    396	-6146	-6212
    397	-6370	-6436
    398	-6589	-6655
    399	-6803	-6869
    400	-7007	-7073
    401	-7206	-7272
    402	-7397	-7463
    403	-7585	-7651
    404	-7761	-7827
    405	-7932	-7998
    406	-8096	-8162
    407	-8251	-8317
    408	-8397	-8463
    409	-8537	-8603
    410	-8668	-8734
    411	-8791	-8857
    412	-8905	-8971
    413	-9009	-9075
    414	-9105	-9171
    415	-9194	-9260
    416	-9273	-9339
    417	-9343	-9409
    418	-9402	-9468
    419	-9453	-9519
    420	-9497	-9563
    421	-9530	-9596
    422	-9554	-9620
    423	-9571	-9637
    424	-9577	-9643
    425	-9575	-9641
    426	-9563	-9629
    427	-9541	-9607
    428	-9510	-9576
    429	-9469	-9535
    430	-9419	-9485
    431	-9361	-9427
    432	-9295	-9361
    433	-9219	-9285
    434	-9134	-9200
    435	-9042	-9108
    436	-8940	-9006
    437	-8829	-8895
    438	-8709	-8775
    439	-8577	-8643
    440	-8442	-8508
    441	-8297	-8363
    442	-8145	-8211
    443	-7986	-8052
    444	-7817	-7883
    445	-7638	-7704
    446	-7456	-7522
    447	-7265	-7331
    448	-7067	-7133
    449	-6863	-6929
    450	-6651	-6717
    451	-6436	-6502
    452	-6211	-6277
    453	-5982	-6048
    454	-5747	-5813
    455	-5506	-5572
    456	-5259	-5325
    457	-5009	-5075
    458	-4754	-4820
    459	-4494	-4560
    460	-4228	-4294
    461	-3958	-4024
    462	-3687	-3753
    463	-3412	-3478
    464	-3132	-3198
    465	-2848	-2914
    466	-2564	-2630
    467	-2277	-2343
    468	-1989	-2055
    469	-1699	-1765
    470	-1407	-1473
    471	-1115	-1181
    472	-821	-887
    473	-528	-594
    474	-232	-298
    475	-32708	-32774
    476	-32708	-32774
    477	353	287
    478	648	582
    479	940	874
    480	1232	1166
    481	1524	1458
    482	1814	1748
    483	2098	2032
    484	2384	2318
    485	2667	2601
    486	2945	2879
    487	3220	3154
    488	3495	3429
    489	3763	3697
    490	4027	3961
    491	4290	4224
    492	4546	4480
    493	4799	4733
    494	5045	4979
    495	5285	5219
    496	5521	5455
    497	5755	5689
    498	5978	5912
    499	6194	6128
    500	6406	6340
    501	6612	6546
    502	6813	6747
    503	7003	6937
    504	7188	7122
    505	7365	7299
    506	7533	7467
    507	7697	7631
    508	7850	7784
    509	7997	7931
    510	8135	8069
    511	8268	8202
    512	8390	8324
    513	8506	8440
    514	8612	8546
    515	8710	8644
    516	8796	8730
    517	8875	8809
    518	8946	8880
    519	9008	8942
    520	9058	8992
    521	9099	9033
    522	9133	9067
    523	9158	9092
    524	9173	9107
    525	9175	9109
    526	9172	9106
    527	9156	9090
    528	9133	9067
    529	9102	9036
    530	9061	8995
    531	9013	8947
    532	8952	8886
    533	8885	8819
    534	8805	8739
    535	8721	8655
    536	8626	8560
    537	8523	8457
    538	8412	8346
    539	8291	8225
    540	8163	8097
    541	8028	7962
    542	7884	7818
    543	7733	7667
    544	7572	7506
    545	7403	7337
    546	7227	7161
    547	7044	6978
    548	6855	6789
    549	6655	6589
    550	6454	6388
    551	6244	6178
    552	6025	5959
    553	5801	5735
    554	5571	5505
    555	5337	5271
    556	5096	5030
    557	4849	4783
    558	4599	4533
    559	4344	4278
    560	4085	4019
    561	3820	3754
    562	3553	3487
    563	3281	3215
    564	3007	2941
    565	2727	2661
    566	2446	2380
    567	2164	2098
    568	1881	1815
    569	1594	1528
    570	1302	1236
    571	1009	943
    572	716	650
    573	424	358
    574	130	64
    575	-163	-229
    576	-458	-524
    577	-751	-817
    578	-1048	-1114
    579	-1338	-1404
    580	-1628	-1694
    581	-1919	-1985
    582	-2208	-2274
    583	-2497	-2563
    584	-2781	-2847
    585	-3063	-3129
    586	-3343	-3409
    587	-3619	-3685
    588	-3890	-3956
    589	-4159	-4225
    590	-4422	-4488
    591	-4684	-4750
    592	-4940	-5006
    593	-5191	-5257
    594	-5439	-5505
    595	-5680	-5746
    596	-5917	-5983
    597	-6146	-6212
    598	-6373	-6439
    599	-6590	-6656
    600	-6803	-6869
    601	-7007	-7073
    602	-7206	-7272
    603	-7399	-7465
    604	-7585	-7651
    605	-7763	-7829
    606	-7935	-8001
    607	-8097	-8163
    608	-8251	-8317
    609	-8399	-8465
    610	-8538	-8604
    611	-8670	-8736
    612	-8794	-8860
    613	-8907	-8973
    614	-9011	-9077
    615	-9107	-9173
    616	-9195	-9261
    617	-9273	-9339
    618	-9343	-9409
    619	-9404	-9470
    620	-9455	-9521
    621	-9497	-9563
    622	-9530	-9596
    623	-9556	-9622
    624	-9570	-9636
    625	-9577	-9643
    626	-9574	-9640
    627	-9563	-9629
    628	-9541	-9607
    629	-9510	-9576
    630	-9728	-9794
    631	-9421	-9487
    632	-9395	-9461
    633	-9294	-9360
    634	-9220	-9286
    635	-9136	-9202
    636	-9089	-9155
    637	-8988	-9054
    638	-8892	-8958
    639	-8761	-8827
    640	-8643	-8709
    641	-8510	-8576
    642	-8369	-8435
    643	-8221	-8287
    644	-8063	-8129
    645	-7897	-7963
    646	-7726	-7792
    647	-7547	-7613
    648	-7361	-7427
    649	-7167	-7233
    650	-6965	-7031
    651	-6758	-6824
    652	-6545	-6611
    653	-6211	-6277
    654	-6097	-6163
    655	-5866	-5932
    656	-5629	-5695
    657	-5385	-5451
    658	-5139	-5205
    659	-4884	-4950
    660	-4625	-4691
    661	-4363	-4429
    662	-4095	-4161
    663	-3826	-3892
    664	-3551	-3617
    665	-3272	-3338
    666	-2995	-3061
    667	-2708	-2774
    668	-2422	-2488
    669	-2133	-2199
    670	-1845	-1911
    671	-1555	-1621
    672	-1116	-1182
    673	-823	-889
    674	-676	-742
    675	-378	-444
    676	-87	-153
    677	210	144
    678	504	438
    679	796	730
    680	1089	1023
    681	1381	1315
    682	1670	1604
    683	1956	1890
    684	2244	2178
    685	2524	2458
    686	2807	2741
    687	3082	3016
    688	3357	3291
    689	3626	3560
    690	3895	3829
    691	4158	4092
    692	4544	4478
    693	4797	4731
    694	4917	4851
    695	5164	5098
    696	5401	5335
    697	5635	5569
    698	5862	5796
    699	6088	6022
    700	6302	6236
    701	6509	6443
    702	6717	6651
    703	6909	6843
    704	7099	7033
    705	7279	7213
    706	7453	7387
    707	7619	7553
    708	7780	7714
    709	7931	7865
    710	8074	8008
    711	8208	8142
    712	8391	8325
    713	8505	8439
    714	8560	8494
    715	8660	8594
    716	8751	8685
    717	8836	8770
    718	8910	8844
    719	8972	8906
    720	9030	8964
    721	9077	9011
    722	9115	9049
    723	9142	9076
    724	9161	9095
    725	9171	9105
    726	9172	9106
    727	9162	9096
    728	9148	9082
    729	9121	9055
    730	9085	9019
    731	9040	8974
    732	8955	8889
    733	8926	8860
    734	8852	8786
    735	8770	8704
    736	8681	8615
    737	8581	8515
    738	8473	8407
    739	8357	8291
    740	8233	8167
    741	8099	8033
    742	7960	7894
    743	7809	7743
    744	7653	7587
    745	7489	7423
    746	7316	7250
    747	7135	7069
    748	6948	6882
    749	6754	6688
    750	6552	6486
    751	6343	6277
    752	6025	5959
    753	5910	5844
    754	5683	5617
    755	5451	5385
    756	5213	5147
    757	4971	4905
    758	4726	4660
    759	4472	4406
    760	4217	4151
    761	3955	3889
    762	3687	3621
    763	3420	3354
    764	3145	3079
    765	2870	2804
    766	2590	2524
    767	2306	2240
    768	2024	1958
    769	1738	1672
    770	1447	1381
    771	1156	1090
    772	715	649
    773	568	502
    774	276	210
    775	-20	-86
    776	-313	-379
    777	-607	-673
    778	-903	-969
    779	-1195	-1261
    780	-1487	-1553
    781	-1777	-1843
    782	-2065	-2131
    783	-2354	-2420
    784	-2637	-2703
    785	-2921	-2987
    786	-3202	-3268
    787	-3480	-3546
    788	-3755	-3821
    789	-4025	-4091
    790	-4291	-4357
    791	-4686	-4752
    792	-4942	-5008
    793	-5066	-5132
    794	-5317	-5383
    795	-5560	-5626
    796	-5799	-5865
    797	-6034	-6100
    798	-6262	-6328
    799	-6484	-6550
    

  • Hi onur,

    I don't see anything in the schematic that might be causing the issue you are having with the AMC1210. One thing I would like you to try though is changing your 16-bit data shift. You are set up with an oversampling ratio of 125 and the shift should only be seven rather than nine. Try changing your integrator register values to 0x3907 and let me know if there is any improvement.
  • Hi Tom,
    I tried integrator register with 0x3907 but same problematic results still exist.
    I have tried so many tests but still not succeed, I will be glad if you have any other suggestions.
    Thanks.
  • Hi onur,

    What about your timing? I see by your schematic that you have access to ACK, can you tell me how long it takes to read out the data between the ACK pulses? It might be that you are getting corrupted data if the output registers are updating at the point in which you read them. I would expect this to be random errors rather than coming along at the zero transition from (-) to (+), but it might be worth looking into.
  • Hi Tom,

    I inserted the timing waveform. CH1(Yellow): My test out I/O, CH2(Blue): ACK pin

    Test out is set low at the beginning of every AMC1210 read cycle which is 100usec, and set high after all reading operations are completed. You can see that every read operation (falling edges of CH2) is started when ack is high which implies the valid data, am I wrong ? Are the timings reasonable ?

    I suppose that the while block which waits for INT register to be 0xC000 (shared in my previous posts), guarantees the valid data isn't it ?

    What is the expected time or reasonable time for AMC1210 to make the data valid.

    Best regards

  • Hi onur,

    I'll send you a note via your profile e-mail. I'd like to try and set up a call with you to discuss this further.