111
CHAPTER 5 APPLICATIONS OF 16-BIT TIMER/EVENT COUNTER
(3) SPD chart
TIM_PRO
IF: input signal exists
THEN
IF: valid data exists
THEN
TO_CHK
IF: leader low detection mode
THEN
Sets that timer overflow does not occur
ELSE
Timer overflow count
IF: Timer overflow occurs 2 times
THEN
Sets leader low detection mode S_M0SET
ELSE
IF: repeat code invalid time
THEN
Sets repeat code invalid status
Clears RPT, IPDTFG, RMDTOK
Checks timer overflow TO_CHK
IF: No input exists after input of data (within 61.0 s
×
2)
THEN
Sets that valid data exists
Sets RMDTOK, RMDTSET
Sets leader low detection mode S_M0SET
ELSE
Checks timer overflow TO_CHK
INTP0
Selects register bank 0
Waits for 100 s WAIT
CASE: SELMOD
OF: 0
Leader low detection mode RM_STA
OF: 1
Leader low measuring mode LEAD_L
OF: 2
Leader high measuring mode LEAD_H
OF: 3
Custom code/data loading mode CDCODE
OF: 4
Repeat code detection mode REPCD
OF: 5
Abnormal data detection mode ENDCHK