Hi.
My question is regarding the N2HET module, of the TMS570LS31x.
I have the following N2HET program:
; The Data Field of the DJZ could be written by a separate C-function with the ; value 1. ; If this C-function is called the I01:ECNT will NOT be executed. ; If this C-function is NOT called the I01:ECNT will be executed. U01: DJZ { next = I02, reg = NONE, cond_addr = I01, data = 0 } ; Execution of this ECNT depends on previous U01:DJZ. I01: ECNT { next = I02, cond_addr = I02, pin = 9, reg = A, event = RISE, data = 0 } ; Some further instruction. I02: MOV32 {...}
So if I01:ECNT will be executed in one LRC (= Loop Resolution Cycle) depends if the separate C-function is called or not.
Now assume the following situation:
- During the LRC x, the Data Field of the ECNT instruction is 5.
- During the LRC x+1, pin 9 detects a rising edge.
- Also during the LRC x+1, the separate C-function will be called.
- During the LRC x+2, the ECNT instruction will NOT be executed (cause the C-function was called). So the Data Field of the ECNT will stay at 5.
- During the LRC x+3, the ECNT instruction will be executed again. Question: Will now the Data Field of the ECNT be incremented to 6, cause of the rising edge in LRC x+1?
My assumption is that during the execution of LRC x+3, the Data Field of the ECNT will stay at 5. Can you confirm this assumption?
Thank you and regards
Oliver.