37.7.18 USB Test Mode Register

Table 37-20. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: TESTMODE
Offset: 0x100F
Reset: 0x0000
Property: PAC Write-Protection

Bit 76543210 
 FORCEHOSTFIFOACCESSFORCEFSFORCEHSTESTPACKETTESTKTESTJTESTSE0NAK 
Access R/WR/W/HCR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 7 – FORCEHOST Test Mode Force Host Select bit

ValueDescription
0Normal operation
1Forces USB module into Host mode, regardless of whether it is connected to any peripheral

Bit 6 – FIFOACCESS Test Mode Endpoint 0 FIFO Transfer Force bit

ValueDescription
0No transfer
1Transfers the packet in the Endpoint 0 TX FIFO to the Endpoint 0 RX FIFO

Bit 5 – FORCEFS Test Mode Force Full-Speed Mode Select bit

This bit is only active if FORCEHST = 1.

ValueDescription
0If FORCEHS = 0, places USB module into Low-Speed mode.
1Forces USB module into Full-Speed mode. Undefined behavior if FORCEHS = 1.

Bit 4 – FORCEHS Test Mode Force Hi-Speed Mode Select bit

This bit is only active if FORCEHST = 1.

ValueDescription
0If FORCEFS = 0, places USB module into Low-Speed mode.
1Forces USB module into Hi-Speed mode. Undefined behavior if FORCEFS = 1.

Bit 3 – TESTPACKET Test_Packet Test Mode Select bit

This bit is only active if module is in Hi-Speed mode.

ValueDescription
0Normal operation
1The USB module repetitively transmits on the bus a 53-byte test packet. Test packet must be loaded into the Endpoint 0 FIFO before the test mode is entered.

Bit 2 – TESTK Test_K Test Mode Select bit

This bit is only active if the USB module is in Hi-Speed mode.

ValueDescription
0Normal operation
1Enters Test_K test mode. The USB module transmits a continuous K on the bus.

Bit 1 – TESTJ Test_J Test Mode Select bit

This bit is only active if the USB module is in Hi-Speed mode.
ValueDescription
0Normal operation
1Enters Test_J test mode. The USB module transmits a continuous J on the bus.

Bit 0 – TESTSE0NAK Test_SE0_NAK Test Mode Select bit

This mode is only active if module is in Hi-Speed mode

ValueDescription
0Normal operation
1Enter Test_SE0_NAK test mode. The USB module remains in Hi-Speed mode but responds to any valid IN token with a NAK