140CPU43412A處理器模塊,SCHNEIDER使用書
中斷確認(rèn)映射本地總線通過以下方式將中斷確認(rèn)周期與其他周期區(qū)分開來:將二進(jìn)制值%11放在TT1-TT0上。它還指定了以下級(jí)別:使用TM2-TM0進(jìn)行確認(rèn)。中斷處理程序選擇正在確認(rèn)該級(jí)別內(nèi)的設(shè)備。VMEbus內(nèi)存映射本節(jié)描述了VMEbus查看的本地資源映射大師級(jí)。
VMEbus訪問本地總線VMEchip2包括用于VMEbusto本地總線接口的用戶可編程映射解碼器。地圖解碼器允許您編程啟動(dòng)以及MVME162響應(yīng)的結(jié)束地址和修飾符。
140CPU43412A處理器模塊VMEbus短輸入/輸出內(nèi)存映射VMEchip2包括用于GCSR的用戶可編程地圖解碼器。GCSR映射解碼器允許您編程VMEbus短輸入/輸出空間中的GCSR。軟件初始化大多數(shù)功能是通過其他設(shè)備上的開關(guān)或跳線完成的通過在MVME162上設(shè)置控制寄存器來實(shí)現(xiàn)模塊。通電時(shí)或者重置,包含162Bug調(diào)試包的EPROM設(shè)置許多寄存器的默認(rèn)值。具體編程細(xì)節(jié)可通過研究M68040確定微處理器用戶手冊(cè)。然后檢查所有MVME162的詳細(xì)信息MVME162嵌入式控制器程序員手冊(cè)中給出的板載寄存器參考指南。多微處理器編程注意事項(xiàng)良好的編程實(shí)踐表明,一次只有一個(gè)MPU具有控制權(quán)MVME162控制寄存器。特別值得注意的是:? 修改地址映射的寄存器? 需要兩個(gè)周期才能訪問的寄存器? VMEbus中斷請(qǐng)求寄存器本地重置操作本地重置(LRST)是系統(tǒng)重置(SRST)的子集。本地重置可以生成五種方式:? 看門狗計(jì)時(shí)器過期? 按下前面板重置開關(guān)(如果系統(tǒng)控制器功能正常已禁用)? 通過在GCSR中的板控制寄存器中斷言一位? 通過SYSRESET*? 通過通電重置。
Interrupt Acknowledge Map
The local bus distinguishes interrupt acknowledge cycles from other cycles by
placing the binary value %11 on TT1-TT0. It also specifies the level that is
being acknowledged using TM2-TM0. The interrupt handler selects which
device within that level is being acknowledged.
VMEbus Memory Map
This section describes the mapping of local resources as viewed by VMEbus
masters.
VMEbus Accesses to the Local Bus
The VMEchip2 includes a user-programmable map decoder for the VMEbusto-local-bus interface. The map decoder allows you to program the starting
and ending address and the modifiers the MVME162 responds to.
VMEbus Short I/O Memory Map
The VMEchip2 includes a user-programmable map decoder for the GCSR.
The GCSR map decoder allows you to program the starting address of the
GCSR in the VMEbus short I/O space.
Software Initialization
Most functions that have been done with switches or jumpers on other
modules are done by setting control registers on the MVME162. At powerup
or reset, the EPROMs that contain the 162Bug debugging package set up the
default values of many of these registers.
Specific programming details may be determined by study of the M68040
Microprocessor User’s Manual. Then check the details of all the MVME162
onboard registers as given in the MVME162 Embedded Controller Programmer’s
Reference Guide.
Multi-MPU Programming Considerations
Good programming practice dictates that only one MPU at a time have control
of the MVME162 control registers. Of particular note are:
? Registers that modify the address map
? Registers that require two cycles to access
? VMEbus interrupt request registersLocal Reset Operation
Local reset (LRST) is a subset of system reset (SRST). Local reset can be
generated five ways:
? Expiration of the watchdog timer
? Pressing the front panel RESET switch (if the system controller function is
disabled)
? By asserting a bit in the board control register in the GCSR
? By SYSRESET*
? By powerup reset.