參數(shù)資料
型號: uPSD3234
廠商: 意法半導(dǎo)體
英文描述: Flash Programmable System Device with 8032 Microcontroller Core(嵌入高速“8032微控制器核”的Flash型可編程系統(tǒng)器)
中文描述: 閃存可編程系統(tǒng)器件與8032微控制器內(nèi)核(嵌入高速“8032微控制器核”的閃存型可編程系統(tǒng)器)
文件頁數(shù): 24/54頁
文件大小: 736K
代理商: UPSD3234
AN1886 - APPLICATION NOTE
24/54
USB Disconnect on Demand Feature
Since version 2.0_XP (December 2003), the USB demonstration program also supports the USB Discon-
nect-on-Demand feature. This feature was especially developed for the μPSD32xxA (with USB), and al-
lows the disconnecting, or reconnecting, of the USB device without physically unplugging it. This USB
Disconnect-on-Demand feature is very useful in many applications, and also greatly helps while debug-
ging your USB applications. There is no need to unplug the USB connector or cables. It quickly saves a
great deal of development time, and avoids having to make any special, major modifications to your ap-
plication. For more information, please see
AN1815
.
This feature is disabled by default, though. If you wish to use it, it needs to be enabled, in
main.c,
by re-
moving the comment characters in front of the following
#define
line:
#define USBDisconnetOnDemand
Note: Be sure that your hardware is capable of supporting it. In the case of the DK3200 kit and the USB
demonstration program, do not forgot to insert jumpers PB0-PB3 (located at the left lower part of the kit).
The responsible part of code for the USB reconnect is as shown in
APPENDIX K.
.
The test and activation can be found in the
main()
routine (the feature is invoked by pressing
Switch One
on the DK3200 kit):
The following initialization causes the PB0,1 pins to be set as inputs:
// The following two lines can be deleted if no USB Disconnect feature is implemented
00812 UPSD_xreg.DIRECTION_B |= 0x03; // set PSD-PB0,1 DDR high
00813 UPSD_xreg.DATAOUT_B = 0x03; // disable LED2, low level active /01/02
and the following lines achieve the testing and invocation:
if ((UPSD_xreg.DATAIN_B & 0x04)==0) // check Swith ONE
{
ReConnectUSB(); // Disconnect USB when pressed
}
相關(guān)PDF資料
PDF描述
uPSD3251(中文) Flash Programmable System Devices with 8032 Microcontroller Core(帶8032微控制器內(nèi)核的Flash可編程系統(tǒng)設(shè)備)
uPSD3251 Flash Programmable System Devices with 8032 Microcontroller Core(帶8032微控制器內(nèi)核的Flash可編程系統(tǒng)設(shè)備)
uPSD3253AV-24T1T Flash Programmable System Devices with 8032 Microcontroller Core
UPSD3253B Two and Three Channel Codewheels
UPSD3253BV Flash Programmable System Devices with 8032 Microcontroller Core
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
UPSD32348V24V6ES 制造商:ST MICRO 功能描述:*
UPSD3234A 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:Flash Programmable System Devices with 8032 Microcontroller Core
UPSD3234A-24T1 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:Flash Programmable System Device with 8032 Microcontroller Core
UPSD3234A-24T1T 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:Flash Programmable System Devices with 8032 Microcontroller Core and 64Kbit SRAM
UPSD3234A-24T6 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:Flash Programmable System Device with 8032 Microcontroller Core