欢迎访问ic37.com |
会员登录 免费注册
发布采购

EPM240T100C5 参数 Datasheet PDF下载

EPM240T100C5图片预览
型号: EPM240T100C5
PDF下载: 下载PDF文件 查看货源
内容描述: [最大II器件]
分类和应用: 可编程逻辑器件输入元件PC
文件页数/大小: 295 页 / 3815 K
品牌: ALTERA [ ALTERA CORPORATION ]
 浏览型号EPM240T100C5的Datasheet PDF文件第246页浏览型号EPM240T100C5的Datasheet PDF文件第247页浏览型号EPM240T100C5的Datasheet PDF文件第248页浏览型号EPM240T100C5的Datasheet PDF文件第249页浏览型号EPM240T100C5的Datasheet PDF文件第251页浏览型号EPM240T100C5的Datasheet PDF文件第252页浏览型号EPM240T100C5的Datasheet PDF文件第253页浏览型号EPM240T100C5的Datasheet PDF文件第254页  
14–14  
Chapter 14: Using Jam STAPL for ISP via an Embedded Processor  
Updating Devices Using Jam  
Calculate the total DRAM usage as follows:  
Equation 14–8.  
RAM Size = 33 Kbytes + (8 Kbytes + 12 Kbytes) = 53 Kbytes  
In general, Jam Files use more RAM than ROM, which is desirable because RAM is  
cheaper and the overhead associated with easy upgrades becomes less of a factor as a  
larger number of devices are programmed. In most applications, easy upgrades  
outweigh the memory costs.  
Updating Devices Using Jam  
Updating a device in the field means downloading a new JBC file and running the  
Jam STAPL Byte-Code Player with what in most cases is the “program” action.  
The main entry point for execution of the Player is jbi_execute(). This routine  
passes specific information to the Player. When the Player finishes, it returns an exit  
code and detailed error information for any run-time errors. The interface is defined  
by the routine’s prototype definition.  
JBI_RETURN_TYPE jbi_execute  
(
PROGRAM_PTR program  
long program_size,  
char *workspace,  
long workspace_size,  
*action,  
char **init_list,  
long *error_line,  
init *exit_code  
)
The code within main(), in jbistub.c, determines the variables that will be passed to  
jbi_execute(). In most cases, this code is not applicable to an embedded  
environment; therefore, this code can be removed and the jbi_execute() routine  
can be set up for the embedded environment. Table 14–5 describes each parameter.  
Table 14–5. Parameters (Note 1) (Part 1 of 2)  
Parameter Status  
program  
Description  
Mandatory A pointer to the JBC file. For most embedded systems, setting up this parameter is as  
easy as assigning an address to the pointer before calling jbi_execute().  
program_size  
workspace  
Mandatory Amount of memory (in bytes) that the JBC file occupies.  
Optional  
A pointer to dynamic memory that can be used by the JBC Player to perform its  
necessary functions. The purpose of this parameter is to restrict Player memory  
usage to a pre-defined memory space. This memory should be allocated before  
calling jbi_execute(). If maximum dynamic memory usage is not a concern,  
set this parameter to null, which allows the Player to dynamically allocate the  
necessary memory to perform the specified action.  
workspace_size  
Optional  
A scalar representing the amount of memory (in bytes) to which workspacepoints.  
MAX II Device Handbook  
© October 2008 Altera Corporation  
 复制成功!