參數(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ù): 22/54頁
文件大?。?/td> 736K
代理商: UPSD3234
AN1886 - APPLICATION NOTE
22/54
High Level Interface
At the highest level, the Windows application and the μPSD32xxA firmware communicates using
MCU_CMD
structures. This is shown in
APPENDIX H.
. The only exception is LCD display mirror data,
which is discussed in the next section.
This structure is a union of sub-structures, each of which specifies the parameters for a particular com-
mand.
The first byte of the structure specifies a command code. For instance, the application sends a Flash mem-
ory erase command to the firmware by setting up a
MCU_CMD
structure as follows:
reportBuf.report.u.erase.cmd = CMD_ERASE;
reportBuf.report.u.erase.address = SWAP_UINT16(address);
reportBuf.report.u.erase.flash = (uchar) flash;
Note the
SWAP_UINT16
macro used to convert from little-endian to big-endian format for the 8032 pro-
cessor core of the μPSD32xx.
See the Application Interface,
Firmware\app_intr.h
, header file for the complete declaration of the
MCU_CMD
structure along with the
CMD_xxx
codes for all the commands that can be passed between
the application and the firmware. This header file is included in both the application and firmware projects,
and has the following content:
#define CMD_RESET 0x01
#define CMD_ERASE 0x02
#define CMD_WRITE 0x03
#define CMD_READ 0x04
#define CMD_STATUS 0x05
#define CMD_SET_REGS 0x06
#define CMD_SET_PAGE 0x07
#define CMD_SET_VM 0x08
The physical execution of the commands is initiated by the
OnReportReceived()
routine, which is shown
in
APPENDIX I.
.
The only exceptions are:
the
Erase
command, which takes a long execution time and thus must be executed in the background,
not as a part of USB interrupt service routine
commands that are executed for more packets (
Read
and
Write
commands). These commands are
triggered by a software interrupt process.
HID Level Interface
Communication with HID devices is achieved through the structures, called “HID Reports”, that are de-
fined in the descriptor data for each HID device. For more information on HID, see the appropriate sections
of this document, or directly in the HID standards.
The USB example firmware defines three standard HID reports in the Report Descriptor,
reportDesc,
structure in
Firmware\usb_desc.c
:
Feature Report
64 bytes of command data, passed through EP0 control endpoint.
Input Report
8 bytes of raw LCD buffer data, passed through EP1 IN interrupt endpoint
Output Report
64 bytes of command data, passed through EP0 control endpoint.
The
Report Descriptor
is read by the Microsoft HID driver during device enumeration.
At the Windows API layer, the application must break up large commands into one or more report struc-
tures. HID reports are passed to a HID device using the Win32
WriteFile
routine. Reports are read from a
相關(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