Download ETEC Assembler Reference Manual

Transcript
11. Channel Hardware Sub-Instructions
chan
chan
chan
chan
chan
chan
chan
pdcm
pdcm
pdcm
pdcm
pdcm
pdcm
pdcm
=
=
=
=
=
=
=
bm_dt.
m2_o_st.
m2_o_dt.
udcm.
sm_st.
sm_dt.
sm_st_e.
// eTPU2 Only!
11.16.1 eTPU2’s User-Defined Channel Mode
In eTPU2 only, the underlying channel-mode settings can be individually programmed
thereby providing significantly improved granularity to the operation of the channel
hardware. This is done first by writing the User-Defined Channel Mode value into the
ertA register, then transferring the ertA register contents into the User Define Channel
Mode register (UDCM) then setting the Pre-Defined Channel Mode (PDCM) to ‘UDCM’
as follows.
// Desired UDCM value into ertA
alu ertA = 0x1234.
chan udcm = ertA.
chan pdcm = udcm.
Fie ld: PDCM, UDCM
11.17 Interrupts
Each channel can interrupt the host to initiate a data transfer handler or to initiate a generic
"channel" handler. Because each channel has its own interrupts, the host can have a
separate handlers for each channels' interrupt service routines.
chan cir.
chan dtr.
A single global exception also is available. Unlike the channel interrupt, there is only a
single global exception, which is shared by all channels. Regardless of the value of the
channel register, the same global exception is generated.
chan ge.
Note that the channel interrupt and the data transfer interrupt always operation on the
channel that began the thread. For example, if a thread responds to an event on channel 4,
then the user channels the active channel to channel 21 (by writing a 21 to the ‘chan’
register) and asserts a data interrupt, the interrupt still occurs on channel 4.
page 76, Assembler Reference Manual
(C) 2007-2015
Freescale Syntax