ESI Operation
985
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
Extended Scan Interface (ESI)
Q1 is set in state 11, so ESICNT1 will be incremented.
More complex state machines can be built by combining simple state machines to meet the requirements
of specific applications.
37.2.6 ESI Debug Register
The Scan IF peripheral has several ESIDEBUGx registers for debugging and development.
•
Reading ESIDEBUG1 shows the last address read by the PSM.
•
Reading ESIDEBUG2 shows the index of the TSM and the PSM bits Q7 to Q0.
•
Reading ESIDEBUG3 shows the TSM output.
•
Reading ESIDEBUG4 shows which DAC1 register is selected and its contents.
•
Reading ESIDEBUG5 shows which DAC2 register is selected and its contents.
37.2.7 ESI Interrupts
The Extended Scan IF has one interrupt vector for nine interrupt flags listed in
. Each interrupt
flag has its own interrupt enable bit. When an interrupt is enabled, and the GIE bit is set, the interrupt flag
will generate an interrupt. The interrupt flags are not automatically cleared. They must be cleared with
software. The interrupt vector register ESIIV is used to determine which interrupt flags requested an
interrupt.
Table 37-7. ESI Interrupts
Interrupt Flag
Interrupt Condition
ESIIFG0
ESIIFG0 is set by one of the ESIOUT0 to ESIOUT3 outputs selected with the ESIIFGSET1x bits.
ESIIFG1
ESIIFG1 is set by the rising edge of the ESISTOP(tsm) signal.
ESIIFG2
ESIIFG2 is set at the start of a TSM sequence.
ESIIFG3
ESIIFG3 is set at different count intervals of the ESICNT1 counter, selected with the ESITHR1 and ESITHR2
registers.
ESIIFG4
ESIIFG4 is set at different count intervals of the ESICNT2 counter, selected with the ESIIS2x bits.
ESIIFG5
ESIIFG5 is set when the PSM transitions to a state with Q6 set.
ESIIFG6
ESIIFG6 is set when the PSM transitions to a state with Q7 set.
ESIIFG7
ESIIFG7 is set at different count intervals of the ESICNT0 counter, selected with the ESIIS0x bits.
ESIIFG8
ESIIFG8 is set by one of the ESIOUT4 to ESIOUT7 outputs selected with the ESIIFGSET2x bits.
37.2.7.1 PSM Counter ESICNT0 and ESICNT2 Interrupt Handling
The interrupt logic of the PSM counters ESICNT0 and ESICNT2 is generating an interrupt using either the
counter input directly or one out of three defined counter outputs. This means, there are four different
settings possible: generating an interrupt on 1, 4, 256, or 65536 count steps.
37.2.7.2 PSM Counter ESICNT1 Interrupt Handling
The PSM ESICNT1 counter interrupt logic generates an interrupt as soon as its counter value is equal to
the content of the control registers ESITHR1 or ESITHR2. These two threshold registers can be defined
by user; the registers contain a 16-bit value that is compared with the 16-bit ESICNT1 register. The
interrupt ESIIFG3 is set as soon as the content of ESICNT1 counter is equal to the content of ESITHR1 or
ESITHR2.