Level0 Interrupt to VIM
Level1 Interrupt to VIM
Module Interrupt
Flag
Interrupt Enable
Interrupt Level
Module Operation
1665
SPNU503C – March 2018
Copyright © 2018, Texas Instruments Incorporated
Data Modification Module (DMM)
30.2.3.1 Overflow Error
This error is signaled when the module has received new data before the previous data was written to the
destination address. If the internal buffers are full, the DMMENA signal will go high. If the sending module
does not evaluate the DMMENA signal and keeps on sending new frames, the data that was previously
received might be overwritten, thus resulting in setting the BUFF_OVF flag (
).
30.2.3.2 Packet Error
Noncontinuous Clock Mode
The size of the incoming packet is defined by the SIZE information of a trace mode packet or the
programmed size of a direct data mode packet. If too many or less than the number of bits are received
before the next sync signal, the PACKET_ERR_INT flag will be set (
). In case of receiving a
DMMCLK signal without a corresponding DMMSYNC signal, a packet error will also be generated.
Continuous Clock Mode
If less than the expected number of bits are received, the PACKET_ERR_INT flag will be set
(
) when the next DMMSYNC signal is received. Packets with more than the expected
number of bits cannot be detected.
The check for packet error is done only after the detection of the first DMMSYNC signal after the DMM is
turned on or comes out of suspend mode (with COS = 0;
), that is, before the reception of
first DMMSYNC, the toggling of DMMCLK would be ignored.
30.2.3.3 Bus Error
If an error occurs on the microcontroller internal bus system while transferring the data from the DMM to
the destination, the BUSERROR flag will be set.
30.2.4 Interrupts
The module provides different interrupts. These can be programmed to different interrupt levels
independently using DMMINTLVL (
Figure 30-6. Interrupt Structure
Interrupts can be divided into error interrupts and functional interrupts. The error handling is described in
. Functional interrupts depend on the mode (Trace Mode, Direct Data Mode) the DMM
module is used in.
Trace Mode:
An interrupt can be enabled whenever an access to the lowest address of a defined region
is performed. This address is the starting address programmed in the DMMDESTxREGy register. An
interrupt for each of the region can be generated by setting the individual interrupt enable bits.
Direct Data Mode:
There are two interrupts that can be individually controlled. One is generated when the
buffer pointer reaches the end of the defined buffer and wraps around (EO_BUFF;
). The
other one is generated when the buffer pointer matches the programmed interrupt threshold
(PROG_BUFF;
). The buffer pointer points to the next address to be written, therefor there
are (interrupt threshold - 1) values stored in the buffer. The interrupt threshold can be programmed in the
DMMINTPT register (