English
Language : 

W681307DG Datasheet, PDF (150/160 Pages) Winbond – USB1.1 CODEC Microprocessor Control Unit with 32KB Mask ROM and 4KB RAM.
W681307
18.2.6
USB ISP mode
Interface 4 does not belong to any class. It has one Bulk In and Bulk Out endpoints. Both maximum packet sizes are 64 bytes. For gain
better performance, we implement ping-pong FIFO control in Bulk In/Out transfer.
USB ISP mode uses interface 4. It can download code from PC to external flash by Bulk Out or read the code of external flash on PC by
Bulk In via USB bus after install the driver.
18.2.7
Vendor Command
The Vendor command is supported. The bits [6:5] = 2 means Vendor command and bit 7 means data transfer direction in byte 0 of
SETUP data in USB 1.1 spec. Based on the rules, users can define individual vendor commands and use them to communicate host and
device.
18.3
18.3.1
USB Registers
USB Enable Register
Address
0x1800
Access Mode Value At Reset Nominal Value
R/W
0x00
Bit 7
Bit 6
RESERVED RESERVED
Bit 5
SE0_Dis
Bit 4
R_PullUp
Bit 3
TRX_EN
Bit 2
PLL_EN
Bit 1
Suspend_EN
Bit 0
USB_Reset
USB_Rese
Suspend_EN
PLL_EN
TRX_EN
R_PullUp
SE0_Dis
Active High. Reset USB digital part. And when S/W receive RESET Interrupt (from host), could use this bit to reset USB.
Active High. Active High and disable the bias current of Transceiver.
Active High. Enable charge pump and VCO.
Active High. Enable Transceiver.
Active High. Enable a pull-up resister (1.5K ohm) to D+.
Active High, disable SE0. Default is Low, and set D+ and D- to “0”.
When USB device need to enable a pull-up resister to D+, it also need to disable SE0 state.
18.3.2
18.3.2.1
USB Interrupt Register A
Enable
Address
0x1801
Access Mode Value At Reset Nominal Value
R/W
0x00
Bit 7
SET_HID
_Intrpt
Bit 6
Bit 5
RESERVED CDI_Intrpt
Bit 4
Bit 3
Bit 2
CDO_Intrpt IRQI_Intrpt BKO_Intrpt
Bit 1
BKI_Intrpt
Bit 0
VENDER
_Intrpt
18.3.2.2
Address
0x1802
Status
Access Mode Value At Reset Nominal Value
R
0x00
- 150 -
Publication Release Date: May, 2007
Revision 1.3