• 7-0 – DPADD7:0: DPRAM Address Low Bit
DAPDD7:0 is the least significant part of DPADD.
19.9.2
USB/PS2 Software Output Enable register – UPOE
Bit
7
6
5
4
3
2
1
0
UPWE1
UPWE0
UPDRV
1
UPDRV
0
SCKI
DATAI
DPI
DMI
UPOE
Read/Write
Initial Value
R/W
0
R/W
0
R/W
0
R/W
0
R
0
R
0
R
0
R
0
• Bit 7:6 – UPOE[1:0]: USB/PS2 Output enable
Set these bits with the following configuration to enable or disable the USB/PS2 software drive.
UPOE1 - UPOE0
0 - 0 : Direct drive is disabled.
0 - 1 : Reserved
1 - 0 : Direct drive of DP/DM with USB levels (UPDRV[1:0] values)
1 - 1 : Direct drive of DP/DM with PS/2 levels (UPDRV[1:0] values)
• Bit 5:4 – UPDRV[1:0] : USB/PS2 direct drive values
Write in UPDRV1 the value to write on D+/SCK following the UPOE[1:0] configuration.
Write in UPDRV0 the value to write on D-/DATA following the UPOE[1:0] configuration.
• Bit 3 – SCKI : SCK Input value
This bit is set to one by hardware if a ‘1’ is read on SCK (PS/2 pad).
This bit is set to zero by hardware if a ‘0’ is read on SCK (PS/2 pad).
• Bit 2 – DATAI : DATA Input value
This bit is set to one by hardware if a ‘1’ is read on DATA (PS/2 pad).
This bit is set to zero by hardware if a ‘0’ is read on DATA (PS/2 pad).
• Bit 1 – DPI : D+ Input value
This bit is set to one by hardware if a ‘1’ is read on D+ (USB pad).
This bit is set to zero by hardware if a ‘0’ is read on D+ (USB pad).
• Bit 0 – DMI : D- Input value
This bit is set to one by hardware if a ‘1’ is read on D- (USB pad).
This bit is set to zero by hardware if a ‘0’ is read on D- (USB pad).
19.10 USB Software Operating modes
Depending on the USB operating mode, the software should perform some the following
operations:
Power On the USB interface
• Configure PLL interface
• Enable PLL
• Check PLL lock
194
AT90USB82/162
7707D–AVR–07/08