Datasheet
2009-2012 Microchip Technology Inc. DS70616G-page 389
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
REGISTER 22-2: UxOTGCON: USB ON-THE-GO CONTROL REGISTER
U-0 U-0 U-0 U-0 U-0 U-0 U-0 U-0
— — — — — — — —
bit 15 bit 8
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
DPPULUP DMPULUP DPPULDWN
(1)
DMPULDWN
(1)
VBUSON
(
1
)
OTGEN
(
1
)
VBUSCHG
(
1
)
VBUSDIS
(
1
)
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-8 Unimplemented: Read as ‘0’
bit 7 DPPULUP: D+ Pull-Up Enable bit
1 = D+ data line pull-up resistor is enabled
0 = D+ data line pull-up resistor is disabled
bit 6 DMPULUP: D- Pull-Up Enable bit
1 = D- data line pull-up resistor is enabled
0 = D- data line pull-up resistor is disabled
bit 5 DPPULDWN: D+ Pull-Down Enable bit
(
1
)
1 = D+ data line pull-down resistor is enabled
0 = D+ data line pull-down resistor is disabled
bit 4 DMPULDWN: D- Pull-Down Enable bit
(
1
)
1 = D- data line pull-down resistor is enabled
0 = D- data line pull-down resistor is disabled
bit 3 VBUSON: VBUS Power-on bit
(
1
)
1 =VBUS line is powered
0 =V
BUS line is not powered
bit 2 OTGEN: OTG Features Enable bit
(
1
)
1 = USB OTG is enabled; all D+/D- pull-ups and pull-downs are enabled
0 = USB OTG is disabled; D+/D- pull-ups and pull-downs are controlled in hardware by the settings of
the HOSTEN and USBEN bits (UxCON<3,0>)
bit 1 VBUSCHG: V
BUS Charge Selection bit
(
1
)
1 =VBUS line is set to charge to 3.3V
0 =V
BUS line is set to charge to 5V
bit 0 VBUSDIS: V
BUS Discharge Enable bit
(
1
)
1 =VBUS line is discharged through a resistor
0 =V
BUS line is not discharged
Note 1: These bits are only used in Host mode; do not use in Device mode.