AnsweredAssumed Answered

i.MX27 can't disable USB_OC_B(PB24/E22 pin, over current)

Question asked by torus1000 on Jun 6, 2016
Latest reply on Jun 6, 2016 by Yuri Muhin

Hi,

I needed one more GPIO pin then I modified PB24(E22) pin mux but USB over current detected when I cleared PB24.

 

Why did i.MX27 usb host detect over current in spite of gpio inuse with PTB_GIUS[24] set

or disable all _OC_B bits (b24,16&8:OPM,H2PM&H1PM) of USB_CTRL set?

 

What's wrong with my above register setting?

Is there any software to switch hidenly to detect usb over current?

 

In addition, following case cause USB over current too.

(1)to 0x1001_5110 (PTB_ICONFA2), write 0xFFFF_F000 then write 0xFFFE_F000 next #Aout 1->0

  to 0x1001_5118 (PTB_ICONFB2), write 0xFFFF_F555 then write 0xFFFE_F555 next #Bout 1->0

(2)to 0x1001_512C (PTB_ICR2), write 0x0000_0515 then write 0x0001_0515 next #rise->fall

(3)to 0x1001_5138 (PTB_GPR),  write 0x0000_0000 #primary

  to 0x1001_5120 (PTB_GIUS), write 0x01BF_FFF3 #gpio inuse =1

  to 0x1001_5100 (PTB_DDIR), write 0x0180_03F0 #output

 

Can anyone help me?

Thanks.

Outcomes