參數(shù)資料
型號: uPSD3234
廠商: 意法半導體
英文描述: Flash Programmable System Device with 8032 Microcontroller Core(嵌入高速“8032微控制器核”的Flash型可編程系統(tǒng)器)
中文描述: 閃存可編程系統(tǒng)器件與8032微控制器內(nèi)核(嵌入高速“8032微控制器核”的閃存型可編程系統(tǒng)器)
文件頁數(shù): 48/54頁
文件大?。?/td> 736K
代理商: UPSD3234
AN1886 - APPLICATION NOTE
48/54
APPENDIX I. ONREPORTRECEIVED
Static void OnReportReceived()
/******************************************************************************
Function : static void OnReportReceived()
Parameters : none
Description: Called after all segments of a report have been received.
******************************************************************************/
{
if (rcvReport.u.cmd) // If this is a new command coming in ...
{
if (rcvReport.u.cmd == CMD_STATUS)
{
// For CMD_GET_STATUS, don’t overwrite current cmd we’re working on
returnStatus = TRUE;
}
else
{
// Copy into ’current command’ global variable
memcpy(currentCmd.u.buffer, rcvReport.u.buffer,
sizeof
(rcvReport));
memset((uchar*)&status, 0,
sizeof
(status));
// g_debug1 = currentCmd.u.cmd;
}
// Some commands are processed at this point
switch (rcvReport.u.cmd)
{
case CMD_RESET:
WDKEY=0; // watchdog will trigger reset in a second
currentCmd.u.cmd = 0;
break;
case CMD_SET_PAGE:
UPSD_xreg.PAGE = rcvReport.u.setRegs.page;
currentCmd.u.cmd = 0;
break;
case CMD_SET_VM:
UPSD_xreg.VM = rcvReport.u.setRegs.vm;
currentCmd.u.cmd = 0;
break;
case CMD_SET_REGS:
UPSD_xreg.PAGE = rcvReport.u.setRegs.page;
UPSD_xreg.VM = rcvReport.u.setRegs.vm;
currentCmd.u.cmd = 0;
break;
default:
// Prepare first segment of any response to go back to host
PrepareTransmitSegment(0);
break;
}
}
}
相關(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