GD3162 CONFIG_EN PIN

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

GD3162 CONFIG_EN PIN

跳至解决方案
1,180 次查看
21221sad
Contributor I
Hello NXP Team,
 
I’m working with your official GD3162 driver code and facing an abnormal issue with the MODE2 register write operation, and would appreciate your help to resolve it.
 
Here are the full details of the operation and phenomenon:
 
  1. Read the MODE2 register: returned 0x0660D4, meaning CONFIG_EN = 0x0 (red box)
  2. Write 0x86646F to the MODE2 register (yellow box)
  3. Read back the MODE2 register after writing: returned 0x8660D3, with the CONFIG_EN bit still at 0x0
 
Could you please help explain why the CONFIG_EN bit cannot be set successfully, and advise on the correct procedure to configure this register?
 
Thank you.

21221sad_0-1777369063374.png

 

0 项奖励
回复
1 解答
1,158 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Wentao,

Please try following:
Both LV and HV domains powered and stable. If LV comes up before HV, the device may flag WDOG_FLT until HV powers; clear it before proceeding. Otherwise, configuration writes can be blocked or immediately reset by the fault state. Clear watchdog (and any other) latched faults by writing ‘1’ to the corresponding STATUSx bit once both domains are valid.
 
INTB not asserting an uncleared fault. If INTB is low due to a latched fault, clear it first as above; the official sequence from NXP support explicitly shows clearing faults and then entering configuration.
 
Step 1: Set CONFIG_EN=1 in MODE2 → “PWM operation will be disabled, INTB stays high.”
Step 2: (optional) If you plan to reset, set RESET=1 (still in MODE2) → “INTB goes low and registers reset to defaults; PWM disabled.”
Step 3: Clear RESET back to 0 → “INTB returns high; now you can write configuration registers.”
Stay in config (i.e., keep CONFIG_EN=1) until all config registers are written; then write CONFIG_EN=0 to exit.
 
Write MODE2 (CONFIG_EN=1), send a read of MODE2, discard first read, take second read as valid value.
 
BRs, Tomas

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,159 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Wentao,

Please try following:
Both LV and HV domains powered and stable. If LV comes up before HV, the device may flag WDOG_FLT until HV powers; clear it before proceeding. Otherwise, configuration writes can be blocked or immediately reset by the fault state. Clear watchdog (and any other) latched faults by writing ‘1’ to the corresponding STATUSx bit once both domains are valid.
 
INTB not asserting an uncleared fault. If INTB is low due to a latched fault, clear it first as above; the official sequence from NXP support explicitly shows clearing faults and then entering configuration.
 
Step 1: Set CONFIG_EN=1 in MODE2 → “PWM operation will be disabled, INTB stays high.”
Step 2: (optional) If you plan to reset, set RESET=1 (still in MODE2) → “INTB goes low and registers reset to defaults; PWM disabled.”
Step 3: Clear RESET back to 0 → “INTB returns high; now you can write configuration registers.”
Stay in config (i.e., keep CONFIG_EN=1) until all config registers are written; then write CONFIG_EN=0 to exit.
 
Write MODE2 (CONFIG_EN=1), send a read of MODE2, discard first read, take second read as valid value.
 
BRs, Tomas
0 项奖励
回复
1,116 次查看
21221sad
Contributor I

Thanks a lot! It works perfectly.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2357242%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Egd3162%20config_en%20%E5%BC%95%E8%84%9A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2357242%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3E%E6%82%A8%E5%A5%BD%EF%BC%8CNXP%E5%9B%A2%E9%98%9F%EF%BC%8C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%E4%BD%A0%E4%BB%AC%E7%9A%84%20GD3162%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E5%AE%98%E6%96%B9%E4%BB%A3%E7%A0%81%EF%BC%8C%E5%9C%A8%20MODE2%20%E5%AF%84%E5%AD%98%E5%99%A8%E5%86%99%E5%85%A5%E6%93%8D%E4%BD%9C%E4%B8%AD%E9%81%87%E5%88%B0%E4%BA%86%E5%BC%82%E5%B8%B8%E9%97%AE%E9%A2%98%EF%BC%8C%E5%B8%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AD%A3%E7%A1%AE%E6%AD%A5%E9%AA%A4%E6%8F%90%E4%BE%9B%E5%BB%BA%E8%AE%AE%E3%80%82%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2221221sad_0-1777369063374.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2221221sad_0-1777369063374.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F383844iC86A72064EE6B4D8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%2221221sad_0-1777369063374.png%22%20alt%3D%2221221sad_0-1777369063374.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2358340%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20GD3162%20CONFIG_EN%20PIN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2358340%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E9%9D%9E%E5%B8%B8%E6%84%9F%E8%B0%A2%EF%BC%81%E6%95%88%E6%9E%9C%E9%9D%9E%E5%B8%B8%E5%A5%BD%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2357538%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20GD3162%20CONFIG_EN%20PIN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2357538%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E6%96%87%E6%B6%9B%E3%80%81%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3E%E8%AF%B7%E5%B0%9D%E8%AF%95%E4%BB%A5%E4%B8%8B%E6%96%B9%E6%B3%95%EF%BC%9A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3E%E4%BD%8E%E5%8E%8B%E5%92%8C%E9%AB%98%E5%8E%8B%E5%9F%9F%E5%9D%87%E4%BE%9B%E7%94%B5%E4%B8%94%E7%A8%B3%E5%AE%9A%E3%80%82%E5%A6%82%E6%9E%9C%20LV%20%E5%9C%A8%20HV%20%E4%B9%8B%E5%89%8D%E5%87%BA%E7%8E%B0%EF%BC%8C%E5%88%99%E8%AE%BE%E5%A4%87%E5%8F%AF%E8%83%BD%E4%BC%9A%E6%A0%87%E8%AE%B0%20WDOG_FLT%20%E7%9B%B4%E5%88%B0%20HV%20%E9%80%9A%E7%94%B5%EF%BC%9B%E8%AF%B7%E5%9C%A8%E7%BB%A7%E7%BB%AD%E6%93%8D%E4%BD%9C%E4%B9%8B%E5%89%8D%E5%B0%86%E5%85%B6%E6%B8%85%E9%99%A4%E3%80%82%E5%90%A6%E5%88%99%EF%BC%8C%E6%95%85%E9%9A%9C%E7%8A%B6%E6%80%81%E5%8F%AF%E8%83%BD%E4%BC%9A%E9%98%BB%E6%AD%A2%E6%88%96%E7%AB%8B%E5%8D%B3%20RESET%20%E9%85%8D%E7%BD%AE%E5%86%99%E5%85%A5%E3%80%82%E4%B8%A4%E4%B8%AA%E5%8A%9F%E8%83%BD%E5%9F%9F%E5%9D%87%E6%9C%89%E6%95%88%E5%90%8E%EF%BC%8C%E9%80%9A%E8%BF%87%E5%90%91%E7%9B%B8%E5%BA%94%E7%9A%84%20StatusX%20%E4%BD%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