MC33774 Daisy Chain Dual Loop Connection

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC33774 Daisy Chain Dual Loop Connection

Jump to solution
291 Views
Embedded_novice
Contributor III

HI.

我当前使用MC33665A+MC33774的AFE采样系统组成双链回环的结构,配置MC33665A的PORT0和PORT1分别为MADD0和MADD1,当前发送所有指令均由MADD0发送。当我只连接PORT0到DC1之间的菊花链时,我的通讯都是正常的,但是当我把PORT1和DC2之间的菊花链也连接后,我再去请求33774发现33774无法回复响应帧,这是为什么?我回读确认过33665的PORT端口配置没有错误,并且将33774中的SYS_TPL_CFG.RESPCFG设置为00 SAME模式。

 

I am currently using an AFE sampling system consisting of the MC33665A + MC33774 in a dual-ring loop configuration. I have configured PORT0 and PORT1 of the MC33665A as MADD0 and MADD1, respectively, and all commands are currently sent through MADD0.

When I connect only the daisy chain between PORT0 and DC1, communication works correctly. However, after I also connect the daisy chain between PORT1 and DC2, the MC33774 no longer responds when I send requests to it.

Why does this happen?

I have read back and verified that the MC33665 PORT configuration is correct, and I have configured SYS_TPL_CFG.RESPCFG = 00 (SAME mode) in the MC33774.

 

Embedded_novice_0-1782728020846.png

 

0 Kudos
Reply
1 Solution
175 Views
ErikaC
NXP TechSupport
NXP TechSupport

Hello,

According to AN13910 TPL Loopback Recommendation, the DADD assignment should be reversed from the MADD=1 side in a loopback topology.

In addition, your current configuration has RX=1 and ALLCHAINS=1 on both ports. For a loopback connection, we recommend disabling RX and ALLCHAINS on one of the ports to avoid duplicate routing and communication conflicts. 

Could you please try configuring one port with RX=0 and ALLCHAINS=0 (for example, PORT1) and verify whether the MC33774 starts returning response frames?

View solution in original post

0 Kudos
Reply
3 Replies
252 Views
ErikaC
NXP TechSupport
NXP TechSupport

Hello,

According to the AN13910 TPL Loopback Recommendation, when two MC33665A TPL ports are connected as a loopback ring, there are several configuration requirements that may cause the behavior you are seeing.
For a loopback configuration:

  • We recommend assigning device addresses (DADD) in ascending order from one side of the ring and in reverse order from the loopback side (I do not see this in your image).
  • If two ports are connected as loopback, one of the ports should have SYS_PORTx_CFG[RX] = 0 to avoid duplicate data entering the MC33665 buffer.
  • In addition, one of the ports should have SYS_PORTx_CFG[ALLCHAINS] = 0. If both loopback ports accept ALLCHAINS commands, document states that this can cause signal conflicts and communication errors.

Could you please share the values of SYS_PORT0_CFG and SYS_PORT1_CFG (especially EN, RX, ALLCHAINS, MADD, and CADD)? That would help determine whether the loopback ports are configured according to the AN13910 recommendations.

0 Kudos
Reply
226 Views
Embedded_novice
Contributor III

HI.

1.我想知道从MADD=1的位置反向分配DADD是必须的吗?

2.我当前的SYS_PORT0_CFG配置为TIMEOUT=0,CADD=1,MADD=0,PROTOCOL=1,ALLCHAINS=1,TERM=1,RX=1,EN=1

SYS_PORT1_CFG配置为TIMEOUT=0,CADD=1,MADD=1,PROTOCOL=1,ALLCHAINS=1,TERM=1,RX=1,EN=1

0 Kudos
Reply
176 Views
ErikaC
NXP TechSupport
NXP TechSupport

Hello,

According to AN13910 TPL Loopback Recommendation, the DADD assignment should be reversed from the MADD=1 side in a loopback topology.

In addition, your current configuration has RX=1 and ALLCHAINS=1 on both ports. For a loopback connection, we recommend disabling RX and ALLCHAINS on one of the ports to avoid duplicate routing and communication conflicts. 

Could you please try configuring one port with RX=0 and ALLCHAINS=0 (for example, PORT1) and verify whether the MC33774 starts returning response frames?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2387695%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3EMC33774%20Daisy%20Chain%20Dual%20Loop%20Connection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2387695%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EHI.%3C%2FP%3E%0A%3CP%3EI'm%20currently%20using%20an%20AFE%20sampling%20system%20with%20MC33665A%20and%20MC33774%20to%20form%20a%20double-chain%20loopback%20structure.%20The%20MC33665A's%20PORT0%20and%20PORT1%20are%20configured%20as%20MADD0%20and%20MADD1%20respectively%2C%20and%20all%20commands%20are%20currently%20sent%20via%20MADD0.%20When%20I%20only%20connect%20the%20daisy%20chain%20between%20PORT0%20and%20DC1%2C%20my%20communication%20is%20normal.%20However%2C%20when%20I%20also%20connect%20the%20daisy%20chain%20between%20PORT1%20and%20DC2%2C%20I%20find%20that%20the%2033774%20cannot%20reply%20with%20a%20response%20frame.%20Why%20is%20this%3F%20I%20have%20confirmed%20that%20the%20PORT%20configuration%20of%20the%2033665%20is%20correct%20and%20that%20SYS_TPL_CFG.RESPCFG%20in%20the%2033774%20is%20set%20to%2000%20SAME%20mode.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CDIV%3E%0A%3CP%3EI%20am%20currently%20using%20an%20AFE%20sampling%20system%20consisting%20of%20the%20MC33665A%20%2B%20MC33774%20in%20a%20dual-ring%20loop%20configuration.%20I%20have%20configured%20PORT0%20and%20PORT1%20of%20the%20MC33665A%20as%20MADD0%20and%20MADD1%2C%20respectively%2C%20and%20all%20commands%20are%20currently%20sent%20through%20MADD0.%3C%2FP%3E%0A%3CP%3EWhen%20I%20connect%20only%20the%20daisy%20chain%20between%20PORT0%20and%20DC1%2C%20communication%20works%20correctly.%20However%2C%20after%20I%20also%20connect%20the%20daisy%20chain%20between%20PORT1%20and%20DC2%2C%20the%20MC33774%20no%20longer%20responds%20when%20I%20send%20requests%20to%20it.%3C%2FP%3E%0A%3CP%3EWhy%20does%20this%20happen%3F%3C%2FP%3E%0A%3CP%3EI%20have%20read%20back%20and%20verified%20that%20the%20MC33665%20PORT%20configuration%20is%20correct%2C%20and%20I%20have%20configured%20SYS_TPL_CFG.RESPCFG%20%3D%2000%20(SAME%20mode)%20in%20the%20MC33774.%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Embedded_novice_0-1782728020846.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Embedded_novice_0-1782728020846.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Embedded_novice_0-1782728020846.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F390576i164ED2A8580F30E1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Embedded_novice_0-1782728020846.png%22%20alt%3D%22Embedded_novice_0-1782728020846.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2388005%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MC33774%20Daisy%20Chain%20Dual%20Loop%20Connection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2388005%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EHI.%3C%2FP%3E%3CP%3E1.%20I%20want%20to%20know%20if%20it%20is%20necessary%20to%20reverse%20the%20allocation%20of%20DADD%20from%20the%20position%20where%20MADD%3D1%3F%3C%2FP%3E%3CP%3E2.%20My%20current%20SYS_PORT0_CFG%20configuration%20is%20TIMEOUT%3D0%2C%20CADD%3D1%2C%20MADD%3D0%2C%20PROTOCOL%3D1%2C%20ALLCHAINS%3D1%2C%20TERM%3D1%2C%20RX%3D1%2C%20EN%3D1%3C%2FP%3E%3CP%3ESYS_PORT1_CFG%20is%20configured%20with%20TIMEOUT%3D0%2C%20CADD%3D1%2C%20MADD%3D1%2C%20PROTOCOL%3D1%2C%20ALLCHAINS%3D1%2C%20TERM%3D1%2C%20RX%3D1%2C%20EN%3D1%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2387884%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MC33774%20Daisy%20Chain%20Dual%20Loop%20Connection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2387884%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EAccording%20to%20the%20AN13910%20TPL%20Loopback%20Recommendation%2C%20when%20two%20MC33665A%20TPL%20ports%20are%20connected%20as%20a%20loopback%20ring%2C%20there%20are%20several%20configuration%20requirements%20that%20may%20cause%20the%20behavior%20you%20are%20seeing.%3CBR%20%2F%3EFor%20a%20loopback%20configuration%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EWe%20recommend%20assigning%20device%20addresses%20(DADD)%20in%20ascending%20order%20from%20one%20side%20of%20the%20ring%20and%20in%20reverse%20order%20from%20the%20loopback%20side%20(I%20do%20not%20see%20this%20in%20your%20image).%3C%2FLI%3E%0A%3CLI%3EIf%20two%20ports%20are%20connected%20as%20loopback%2C%20one%20of%20the%20ports%20should%20have%20SYS_PORTx_CFG%5BRX%5D%20%3D%200%20to%20avoid%20duplicate%20data%20entering%20the%20MC33665%20buffer.%3C%2FLI%3E%0A%3CLI%3EIn%20addition%2C%20one%20of%20the%20ports%20should%20have%20SYS_PORTx_CFG%5BALLCHAINS%5D%20%3D%200.%20If%20both%20loopback%20ports%20accept%20ALLCHAINS%20commands%2C%20document%20states%20that%20this%20can%20cause%20signal%20conflicts%20and%20communication%20errors.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ECould%20you%20please%20share%20the%20values%20of%20SYS_PORT0_CFG%20and%20SYS_PORT1_CFG%20(especially%20EN%2C%20RX%2C%20ALLCHAINS%2C%20MADD%2C%20and%20CADD)%3F%20That%20would%20help%20determine%20whether%20the%20loopback%20ports%20are%20configured%20according%20to%20the%20AN13910%20recommendations.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2388581%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MC33774%20Daisy%20Chain%20Dual%20Loop%20Connection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2388581%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EAccording%20to%20AN13910%20TPL%20Loopback%20Recommendation%2C%20the%20DADD%20assignment%20should%20be%20reversed%20from%20the%20MADD%3D1%20side%20in%20a%20loopback%20topology.%3C%2FP%3E%0A%3CP%3EIn%20addition%2C%20your%20current%20configuration%20has%20RX%3D1%20and%20ALLCHAINS%3D1%20on%20both%20ports.%20For%20a%20loopback%20connection%2C%20we%20recommend%20disabling%20RX%20and%20ALLCHAINS%20on%20one%20of%20the%20ports%20to%20avoid%20duplicate%20routing%20and%20communication%20conflicts.%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20try%20configuring%20one%20port%20with%20RX%3D0%20and%20ALLCHAINS%3D0%20(for%20example%2C%20PORT1)%20and%20verify%20whether%20the%20MC33774%20starts%20returning%20response%20frames%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E