Mikroelektronika MikroE Development Kits MIKROE-1207 Datenbogen

Produktcode
MIKROE-1207
Seite von 614
© 2009-2012 Microchip Technology Inc.
Preliminary
DS70616F-page 387
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 enabled
0 = D+ data line pull-up resistor disabled
bit 6
DMPULUP: D- Pull-Up Enable bit
1 = D- data line pull-up resistor enabled
0 = D- data line pull-up resistor disabled
bit 5
DPPULDWN: D+ Pull-Down Enable bit
(1)
1 = D+ data line pull-down resistor enabled
0 = D+ data line pull-down resistor disabled
bit 4
DMPULDWN: D- Pull-Down Enable bit
(1)
1 = D- data line pull-down resistor enabled
0 = D- data line pull-down resistor disabled
bit 3
VBUSON: V
BUS
 Power-on bit
(1)
1  = V
BUS
 line powered
0  = V
BUS
 line not powered
bit 2
OTGEN: OTG Features Enable bit
(1)
1 = USB OTG enabled; all D+/D- pull-ups and pull-downs bits are enabled
0 = USB OTG 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  = V
BUS
 line set to charge to 3.3V
0  = V
BUS
 line set to charge to 5V
bit 0
VBUSDIS: V
BUS
 Discharge Enable bit
(1)
1  = V
BUS
 line discharged through a resistor
0  = V
BUS
 line not discharged
Note 1: These bits are only used in Host mode; do not use in Device mode.