projects:usb-c-ify
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:usb-c-ify [2025/11/19 19:53] – [USB-C cables] admin | projects:usb-c-ify [2025/11/19 22:51] (current) – [USB-C device roles] admin | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== USB-C-ifying ====== | ====== USB-C-ifying ====== | ||
| - | Having several different chargers for devices is tedious. Read about how to convert nearly everything into USB-C. \\ | + | Having several different |
| It can be done two ways: \\ | It can be done two ways: \\ | ||
| Line 84: | Line 84: | ||
| ==== TODO ==== | ==== TODO ==== | ||
| + | https:// | ||
| + | In connectors that do not expose the CC1 and CC2 pins, they are simply connected internally to make things easy for you. | ||
| + | |||
| USB-PD (65W) fast charger buck boards \\ | USB-PD (65W) fast charger buck boards \\ | ||
| Bidirectional power bank modules: e.g. IP2369, read [[: | Bidirectional power bank modules: e.g. IP2369, read [[: | ||
| Line 190: | Line 193: | ||
| Read the [[https:// | Read the [[https:// | ||
| - | Depending on device type there might be direct audio output on USB-C socket, which let's you use a passive adapter - unlike [[https:// | + | Depending on device type there might be direct audio output on USB-C socket, which let's you use a passive adapter - unlike [[https:// |
| USB-C cables are not necessarily passive. There might be so called e-marker chips connected to the CC-pins. \\ | USB-C cables are not necessarily passive. There might be so called e-marker chips connected to the CC-pins. \\ | ||
| Line 201: | Line 204: | ||
| | Active USB-C Cable (USB4/ | | Active USB-C Cable (USB4/ | ||
| + | ====== USB-C device roles ====== | ||
| - | USB-C CC-pins resistor values | + | Read [[https:// |
| + | |||
| + | USB-C devices have different roles: \\ | ||
| + | |||
| + | ^ Device Role ^ Meaning ^ CC Resistors Used ^ CC Behavior ^ Notes ^ | ||
| + | | DFP (Downstream Facing Port) – Source | Provides power (charger, host) | Rp (56k, 22k, or 10k) | Pull-up on CC1 and/or CC2 | Advertises current: 56k=Default, | ||
| + | | UFP (Upstream Facing Port) – Sink | Consumes power (phone, device) | Rd (5.1k) | Pull-down on CC1 and CC2 | Signals “I want power”; source detects Rd to begin supplying VBUS | | ||
| + | | DRP (Dual Role Power) | Can be source *or* sink | Switches between Rp and Rd | Toggles Rp ↔ Rd periodically | Used in phones, laptops, some MCUs; role decided via toggling rules | | ||
| + | | Accessory Mode (Audio/ | ||
| + | | Cable Plug with E-Marker | Certified 5A or USB4 cable | No resistors; digital IC | Communicates via CC and powered over VCONN | Identifies cable capabilities (5A, EPR, USB4, length, vendor) | | ||
| + | |||
| + | |||
| + | USB-C power roles are configured with CC-pin | ||
| + | In connectors that do not expose the CC1 and CC2 pins, they are simply connected internally to make things easy for you. \\ | ||
| + | Selecting Sink or Source via the USB-C CC pins is conceptually equivalent to the micro-USB ID pin (4), which sets the OTG role by making the device act as the Source/Host (DFP) when the ID pin is grounded. | ||
| ^ Name ^ Value ^ Used By ^ Meaning ^ | ^ Name ^ Value ^ Used By ^ Meaning ^ | ||
| Line 212: | Line 230: | ||
| Everything else (voltages, 5A capability, data mode, PD negotiation) is digital, not resistor-coded. \\ | Everything else (voltages, 5A capability, data mode, PD negotiation) is digital, not resistor-coded. \\ | ||
| - | |||
| - | |||
| - | ^ Device Role ^ Meaning ^ CC Resistors Used ^ CC Behavior ^ Notes ^ | ||
| - | | DFP (Downstream Facing Port) – Source | Provides power (charger, host) | Rp (56k, 22k, or 10k) | Pull-up on CC1 and/or CC2 | Advertises current: 56k=Default, | ||
| - | | UFP (Upstream Facing Port) – Sink | Consumes power (phone, device) | Rd (5.1k) | Pull-down on CC1 and CC2 | Signals “I want power”; source detects Rd to begin supplying VBUS | | ||
| - | | DRP (Dual Role Power) | Can be source *or* sink | Switches between Rp and Rd | Toggles Rp ↔ Rd periodically | Used in phones, laptops, some MCUs; role decided via toggling rules | | ||
| - | | Accessory Mode (Audio/ | ||
| - | | Cable Plug with E-Marker | Certified 5A or USB4 cable | No resistors; digital IC | Communicates via CC and powered over VCONN | Identifies cable capabilities (5A, EPR, USB4, length, vendor) | | ||
projects/usb-c-ify.1763578413.txt.gz · Last modified: by admin
