AnsweredAssumed Answered

USB OTG HOST PA9 PIN

Question asked by petrov.konstantin on Jun 4, 2011
Latest reply on Jun 7, 2011 by naik.deepak.001
Hi:

I am trying to use USB OTG as a host. I have to enable PA9 pin which is the VBUS. I tried everything but could not get 5V only 3.3V. What I am missing?

Code:

 GPIO_InitStructure.GPIO_Pin = HOST_POWERSW_VBUS;
  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
  GPIO_Init(HOST_POWERSW_PORT, &GPIO_InitStructure);
  
  /* By Default, DISABLE is needed on output of the Power Switch */
  GPIO_SetBits(HOST_POWERSW_PORT, HOST_POWERSW_VBUS);

Thanks,
Konstantin

Outcomes