| 전자부품 데이터시트 검색엔진 |
|
P9S12XEP100J1VVLR 데이터시트(PDF) 461 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
P9S12XEP100J1VVLR 데이터시트(HTML) 461 Page - Freescale Semiconductor, Inc |
|
461 / 1324 page ![]() Chapter 10 XGATE (S12XGATEV3) MC9S12XE-Family Reference Manual Rev. 1.21 Freescale Semiconductor 461 Because of an order from the United States International Trade Commission, BGA-packaged product lines and partnumbers indicated here currently are not available from Freescale for import or sale in the United States prior to September 2010 10.9 Initialization and Application Information 10.9.1 Initialization The recommended initialization of the XGATE is as follows: 1. Clear the XGE bit to suppress any incoming service requests. 2. Make sure that no thread is running on the XGATE. This can be done in several ways: a) Poll the XGCHID register until it reads $00. Also poll XGDBG and XGSWEF to make sure that the XGATE has not been stopped. b) Enter Debug Mode by setting the XGDBG bit. Clear the XGCHID register. Clear the XGDBG bit. The recommended method is a). 3. Set the XGVBR register to the lowest address of the XGATE vector space. 4. Clear all Channel ID flags. 5. Copy XGATE vectors and code into the RAM. 6. Initialize the S12X_INT module. 7. Enable the XGATE by setting the XGE bit. The following code example implements the XGATE initialization sequence. 10.9.2 Code Example (Transmit "Hello World!" on SCI) CPU S12X ;########################################### ;# SYMBOLS # ;########################################### SCI_REGS EQU $00C8 ;SCI register space SCIBDH EQU SCI_REGS+$00; ;SCI Baud Rate Register SCIBDL EQU SCI_REGS+$00 ;SCI Baud Rate Register SCICR2 EQU SCI_REGS+$03 ;SCI Control Register 2 SCISR1 EQU SCI_REGS+$04 ;SCI Status Register 1 SCIDRL EQU SCI_REGS+$07 ;SCI Control Register 2 TIE EQU $80 ;TIE bit mask TE EQU $08 ;TE bit mask RE EQU $04 ;RE bit mask Arithmetic Immediate Instructions SUBL RD, #IMM8 1 1 0 0 0 RD IMM8 SUBH RD, #IMM8 1 1 0 0 1 RD IMM8 CMPL RS, #IMM8 1 1 0 1 0 RS IMM8 CPCH RS, #IMM8 1 1 0 1 1 RS IMM8 ADDL RD, #IMM8 1 1 1 0 0 RD IMM8 ADDH RD, #IMM8 1 1 1 0 1 RD IMM8 LDL RD, #IMM8 1 1 1 1 0 RD IMM8 LDH RD, #IMM8 1 1 1 1 1 RD IMM8 Table 10-24. Instruction Set Summary (Sheet 3 of 3) Functionality 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |