GD3162 CONFIG_EN PIN

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

GD3162 CONFIG_EN PIN

Jump to solution
1,184 Views
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 Kudos
Reply
1 Solution
1,162 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,163 Views
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 Kudos
Reply
1,120 Views
21221sad
Contributor I

Thanks a lot! It works perfectly.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2357242%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EGD3162%20CONFIG_EN%20PIN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2357242%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3EHello%20NXP%20Team%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EI%E2%80%99m%20working%20with%20your%20official%20GD3162%20driver%20code%20and%20facing%20an%20abnormal%20issue%20with%20the%20MODE2%20register%20write%20operation%2C%20and%20would%20appreciate%20your%20help%20to%20resolve%20it.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EHere%20are%20the%20full%20details%20of%20the%20operation%20and%20phenomenon%3A%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3COL%3E%3CLI%3ERead%20the%20MODE2%20register%3A%20returned%200x0660D4%2C%20meaning%20CONFIG_EN%20%3D%200x0%20(red%20box)%3C%2FLI%3E%3CLI%3EWrite%200x86646F%20to%20the%20MODE2%20register%20(yellow%20box)%3C%2FLI%3E%3CLI%3ERead%20back%20the%20MODE2%20register%20after%20writing%3A%20returned%200x8660D3%2C%20with%20the%20CONFIG_EN%20bit%20still%20at%200x0%3C%2FLI%3E%3C%2FOL%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3ECould%20you%20please%20help%20explain%20why%20the%20CONFIG_EN%20bit%20cannot%20be%20set%20successfully%2C%20and%20advise%20on%20the%20correct%20procedure%20to%20configure%20this%20register%3F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EThank%20you.%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%3EThanks%20a%20lot!%20It%20works%20perfectly.%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%3EHello%20Wentao%2C%3C%2FP%3E%0A%3CDIV%3E%3CSPAN%3EPlease%20try%20following%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EBoth%20LV%20and%20HV%20domains%20powered%20and%20stable.%20If%20LV%20comes%20up%20before%20HV%2C%20the%20device%20may%20flag%20WDOG_FLT%20until%20HV%20powers%3B%20clear%20it%20before%20proceeding.%20Otherwise%2C%20configuration%20writes%20can%20be%20blocked%20or%20immediately%20reset%20by%20the%20fault%20state.%20Clear%20watchdog%20(and%20any%20other)%20latched%20faults%20by%20writing%20%E2%80%981%E2%80%99%20to%20the%20corresponding%20STATUSx%20bit%20once%20both%20domains%20are%20valid.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EINTB%20not%20asserting%20an%20uncleared%20fault.%20If%20INTB%20is%20low%20due%20to%20a%20latched%20fault%2C%20clear%20it%20first%20as%20above%3B%20the%20official%20sequence%20from%20NXP%20support%20explicitly%20shows%20clearing%20faults%20and%20then%20entering%20configuration.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EStep%201%3A%20Set%20CONFIG_EN%3D1%20in%20MODE2%20%E2%86%92%20%E2%80%9CPWM%20operation%20will%20be%20disabled%2C%20INTB%20stays%20high.%E2%80%9D%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EStep%202%3A%20(optional)%20If%20you%20plan%20to%20reset%2C%20set%20RESET%3D1%20(still%20in%20MODE2)%20%E2%86%92%20%E2%80%9CINTB%20goes%20low%20and%20registers%20reset%20to%20defaults%3B%20PWM%20disabled.%E2%80%9D%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EStep%203%3A%20Clear%20RESET%20back%20to%200%20%E2%86%92%20%E2%80%9CINTB%20returns%20high%3B%20now%20you%20can%20write%20configuration%20registers.%E2%80%9D%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EStay%20in%20config%20(i.e.%2C%20keep%20CONFIG_EN%3D1)%20until%20all%20config%20registers%20are%20written%3B%20then%20write%20CONFIG_EN%3D0%20to%20exit.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EWrite%20MODE2%20(CONFIG_EN%3D1)%2C%26nbsp%3Bsend%20a%20read%20of%20MODE2%2C%26nbsp%3Bdiscard%20first%20read%2C%20take%20second%20read%20as%20valid%20value.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EBRs%2C%20Tomas%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E