6 - 119
6. APPLICATION FUNCTIONS
(2) Specified number of detection mode
The mark detection counter is incremented at mark detection. After mark detection, read the mark detection
data and update the read complete buffer number. If performing mark detection again after the specified
number of mark detections, conduct a mark detection clear. The mark detection data that is detected after
the mark detection clear is latched.
Example: When both ON/OFF edges are enabled and specified number of mark detections is three.
Data 2Data 0 Data 1No data
31 20
0 1 32
Get mark detection data
sscGetMarkDetectionData function
Mark detection interrupt does not occur
after the specified number of detections.
Also, the mark detection counter and
mark detection data is not updated.
Mark detection data
Read complete buffer
number
Mark detection signal
Wait for interrupt event
sscWaitIntEvent function
Mark detection interrupt
(iMAK )
Mark detection counter
POINT
• Data for mark detections after the specified number of detections is not
latched.
API LIBRARY
• Use the sscGetMarkDetectionData function to get mark detection data.
• The read number setting for the read complete buffer number is conducted
within the sscGetMarkDetectionData function therefore user program
processing is not required.
• Use the sscGetMarkDetectionCounter function to get the mark detection
counter.
• When using mark detection interrupt, use the sscWaitIntEvent function and
wait until interrupt is output. If not using mark detection interrupt, use polling.
When using polling, use the sscGetMarkDetectionCounter function to
periodically check that the mark detection counter is updated.