PKP
VS1000 P
ROGRAMMER
’
S
G
UIDE
VSMPG
20.2.1
USB_CONFIG - USB Device Config 0xC080
USB_CONFIG bits
Name
Bits
Description
reset
15
Reset Active
dtogg-host
14
Reset value of host data toggle (set to 0)
dtogg-device
13
Reset value of device data toggle (set to 0)
debug12-11
12:11
Debug bits (set to 0)
dtogg-errctl
10
Data Toggle error control (set to 0)
reserved9
9
Reserved (set to 0)
rstusb
8
Reset receiver (set to 0)
usb-enable
7
Enable USB
usb-address
6:0
Current USB address
20.2.2
USB_CONTROL - USB Device Control 0xC081
USB_CONTROL bits
Name
Bits
Description
USB_STF_BUS_RESET
15
Interrupt mask for bus reset
USB_STF_SOF
14
Interrupt mask for start-of-frame
USB_STF_RX
13
Interrupt mask for receive data
USB_STF_TX_READY
12
Interrupt mask for transmitter holding register
empty
USB_STF_TX_EMPTY
11
Interrupt mask for transmitter empty (idle)
USB_STF_NAK
10
Interrupt mask for NAK packet sent to host
usb-configured
0
Configured.
0
→
1 transition loads dtogg-host
and dtogg-device
Software should write “1” to usb-configured bit when completing the USB Chapter 9
Set_Configuration request. Setting this bit loads all device and host side data toggle reg-
isters with the defaults set at the dtogg-host and dtogg-device bits at the USB_CONFIG
register. The dtogg-host and dtogg-device bits should normally always be “0”.
VS1000A ROM does not use the USB interrupt.
VS1000B ROM uses the USB interrupt for SOF detection to detect USB suspend con-
dition.
Rev. 0.20
2011-10-04
Page