2024-04-20 02:09 AM
hi ,
i gone through usb pcb guidelines and other forum discussion but i couldn't catch my doubt .
1). Incase of Using USB Virtual Com Port D+ (PA12) & D - (PA11) pin can be directly connect with Computer USB port without level shifter ???
During the communication Device Class selection exactly D+ & D- is open drain or ???
----------------------------------------------------------------------------------------------------------------------------------------
2.)Incase of using USB_OTG_FS in Host Only Mode PA9 - connected to Vbus - 5V and D+ (PA12) & D - (PA11) pin - Pendrive or Keyboard .
Looks PA9 is 5volt tolerant pin in stm32f722ze nucleo board so it's safe to keep 5v or it can be reduced to 3.3v with separate voltage divider ??? same time keyboard supply voltage will remain as 5v only . if the Vbus sense PA9 turned to 3.3v sensing then it will affect the D+ & D- signal ??? and additionally logic voltage is necessary ???
while we selecting the below D+ & D- will become open drain or ???
Solved! Go to Solution.
2024-04-20 03:10 AM - edited 2024-04-20 10:04 PM
Hi,
1. > D+ (PA12) & D - (PA11) pin can be directly connect
Yes. ( USB D+ & D- are 3,3V signal level - always)
> During the communication Device Class selection exactly D+ & D- is open drain or ?
What it should be . :) (half duplex symm. push/pull )
2. > Looks PA9 is 5volt tolerant pin
Yes, but i would recommend some 2k --- 3k3 -- gnd voltage divider to keep 3,3v range (just for extra safety).
>while we selecting the below D+ & D- will become open drain or
It switches, to what is needed. The hardware/driver doing this, is not your responsibility .
2024-04-20 03:10 AM - edited 2024-04-20 10:04 PM
Hi,
1. > D+ (PA12) & D - (PA11) pin can be directly connect
Yes. ( USB D+ & D- are 3,3V signal level - always)
> During the communication Device Class selection exactly D+ & D- is open drain or ?
What it should be . :) (half duplex symm. push/pull )
2. > Looks PA9 is 5volt tolerant pin
Yes, but i would recommend some 2k --- 3k3 -- gnd voltage divider to keep 3,3v range (just for extra safety).
>while we selecting the below D+ & D- will become open drain or
It switches, to what is needed. The hardware/driver doing this, is not your responsibility .
2024-04-20 08:35 PM
hi, good morning ... since main controller chip operating voltage is 3.3v and External USB Peripheral Device (like Mouse , Keyboard..Etc) working on 5V from this i am started to understand in detailed way . My concern is USB Peripheral should not damage the MCU in Long RUN . All your Technical explanation will improve my confidence and will improve further .