APX-3302 User's Manual (OM110000019A)
-79 -
For configure comparison memory starting position and finish position, configure comparison register 2 by
using AcapSetInfo function. The correspondence bit of starting position and finish position is as follows.
Comparison
memory
Correspondence bit
Starting position
Bit15-Bit8
Finish position
Bit7 -Bit0
Table6-4: Correspondence bit
For instance, if you use starting position as comparison memory 0 value and finish position as comparison
memory 4 value, configure comparison register 2 as "0004h".
Comparison memory No Address Counter set value
Comparison memory 0
5000h
1000
Comparison memory 1
5004h
2000
Comparison memory 2
5008h
3000
Comparison memory 3 500Ch
4000
Comparison memory 4
5010h
5000
Comparison memory 5
5014h
4000
Comparison memory 6
5018h
3000
Comparison memory 7 501Ch
2000
Comparison memory 8
5020h
1000
Table6-5: Starting position and end position of outward trip
// Outward trip: Specify comparison memory starting position and finish position
nStartPos = 0;
nEndPos = 4;
dwRegVal = (0x000000FF & nStartPos) << 8;
dwRegVal | = 0x000000FF & nEndPos;
// Configure the comparison memory starting position and finish position
AcapSetInfo(ghDev, INPUT_CH, ACL_ENC_COMPARE_2, 0, dwRegVal);
Outward trip
starting position
Outward trip
end position
Содержание APX-3302
Страница 1: ...APX 3302 User s Manual ...