2023-07-26 03:20 AM
I want use this mcu STM32L052T6Yx to communicate via usb (virtual port com ) whit pc (whith linux system operativ).
THE power supply of mcu is 3.3v, can I problems if i directly connect PA11 PA12 PIN to the pc usb (common ground)? , moreover on pins PA11 PA12 I have not connected any pull-up pull-down resistor , it is right?
2023-07-26 08:20 AM
PA11/PA12 should be connected directly to the USB data lines. It has an embedded pullup resistor so an external one is not needed. The signal voltage on the data lines is only 3.3V despite power being 5.0V.
2023-07-26 08:56 AM
one last question , for the usb , do i have to connect any external oscillator to the mcu ?
2023-07-26 09:03 AM
On the STM32L0x2 you can use the Clock Recovery System to generate an accurate-enough clock for USB using the internal HSI48 oscillator. No external clock source needed.