3BHE044481R0101產(chǎn)品尺寸,ABB模塊
編程MC68230 PIITMC68230 PIIT的端口部分由三個8位端口和四個相關(guān)的握手信號。PIE模塊允許每個8位端口中的每個位輸入或輸出,以及兩條握手線。緩沖的VMIVME-2511選項(xiàng)在每個8位端口內(nèi)僅允許一個方向,具有指定為端口C的端口除外。因此,8位和16位雙向模式不能在緩沖Pl/T模塊上編程。此外,如果位110在緩沖PIIT上選擇模式,
3BHE044481R0101產(chǎn)品尺寸所有端口A數(shù)據(jù)方向寄存器位必須為為同一方向以及端口B數(shù)據(jù)方向編程登記位110模式和雙向模式可用于無緩沖選項(xiàng)。下表和方框圖將澄清這些陳述,并定義握手線路和端口C的編程。緩沖PIIT必須與VMIVME-2511的圖和跳線選擇一致,否則可能會損壞VMIVME-2511。見第5.2節(jié)。Plfl 110信道定義如表4-4所示。PI/T模塊上可用的所有定時器模式都可以與VMIVME-2511。端口C引腳PCILTIN和PC2LTOUT專門緩沖作為輸入和輸出,分別用作定時器輸入和定時器輸出引腳。僅輸出4.3.4中斷編程可以利用Pl/T模塊上可用的所有中斷編程模式對于VMIVME-2511,前提是與中斷相關(guān)的端口引腳是按此配置。見第5.2節(jié)。來自車載兩個Pl/T模塊的中斷VMIVME-2511由MC68153 BIM生成。BIM的編程與中斷有關(guān)的Pl/T模塊應(yīng)遵循圖1所示的流程圖4-1. 端口中斷服務(wù)程序應(yīng)遵循圖4-2中的順序。到對中斷計時器進(jìn)行編程,參見圖4-3中的流程圖。示例程序附錄D中提供了詳細(xì)的示例程序列表,以幫助用戶編程此產(chǎn)品。附錄Dl提供了一個測試的詳細(xì)列表,該測試使用聯(lián)鎖握手模式將數(shù)據(jù)從P3傳輸?shù)絇4連接器。附錄02提供了一個測試的詳細(xì)列表,該測試驗(yàn)證了681 53 BIM集成電路。附錄D3提供了一個測試的詳細(xì)列表,該測試將數(shù)據(jù)寫入端口A(P3連接器),中斷HI狀態(tài)握手線路,讀取數(shù)據(jù)位于端口A(P4)上,并將數(shù)據(jù)存儲在內(nèi)存中。
PROGRAMMING THE MC68230 PIIT
The port section of the MC68230 PIIT consists of three 8-bit ports and four
associated handshake signals. The PIE modules allow each bit in each 8-bit port to be
either input or output, along with two of the handshake lines. The buffered
VMIVME-2511 option allows only one direction within each 8-bit port, with the
exception of the port designated as Port C. Therefore, the 8-bit and 16-bit bi-directional
modes cannot be programmed on the buffered Pl/T modules. In addition, if the bit 110
mode is chosen on the buffered PIIT, all Port A data direction register bits must be
programmed for the same direction, as well as those for the Port B data direction
register. Bit 110 mode and bi-direction mode may be used on the unbuffered option.
The following table and block diagram will clarify these statements as well as define
programming for the handshake lines and port C. The programming of the buffered
PIIT has to be consistent with the diagram and jumper selection of the VMIVME-2511,
otherwise damage to the VMIVME-2511 may result. See Section 5.2. The Plfl 110
channel definition is shown in Table 4-4. All timer modes available on the PI/T module can be utilized with the
VMIVME-2511. Port C pins PCILTIN and PC2LTOUT are specifically buffered as input
and output, respectively, for use as timer input and timer output pins.
Output only
4.3.4 INTERRUPT PROGRAMMING
All interrupt programming modes available on the Pl/T module can be utilized
with the VMIVME-2511, provided that those port pins associated with interrupts are
configured as such. See Section 5.2. Interrupts from the two Pl/T modules on-board
the VMIVME-2511 are generated by the MC68153 BIM. The programming of the BIM
and Pl/T modules concerning interrupts should follow the flowchart shown in Figure
4-1. The port interrupt service routine should follow the sequence in Figure 4-2. To
program the timers for interrupts, see the flowchart in Figure 4-3.
SAMPLE PROGRAMS
Detailed sample program listings are provided in Appendix D to assist the user in
programming this product. Appendix Dl provides a detailed listing of a test that
transfers data from the P3 to P4 connector using the interlocked handshake mode.
Appendix 02 provides a detailed listing of a test that verifies all interrupt levels of the
681 53 BIM integrated circuit. Appendix D3 provides a detailed listing of a test that
writes data to port A (P3 connector), interrupts on the HI status handshake line, reads
data in on Port A (P4) and stores data in memory.