Chapter 10 XGATE (S12XGATEV3)
MC9S12XE-Family Reference Manual Rev. 1.07
Freescale Semiconductor
369
10.3.1.9
XGATE Software Trigger Register (XGSWT)
The eight software triggers of the XGATE module can be set and cleared through the XGATE Software
Trigger Register (
Figure 10-11
). The upper byte of this register, the software trigger mask, controls the
write access to the lower byte, the software trigger bits. These bits can be set or cleared if a "1" is written
to the associated mask in the same bus cycle. Refer to
Section 10.5.2, “Outgoing Interrupt Requests
”
for
further information.
Read: Anytime
Write: Anytime
NOTE
TheXGATEchannelIDsthatareassociatedwiththeeightsoftwaretriggers
aredeterminedonchipintegrationlevel.(seeSection“Interrupts“ofthe
Soc
Guide
)
XGATE software triggers work like any peripheral interrupt. They can be
used as XGATE requests as well as S12X_CPU interrupts. The target of the
software trigger must be selected in the S12X_INT module.
Module Base +0x00018
15
0
14
0
13
0
12
0
11
0
10
0
9
0
8
0
7
6
5
4
3
2
1
0
R
W
XGSWT[7:0]
XGSWTM[7:0]
0
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 10-11. XGATE Software Trigger Register (XGSWT)
Table 10-10. XGSWT Field Descriptions
Field
Description
15–8
XGSWTM[7:0]
Software Trigger Mask
— These bits control the write access to the XGSWT bits. Each XGSWT bit can only
be written if a "1" is written to the corresponding XGSWTM bit in the same access.
Read:
These bits will always read "0".
Write:
0 Disable write access to the XGSWT in the same bus cycle
1 Enable write access to the corresponding XGSWT bit in the same bus cycle
7–0
XGSWT[7:0]
Software Trigger Bits
— These bits act as interrupt flags that are able to trigger XGATE software channels.
They can only be set and cleared by software.
Read:
0 No software trigger pending
1 Software trigger pending if the XGIE bit is set
Write:
0 Clear Software Trigger
1 Set Software Trigger