전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

LRI64 데이터시트(PDF) 34 Page - STMicroelectronics

부품명 LRI64
상세설명  Memory TAG IC, 64-bit Unique ID with WORM User Area 13.56MHz, ISO15693 and ISO18000-3 Mode 1 Compliant
PDF  38 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

LRI64 데이터시트(HTML) 34 Page - STMicroelectronics

Back Button LRI64 Datasheet HTML 30Page - STMicroelectronics LRI64 Datasheet HTML 31Page - STMicroelectronics LRI64 Datasheet HTML 32Page - STMicroelectronics LRI64 Datasheet HTML 33Page - STMicroelectronics LRI64 Datasheet HTML 34Page - STMicroelectronics LRI64 Datasheet HTML 35Page - STMicroelectronics LRI64 Datasheet HTML 36Page - STMicroelectronics LRI64 Datasheet HTML 37Page - STMicroelectronics LRI64 Datasheet HTML 38Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 34 / 38 page
background image
LRI64
34/38
APPENDIX B. C-EXAMPLE TO CALCULATE OR CHECK THE CRC16
ACCORDING TO ISO/IEC 13239
The Cyclic Redundancy Check (CRC) is calculat-
ed on all data contained in a message, from the
start of the Flags through to the end of Data. This
CRC is used from VCD to LRI64 and from LRI64
to VCD.
To add extra protection against shifting errors, a
further transformation on the calculated CRC is
made. The One’s Complement of the calculated
CRC is the value attached to the message for
transmission.
For checking of received messages the 2 CRC
bytes are often also included in the re-calculation,
for ease of use. In this case, given the expected
value for the generated CRC is the residue of
F0B8h
Table 20. CRC Definition
CRC Calculation Example
This example in C language illustrates one method
of calculating the CRC on a given set of bytes
comprising a message.
#define
POLYNOMIAL0x8408//
x^16 + x^12 + x^5 + 1
#define
PRESET_VALUE0xFFFF
#define
CHECK_VALUE0xF0B8
#define
NUMBER_OF_BYTES4// Example: 4 data bytes
#define
CALC_CRC1
#define
CHECK_CRC0
void main()
{
unsigned int
current_crc_value;
unsigned char array_of_databytes[NUMBER_OF_BYTES + 2] = {1, 2, 3, 4, 0x91, 0x39};
int
number_of_databytes = NUMBER_OF_BYTES;
int
calculate_or_check_crc;
int
i, j;
calculate_or_check_crc = CALC_CRC;
// calculate_or_check_crc = CHECK_CRC;// This could be an other example
if (calculate_or_check_crc == CALC_CRC)
{
number_of_databytes = NUMBER_OF_BYTES;
}
else
// check CRC
{
number_of_databytes = NUMBER_OF_BYTES + 2;
}
current_crc_value = PRESET_VALUE;
for (i = 0; i < number_of_databytes; i++)
{
current_crc_value = current_crc_value ^ ((unsigned int)array_of_databytes[i]);
for (j = 0; j < 8; j++)
{
if (current_crc_value & 0x0001)
CRC Definition
CRC Type
Length
Polynomial
Direction
Preset
Residue
ISO/IEC 13239
16 bits
X16 + X12 + X5 + 1
= Ox8408
Backward
FFFFh
F0B8h



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com