Download MRU User Manual - Digalog Systems, Inc.
Transcript
MRU User Manual V1.5 mrCRC Calculates a 16-bit cyclic-redundancy check (CRC) value (by using the CRC-16 polynomial with a divisor of X16 + X15 + X2 + 1) starting at the address Source and continuing for NLocations. The read address is incremented by DataSize bytes for each appropriately-sized read cycle. Visual BASIC Declaration: Public Sub mrCRC(RetData As Integer, ByVal Group As Integer, ByVal DataSize As Integer, ByVal Source As Long, ByVal NLocations As Long) Call mrCRC(RetData,Group,DataSize,Source,NLocations) Where: RetData = The return variable containing the CRC calculation. Group = 0 to 15. The UUTs group number. DataSize = 1 ,2, or 4. Size of the read cycle to use. Source = Valid UUT RAM address for the base address of the source data. NLocations = Valid number of UUT RAM locations for the given data bus width. EXAMPLES: Const UUT_GROUP = 0 Const EACH_BYTE = 1 Dim ByteCRC As Integer Check 128 words (two bytes each) starting at 0x100: Call mrCRC(ByteCRC,UUT_GROUP,EACH_BYTE,&H100&,256&) Show the results MsgBox ByteCRC = & CStr(ByteCRC) Series 2040 Test System Page 55