mc9s12xf512 Freescale Semiconductor, Inc, mc9s12xf512 Datasheet - Page 728
![no-image](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_sml.jpg)
mc9s12xf512
Manufacturer Part Number
mc9s12xf512
Description
S12x Microcontrollers 16-bit Automotive Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
1.MC9S12XF512.pdf
(1306 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
mc9s12xf512MLH
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Company:
Part Number:
mc9s12xf512MLM
Manufacturer:
FREESCALE
Quantity:
201
Company:
Part Number:
mc9s12xf512MLM
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s12xf512MLM
Manufacturer:
FREESCALE/NXP
Quantity:
20 000
- Current page: 728 of 1306
- Download datasheet (9Mb)
Chapter 14 XGATE (S12XGATEV3)
START_XGATE
DUMMY_ISR
XGATE_DATA_FLASH
XGATE_DATA_SCI
XGATE_DATA_IDX
XGATE_DATA_MSG
XGATE_CODE_FLASH
XGATE_CODE_DONE
XGATE_CODE_FLASH_END
XGATE_DUMMY_ISR_XG
14.9.3
To simplify the implementation of a program stack the XGATE can be configured to set RISC core register
R7 to the beginning of a stack region before executing a thread. Two separate stack regions can be defined:
One for threads of priority level 7 to 4 (refer to
728
Stack Support
MOVW 2,X+, 2,Y+
MOVW 2,X+, 2,Y+
MOVW 2,X+, 2,Y+
CPX
BLS
;###########################################
;#
;###########################################
MOVW #XGMCTL_ENABLE, XGMCTL
BRA
;###########################################
;#
;###########################################
RTI
CPU
;###########################################
;#
;###########################################
ALIGN 1
EQU
EQU
DW
EQU
DB
EQU
FCC
DB
;###########################################
;#
;###########################################
ALIGN 1
LDW
LDB
LDB
STB
LDB
STB
CMPL R4,#$0D
BEQ
RTS
LDL
STB
LDL
STB
RTS
EQU
MC9S12XF - Family Reference Manual, Rev.1.19
#XGATE_CODE_FLASH_END
COPY_XGATE_CODE_LOOP
*
XGATE
*
*-XGATE_DATA_FLASH
SCI_REGS
*-XGATE_DATA_FLASH
XGATE_DATA_MSG
*-XGATE_DATA_FLASH
"Hello World!
$0D
R2,(R1,#XGATE_DATA_SCI)
R3,(R1,#XGATE_DATA_IDX)
R4,(R1,R3+)
R3,(R1,#XGATE_DATA_IDX)
R0,(R2,#(SCISR1-SCI_REGS))
R4,(R2,#(SCIDRL-SCI_REGS))
XGATE_CODE_DONE
R4,#$00
R4,(R2,#(SCICR2-SCI_REGS))
R3,#XGATE_DATA_MSG;reset R3
R3,(R1,#XGATE_DATA_IDX)
(XGATE_CODE_FLASH_END-XGATE_CODE_FLASH)+XGATE_CODE_XG
DUMMY INTERRUPT SERVICE ROUTINE
START XGATE
XGATE CODE
XGATE DATA
Section 14.3.1.5, “XGATE Initial Stack Pointer for
;enable XGATE
;pointer to SCI register space
;string pointer
;ASCII string
;CR
;SCI -> R2
;msg -> R3
;curr. char -> R4
;R3 -> idx
;initiate SCI transmit
;initiate SCI transmit
;disable SCI interrupts
#
#
#
#
Freescale Semiconductor
Related parts for mc9s12xf512
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![MC14560BCP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC12034AP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MPIC2112P](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC14520BCP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC12026AP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC145152P2](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC68HC11A0P](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MCM6726DWJ10](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC44355](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC13282AP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC14519BCP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC14495P1](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![SN74LS796N](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC142100CP](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
![MC34014P](/images/manufacturer_photos/0/2/263/freescale_semiconductor__inc_tmb.jpg)
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet: