Copyright © Siemens AG 2016. All rights reserved
111
ERTEC 200P-2 Manual
Technical data subject to change
Version 1.0
2. When bit JOB_EN in the Job Control register is reset from ‘1’ to “0”,
a running job is interrupted and a started job with the next, smaller
priority begins to run. After this bit is changed back to “1”, the inter-
rupted job will be reactivated. JOB_EN = 0 does not cancel a job. It
makes the job only sleeping.
3. When bit DMA_EN is reset while a DMA job is running, this job is in-
terrupted and no new job begins to run. When subsequently bit
DMA_EN is set again, the interrupted job will continue. DMA_EN
has the same function as JOB_EN, but for all jobs.
The running job and all interrupted jobs can be cancelled by setting the
JOB_RESET bit in the Job Control register to “1”.
Job finished:
When a DMA job is completed, a “job finished” bit in the Finished Jobs
State register (GDMA_FINISHED_JOBS) is set and the GDMA control-
ler generates an interrupt request. This interrupt request generation can
be enabled/disabled for each job using bit INTR_EN of the Job Control
registers. When the GDMA interrupt is generated, a “job finished” bit in
the Interrupt State register is set. This Interrupt State register is de-
scribed in the following section “GDMA Status registers”.
HW control of the job:
Start of job by HW:
HW starts the job by rising edge of signal HW_JOB_START. This signal
is selectable as one of „n” (max. 64) input signals using field
HW_SELECT in the Job Control register and can be enabled/disabled
by means of bit HW_JOB_START_EN in the GDMA Job Control regis-
ter.
Start of a DMA job is disabled also when bit SW_RESET in the GDMA
Main Control register is set to “1”. When HW starts a job again, before
the running job is finished and if at the same time bit “Error Interrupt
Enable” (ERR_INT_EN) in the GDMA Main Control register is “1”, the
relevant error bit in the GDMA Error Interrupt State register is set to “1”
and the interrupt request at the DMA_IRQ output of the GDMA control-
ler is generated.
Make a job running:
For the started job with the highest priority, dedicated to data transfer
from a peripheral, the HW DMA request signal is inquired, whether the
peripheral device is ready to send data. For the job dedicated to data
transfer to a peripheral, the HW DMA request signal is inquired, whether
the peripheral device is ready to receive data. If so, the job starts to run,
otherwise the job is interrupted and the next job can start to run. When
a job is running and the HW DMA request signal indicates that the pe-
ripheral is no longer ready to send/receive data, the job is also inter-
rupted. When the peripheral is ready to send/receive data again, the job
will continue. The check, whether the HW peripheral is ready, can be
enabled/disabled by means of field HW_FLOW_EN of the Job Control