參數(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ù): 37/54頁
文件大小: 736K
代理商: UPSD3234
37/54
AN1886 - APPLICATION NOTE
APPENDIX A. USBISR
static void UsbIsr() interrupt 6 using 2
/******************************************************************************
Function : static void UsbIsr()
Parameters : none
Description: USB interrupt service routine.
Note: Do not modify this routine !!!
******************************************************************************/
{
data uchar cb;
data uchar i;
if (RXD0F) // If data received on EP0 OUT ...
{
// do not change this SETUP packet processing part up to else !!!
if (USTA & uSETUP) // If it’s a SETUP packet ...
{
if (UCON0 & uSTALL0)
{
#pragma asm
anl UCON0,#255-uSTALL0 ;clear STALL0 bit
#pragma endasm
}
if (ReadSetupPacket()) // Read the SETUP packet
{
if (!HandleReport()) // Test and handle HID type packets
{
// If this is not a HID report ... pass it on to the basic SETUP packet
handler
OnSetupPacket();
}
} // No Setup packet with DATA length = 8, STALLed automatically in
ReadSetupPacket()
RXD0F = 0; // Clear interrupt flag so next packet can come in now
}
else
/*======== No SETUP packet, normal data packets ========*/
{
// If in the middle of receiving a report ...
if ((USTA & 0x0F) && (rcvIndex < OUTPUT_REPORT_SIZE))
{
cb = (USTA & 0x0F); // Read the next segment
if (cb > EP0_SIZE)
{
cb = EP0_SIZE;
}
for (i = 0; i < cb; i++)
{
rcvReport.u.buffer[rcvIndex + i] = UDR0; // read received data
}
#pragma asm
xrl USTA,#uRSEQ // Toggle data toggle bit
#pragma endasm
// Handle report as it comes in and/or when all done
OnReportSegmentReceived(cb);
相關(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