ElectronIX
1.74K subscribers
3.93K photos
358 videos
674 files
7.25K links
Авторский канал об электронике, беспроводной связи, схемотехнике и многом другом.
by @megalloid
Download Telegram
Правильное начало статьи о протоколе USB.

"В настоящий момент один из самых популярных интерфейсов — это безусловно USB. Девайсов, которые его используют, просто огромное количество. Это и мышки, и клавиатуры, и принтеры, и сотовые телефоны, и много чего ещё. В отличии от стремительно исчезающего RS-232, USB встречается во всех современных компьютерах, ноутбуках, телефонах… так что, если мы хотим создавать действительно универсальные девайсы, придётся нам этот интерфейс изучать. Вот прямо сейчас и начнём, а заодно, по ходу изучения, попытаемся сами посоздавать каких-нибудь USB-девайсов. "

http://radiohlam.ru/usb1/

#usb
Forwarded from Магический Дым
Forwarded from Магический Дым
Вчера присутствовал на сеансе чёрной магии и волшебства. Пилим тут значит один проектик, в котором есть USB CDC. Всё было классно, работало. Приехали на площадку заказчика, в Челябу и всё повалилось. USB перестал что либо принимать/отправлять, при том что мы ничего не меняли. Аппаратная часть, проверили, была в порядке, прошивка не менялась. В общем долго ковырялся, а надо было сразу же загуглить.

ST Community: USB CDC dont work in debug

Не знаю почему после этого заработало и почему раньше работало без этого, но... В общем имейте ввиду.

#stm32 #usb #cdc #troubleshooting #eng
Forwarded from Магический Дым
Forwarded from 𝗜𝗣 cores
Open Source USB test suite is an open source test suite for USB IP cores. It currently supports USB1.1 and will be extended for higher revisions in the future.

◦ https://github.com/antmicro/usb-test-suite-build - top level repo
◦ https://github.com/antmicro/usb-test-suite-cocotb-usb - cocotb_usb
◦ https://github.com/antmicro/usb-test-suite-testbenches - test and wrapper scripts

#verification #cocotb #python #USB #tb
Forwarded from Магический Дым
Hackaday: EXPLORING THE RASPBERRY PI 4 USB-C ISSUE IN-DEPTH

Кроме проблемы с HDMI, в новой RPi 4 ещё и проблемы с Type-C. Проблема в схемоте.

> This value falls within the range permitted for Ra, and thus the Raspberry Pi 4 is detected by the source as Ra + Ra, meaning that it is an audio adapter accessory, essentially a USB-C-to-analog audio dongle. This means that the source does not provide any power on VBUS and the Raspberry Pi 4 will not work as it does not get any power.

В статье, к слову, расписаны ещё и предыдущие косяки малины.

К RPi 4 они наконец-таки догадались что 2/3A через microUSB не очень ок, но сделали это не правильно... C'est la vie.

Вообще с этим вашим USB Type-C что-то не то. Сейчас ещё USB4 выйдет и станет ещё веселее.

> USB-IF говорит, что USB4 может быть обратно совместимым с Thunderbolt 3 от Intel, также использующим коннекторы Type-C. Это разумно, ведь в спецификации USB4 входят и спецификации Thunderbolt 3. Но поддержка Thunderbolt 3 не будет обязательной для USB4. // USB4: что в нём нового и почему это важно

#rpi #issue #usb #type_c #eng
Forwarded from 𝗜𝗣 cores
FPGA USB Bootloader - an open source IP for programming FPGAs without extra USB interface chips.

It implements a USB virtual serial port to SPI flash bridge on the FPGA fabric itself. For FPGAs that support loading multiple configurations it is possible for the bootloader to be completely unloaded from the FPGA before the user configuration is loaded in. From the host computer's perspective, the bootloader looks like a serial port.

Links:
◦ Device side
◦ Host side

#USB #bootloader #FPGA #verilog
Forwarded from 𝗜𝗣 cores
Lightweigth USB Core - core that would be similar to the SIE you find in classic microcontrollers that support USBs. That means it requires a soft core to implement the actual USB stack, the hardware itself only handle up to the transaction layer of USB.

It's designed to be small but still allow full flexibility of what kind of device it implements, supports all types of transfers, all packet sizes and any combination of end points without having to change the hardware configuration at all.

Features:
◦ 10 BRAM, 390 FF and 530 LUT4
◦ Clocked at 48 MHz
◦ Wishbone interface for the CSRs and Buffer Descriptors

Links:
◦ Doc
◦ Src

#USB #iCE40 #FPGA #verilog #PHY
Forwarded from 𝗜𝗣 cores
FTDI FT601 SuperSpeed USB3.0 to AXI-Master allows an FT60x USB3.0 device to act as a high-performance AXI4 bus master.

Features:
◦ AXI-4 bus master with support for incrementing bursts and multiple outstanding transactions (for high performance)
◦ 2 x 8KB FIFO
◦ Designed to work @ 100MHz in FPGA (FT60x max clock rate)
◦ Uses FT60x 245 mode protocol (32-bit mode)

✅ AXI-4 burst reads @ 170MB/s
✅ AXI-4 burst writes @ 230MB/s

https://github.com/ultraembedded/core_ft60x_axi

#USB3 #USB #FT601 #AXI #verilog #host