SFR Definition 16.1. USB0XCN: USB0 Transceiver Control
R/W
R/W
PREN
PHYEN
SPEED
Bit7
Bit6
Bit7:
PREN: Internal Pull-up Resistor Enable
The location of the pull-up resistor (D+ or D–) is determined by the SPEED bit.
0: Internal pull-up resistor disabled (device effectively detached from the USB network).
1: Internal pull-up resistor enabled when VBUS is present (device attached to the USB net-
work).
Bit6:
PHYEN: Physical Layer Enable
This bit enables/disables the USB0 physical layer transceiver.
0: Transceiver disabled (suspend).
1: Transceiver enabled (normal).
Bit5:
SPEED: USB0 Speed Select
This bit selects the USB0 speed.
0: USB0 operates as a Low Speed device. If enabled, the internal pull-up resistor appears
on the D– line.
1: USB0 operates as a Full Speed device. If enabled, the internal pull-up resistor appears on
the D+ line.
Bits4–3: PHYTST1–0: Physical Layer Test
These bits can be used to test the USB0 transceiver.
PHYTST[1:0]
00b
01b
10b
11b
Bit2:
DFREC: Differential Receiver
The state of this bit indicates the current differential value present on the D+ and D– lines
when PHYEN = '1'.
0: Differential '0' signaling on the bus.
1: Differential '1' signaling on the bus.
Bit1:
Dp: D+ Signal Status
This bit indicates the current logic level of the D+ pin.
0: D+ signal currently at logic 0.
1: D+ signal currently at logic 1.
Bit0:
Dn: D- Signal Status
This bit indicates the current logic level of the D– pin.
0: D– signal currently at logic 0.
1: D– signal currently at logic 1.
C8051F340/1/2/3/4/5/6/7/8/9/A/B/C/D
R/W
R/W
R/W
PHYTST1 PHYTST0 DFREC
Bit5
Bit4
Bit3
Mode
Mode 0: Normal (non-test mode)
Mode 1: Differential '1' Forced
Mode 2: Differential '0' Forced
Mode 3: Single-Ended '0' Forced
Rev. 1.3
R
R
R
Dp
Dn
Bit2
Bit1
Bit0
D+
D–
X
X
1
0
0
1
0
0
Reset Value
00000000
SFR Address:
0xD7
161
Need help?
Do you have a question about the C8051F341 and is the answer not in the manual?