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

X  

CFA633-RDI-KS датащи(PDF) 77 Page - Crystalfontz America, Inc.

номер детали CFA633-RDI-KS
подробное описание детали  INTELLIGENT LCD MODULE
PDF  88 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  CRYSTAIFONTZ [Crystalfontz America, Inc.]
домашняя страница  https://www.crystalfontz.com/
Logo CRYSTAIFONTZ - Crystalfontz America, Inc.

CFA633-RDI-KS датащи(HTML) 77 Page - Crystalfontz America, Inc.

Back Button CFA633-RDI-KS Datasheet HTML 73Page - Crystalfontz America, Inc. CFA633-RDI-KS Datasheet HTML 74Page - Crystalfontz America, Inc. CFA633-RDI-KS Datasheet HTML 75Page - Crystalfontz America, Inc. CFA633-RDI-KS Datasheet HTML 76Page - Crystalfontz America, Inc. CFA633-RDI-KS Datasheet HTML 77Page - Crystalfontz America, Inc. CFA633-RDI-KS Datasheet HTML 78Page - Crystalfontz America, Inc. CFA633-RDI-KS Datasheet HTML 79Page - Crystalfontz America, Inc. CFA633-RDI-KS Datasheet HTML 80Page - Crystalfontz America, Inc. CFA633-RDI-KS Datasheet HTML 81Page - Crystalfontz America, Inc. Next Button
Zoom Inzoom in Zoom Outzoom out
 77 / 88 page
background image
Crystalfontz America, Inc.
Data Sheet Release Date 2012/02/21
www.crystalfontz.com
CFA633-RDI-KS LCD Module (Hardware v2.0 / Firmware s2v1)
February 2012
Page 77
End Sub
'My understanding of visual basic is very limited--however it appears that there is no way
'to initialize an array of structures. Nice language. Fast processors, lots of memory, big
'disks, and we fill them up with this . . this . . this . . STUFF.
Sub Initialize_CRC_Lookup_Table()
crcLookupTable(0).Lo = &H0
crcLookupTable(0).Hi = &H0
. . .
'For purposes of brevity in this data sheet, I have removed 251 entries of this table, the
'full source is available in our forum:
'http://www.crystalfontz.com/forum/showthread.php?postid=9921#post9921
. . .
crcLookupTable(255).Lo = &H78
crcLookupTable(255).Hi = &HF
End Sub
'This function returns the CRC of the array at data for length positions
Private Function Get_Crc(ByRef data() As Byte, ByVal length As Integer) As WORD
Dim Index As Integer
Dim Table_Index As Integer
Dim newCrc As WORD
newCrc.Lo = &HFF
newCrc.Hi = &HFF
For Index = 0 To length - 1
'exclusive-or the input byte with the low-order byte of the CRC register
'to get an index into crcLookupTable
Table_Index = newCrc.Lo Xor data(Index)
'shift the CRC register eight bits to the right
newCrc.Lo = newCrc.Hi
newCrc.Hi = 0
' exclusive-or the CRC register with the contents of Table at Table_Index
newCrc.Lo = newCrc.Lo Xor crcLookupTable(Table_Index).Lo
newCrc.Hi = newCrc.Hi Xor crcLookupTable(Table_Index).Hi
Next Index
'Invert & return newCrc
Get_Crc.Lo = newCrc.Lo Xor &HFF
Get_Crc.Hi = newCrc.Hi Xor &HFF
End Function
Private Sub Send_Packet(ByRef packet As PACKET_STRUCT)
Dim Index As Integer
'Need to put the whole packet into a linear array
'since you can’t do type overrides. VB, gotta love it.
Dim linear_array(26) As Byte
linear_array(0) = packet.command
linear_array(1) = packet.data_length
For Index = 0 To packet.data_length - 1
linear_array(Index + 2) = packet.data(Index)
Next Index
packet.crc = Get_Crc(linear_array, packet.data_length + 2)
'Might as well move the CRC into the linear array too
linear_array(packet.data_length + 2) = packet.crc.Lo
linear_array(packet.data_length + 3) = packet.crc.Hi
'Now a simple loop can dump it out the port.
For Index = 0 To packet.data_length + 3
MSComm.Output = Chr(linear_array(Index))
Next Index
End Sub
Algorithm 5: “Java” Table Implementation
This code was posted in our forum by user “norm” as a working example of a Java CRC calculation.
public class CRC16 extends Object
{
public static void main(String[] args)



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


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

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