поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

MAX17843 датащи(PDF) 98 Page - Maxim Integrated Products

номер детали MAX17843
подробное описание детали  12-Channel, High-Voltage Smart Sensor Data-Acquisition Interface
PDF  131 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  MAXIM [Maxim Integrated Products]
домашняя страница  https://www.maximintegrated.com/en.html
Logo MAXIM - Maxim Integrated Products

MAX17843 датащи(HTML) 98 Page - Maxim Integrated Products

Back Button MAX17843 Datasheet HTML 94Page - Maxim Integrated Products MAX17843 Datasheet HTML 95Page - Maxim Integrated Products MAX17843 Datasheet HTML 96Page - Maxim Integrated Products MAX17843 Datasheet HTML 97Page - Maxim Integrated Products MAX17843 Datasheet HTML 98Page - Maxim Integrated Products MAX17843 Datasheet HTML 99Page - Maxim Integrated Products MAX17843 Datasheet HTML 100Page - Maxim Integrated Products MAX17843 Datasheet HTML 101Page - Maxim Integrated Products MAX17843 Datasheet HTML 102Page - Maxim Integrated Products Next Button
Zoom Inzoom in Zoom Outzoom out
 98 / 131 page
background image
The host uses the algorithm to process all bytes received
in the command packet prior to the PEC byte itself.
Neither the PEC nor the alive-counter bytes are part of the
calculation. The bits are processed in the order they are
received, LSB first. A byte-wise pseudo-code algorithm is
shown in Figure 71, but lookup table solutions are also
possible to reduce host calculation time.
For commonly issued command packets, the host can
pre-calculate (hard-code) the PEC byte. For commonly
used partial packets, the CRC value of a partial calcula-
tion can be used as the initial value for a subsequent
run-time calculation.
Figure 71. PEC Calculation Pseudocode
Function PEC_Calculation(ByteList(), NumberOfBytes, CRCByte)
{
// CRCByte is initialized to 0 for each ByteList in this implementation, where
// ByteList contains all bytes of a single command. It is passed into the
// function in case a partial ByteList calculation is needed.
// Data is transmitted and calculated in LSb first format
// Polynomial = x^8+x^6+x^3+x^2+1
POLY = &HB2 // 10110010b for LSb first
//Loop once for each byte in the ByteList
For ByteCounter = 0 to (NumberOfBytes – 1)
(
//Bitwise XOR the current CRC value with the ByteList byte
CRCByte = CRCByte XOR ByteList(Counter1)
//Process each of the 8 CRCByte remainder bits
For BitCounter = 1 To 8
(
// The LSb should be shifted toward the highest order polynomial
// coefficient. This is a right shift for data stored LSb to the right
// and POLY having high order coefficients stored to the right.
// Determine if LSb = 1 prior to right shift
If (CRCByte AND &H01) = 1 Then
// When LSb = 1, right shift and XOR CRCByte value with 8 LSbs
// of the polynomial coefficient constant. “/ 2” must be a true right
// shift in the target CPU to avoid rounding problems.
CRCByte = ((CRCByte / 2) XOR POLY)
Else
//When LSb = 0, right shift by 1 bit. “/ 2” must be a true right
// shift in the target CPU to avoid rounding problems.
CRCByte = (CRCByte / 2)
End If
//Truncate the CRC value to 8 bits if necessary
CRCByte = CRCByte AND &HFF
//Proceed to the next bit
Next BitCounter
)
//Operate on the next data byte in the ByteList
Next ByteCounter
)
// All calculations done; CRCByte value is the CRC byte for ByteList() and
// the initial CRCByte value
Return CRCByte
}
MAX17843
12-Channel, High-Voltage Smart Sensor
Data-Acquisition Interface
www.maximintegrated.com
Maxim Integrated │ 98



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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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