-
Datei
crc.c
unsigned char) 0xCF, (unsigned char) 0xF9, (unsigned char) 0x62, (unsigned char) 0x8C, (unsigned char) 0x17, (unsigned char) 0x21, (unsigned char) 0xBA, (unsigned char) 0x4D, (unsigned char) 0xD6, (unsigned char) 0xE0, (unsigned char) 0x7B }; unsigned char crc8_tab(unsigned char data, unsigned char crc_init) { unsigned char crc; crc = (unsigned char) (CRC_Tab8Value[crc_init] ^ data); return (crc); } unsigned char crc_analyse(void) { int i; char uc_crc; unsigned char pos=ebus_pos-1 ; uc_crc = (unsigned char) 0; for (i = 0;
in „ebus protokoll mitschnitt bei einem Wolf Heizkessel“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS1820-DS1820S.pdf
from the DS18S20. To verify that data has been read correctly, the bus master must re-calculate the CRC from the received data and then compare this value to either the ROM code CRC (for ROM reads) or to the scratchpad CRC (for scratchpad reads). If the calculated CRC matches the read CRC, the data has
in „1-Wire & Pull-UP“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
ds1820.pdf
from the DS18S20. To verify that data has been read correctly, the bus master must re-calculate the CRC from the received data and then compare this value to either the ROM code CRC (for ROM reads) or to the scratchpad CRC (for scratchpad reads). If the calculated CRC matches the read CRC, the data has
in „Thermometer mit ds18s20 und LED Annzeige“ · Projekte & Code ·
-
Datei
test.py
serial.Serial("/dev/ttyAMA0", 9600 ) def byte_holen(): global byte rcv = port.read() byte = ord(rcv) def crc_testen(leng): global crc_test crc_test = True crc = 0 for i in range(0,leng): crc = crc_table[crc] crc ^= buffer[i] else: if crc == buffer[leng]: crc_test = True else: crc_test = False def haupt():
in „heatronic Raspberry PI Junkers CSW 14“ · Haus & Smart Home ·
-
PDF
xbee_prog_schema.pdf
== 0x10 y tx: Frame 0x10 ? Transmit Request n xbee_tx.c if frame_typ == 0x17 y tx: Frame 0x17 ? Remote AT Cmd n XBee Receiver if set flag USART_RXC_ISR rx_complete y Frame complete rx_buffer[ ] ? ISR_rx_idx FRM_get_word() FRM_get_frame_typ() FRM_get_frame_id() FRM92_digital_sample
in „XBee for NewBees (DOS-Tool zum Testen von XBee's im API-Modus)“ · Projekte & Code ·
-
Datei
forum.c
[0] = 0x51; ende[0] = 0x0D; printf("Variablen deklariert...\n"); printf("Variable i: %d\n", crc); crc = updcrc(crc, befehl[0]); /* crc = 59488; */ printf("CRC berechnet...\nCRC: %d\n", crc); sprintf(crc_char, "%04X", crc); strncat(word_out, start, 1); strncat(word_out, crc_char, 4); strncat(word_out
in „CRC 16 nach CCiTT mit ARM und Linux“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
1899_HTU21D.pdf
value has a fixed length, the function that generates it is occasionally used as a hash function. CRC for HTU21D(F) sensors using I²C Protocol When HTU21D(F) sensors are run by communicating with the standard I²C protocol, an 8-bit CRC can be used to detect transmission errors. The CRC covers all read
in „HTU21D und ATmega328P“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Crc16.asm
.def rCRCH = r20 .def rCRCL = r21 .def rCRCTABH = r22 .def rCRCTABL = r23 .def rLTMP = r24 CALC_PM_CRC16: ; worCrc:=((worCrc SHR 8) AND $ff) XOR Crc16table[(worCrc XOR bytCalc) AND $ff] push r8 push r9 push r10 push r22 ;Inhalt von Hilfsregistern sichern push r23 push r24 push R0 clr ZL ;Startposition
in „CRC über PROGMEM ASM<>C funktioniert nicht mehr?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
zmodem.cpp
i; short crc; crc = zm_updcrc(type, 0); for (i = 0; i < 4; i++) crc = zm_updcrc(255 & data[i], crc); crc = zm_updcrc(0, zm_updcrc(0, crc)); (void)snprintf(buf, sizeof(buf), "**\030B%.2x%.2x%.2x%.2x%.2x%.2x%.2x\r
in „Wittig(welec) DSO W20xxA Open Source Firmware“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
snap.pdf
No error detection - - 001 - 3 times re-transmission - - 010 - 8-bit checksum h32 hB2 011 - 8-bit CRC h11 h17 100 - 16-bit CRC h8C43 h1F4F 101 - 32-bit CRC h00F1F02A h36641D9E 110 - FEC (specific FEC standard TBD) TBD TBD 111 - User specified ? ? 2.8 Miscellaneous information. - Address 0 is reserved
in „mehrere Module ueber uart“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18B20.pdf
from the DS18B20. To verify that data has been read correctly, the bus master must re-calculate the CRC from the received data and then compare this value to either the ROM code CRC (for ROM reads) or to the scratchpad CRC (for scratchpad reads). If the calculated CRC matches the read CRC, the data has
in „Suche nach einem Temperatursensor“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18b20.pdf
from the DS18B20. To verify that data has been read correctly, the bus master must re-calculate the CRC from the received data and then compare this value to either the ROM code CRC (for ROM reads) or to the scratchpad CRC (for scratchpad reads). If the calculated CRC matches the read CRC, the data has
in „Temperatur ohne AD-Eingang messen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18b20.pdf
from the DS18B20. To verify that data has been read correctly, the bus master must re-calculate the CRC from the received data and then compare this value to either the ROM code CRC (for ROM reads) or to the scratchpad CRC (for scratchpad reads). If the calculated CRC matches the read CRC, the data has
in „Displaybeleuchtung faden ohne Analog I/O“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS18B20.pdf
from the DS18B20. To verify that data has been read correctly, the bus master must re-calculate the CRC from the received data and then compare this value to either the ROM code CRC (for ROM reads) or to the scratchpad CRC (for scratchpad reads). If the calculated CRC matches the read CRC, the data has
-
PDF
DS18B20.pdf
from the DS18B20. To verify that data has been read correctly, the bus master must re-calculate the CRC from the received data and then compare this value to either the ROM code CRC (for ROM reads) or to the scratchpad CRC (for scratchpad reads). If the calculated CRC matches the read CRC, the data has
in „Mehrere DS18B20 an einen Pin Avr-Mega32“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Datenblatt_DS18B20.pdf
from the DS18B20. To verify that data has been read correctly, the bus master must re-calculate the CRC from the received data and then compare this value to either the ROM code CRC (for ROM reads) or to the scratchpad CRC (for scratchpad reads). If the calculated CRC matches the read CRC, the data has
in „DS18B20 Darstellung von negativen Zahlen im Zweierkomplement?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Datenblatt_DS18B20.pdf
from the DS18B20. To verify that data has been read correctly, the bus master must re-calculate the CRC from the received data and then compare this value to either the ROM code CRC (for ROM reads) or to the scratchpad CRC (for scratchpad reads). If the calculated CRC matches the read CRC, the data has
in „Timing Probleme 1-Wire“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Datenblatt_DS18B20.pdf
from the DS18B20. To verify that data has been read correctly, the bus master must re-calculate the CRC from the received data and then compare this value to either the ROM code CRC (for ROM reads) or to the scratchpad CRC (for scratchpad reads). If the calculated CRC matches the read CRC, the data has
in „1-Wire Protokollablauf“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
spi-L431.h
1; // 9 Software slave management uint32_t RXONLY : 1; // 10 Receive only uint32_t CRCL : 1; // 11 CRC Length uint32_t CRCNEXT : 1; // 12 Transmit CRC next uint32_t CRCEN : 1; // 13 Hardware CRC calculation enable uint32_t BIDIOE : 1; // 14 Output enable in bidirectional mode uint32_t BIDIMODE : 1; /
in „STM32: SPI - HAL durch eigenen code ersetzen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
SEESTAT.bit.BUSY); NVMCTRL->CTRLB.reg = 0xa537; // USEER command while(NVMCTRL->SEESTAT.bit.BUSY); } uint16_t crc_ccitt_update (uint16_t crc, uint8_t data) // crc-xmodem aus der avr-libc mit 0xFFFF als Startwert, entspricht der CRC-CCITT { int i; crc = crc ^ ((uint16_t)data << 8); for (i=0; i<8; i++) { if (crc & 0x8000) crc = (crc << 1) ^ 0x1021; else crc <<= 1; } return crc; } bool crc_check(uint8_t message[]) { int i; unsigned int crc = CRC_INIT_VALUE; for (i=0;i<(USART_MESSAGE_LENGTH);i++) { crc = crc_ccitt_update(crc
in „ATSAMD51 Flash Bank Swap“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
diskio.c
(BYTE)(arg >> 8)); /* Argument[15..8] */ sd_tx((BYTE)arg); /* Argument[7..0] */ n = 0x01; /* Dummy CRC + Stop */ if (cmd == CMD0) n = 0x95; /* Valid CRC for CMD0(0) + Stop */ if (cmd == CMD8) n = 0x87; /* Valid CRC for CMD8(0x1AA) Stop */ sd_tx(n); /* Receive command response */ if (cmd == CMD12) sd_rx
in „Problem mit VS1053“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
crc16_ecu.c
0x3ca2, 0x2c83, 0x1ce0, 0x0cc1, 0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8, 0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0 }; crc_t crc_update(crc_t crc, const void *data, size_t data_len) { const unsigned char *d = (const unsigned char *)data; unsigned int tbl_idx; while (data_len--) { tbl_idx = ((crc >> 8) ^ *d) & 0xff; crc = (crc_table[tbl_idx] ^ (crc << 8)) & 0xffff; d++; } return crc & 0xffff; } /***********************************************************/ /* Pseudo-Code */ /* Blocklaengen fuer
in „Kennt jemand diesen Audio/CAN/BT Chip? CP3CN37VVAWQ“ · Fahrzeugelektronik ·
-
PDF
DS2450_ADU.pdf
byte (address 000C) CH-C* RX <CRC16> CRC of address, data byte RX C0h read-back for simple verification TX 00h next data byte (address 000Dh) RX <CRC16> CRC of address, data byte RX 00h read-back for simple verification TX 0Ch data byte (address 000E) CH-D RX <CRC16> CRC of address, data byte RX 0Ch read-back for simple verification TX 0Dh next data byte (address 000Fh) RX <CRC16> CRC of address, data byte RX 0Dh read-back for simple verification Continued on
in „1-Wire Quad ADC“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Quasimodo_jig_revA.pdf
IC-150, capacitors “C33” & “C36” are capacitor Cx. And in D. Self’s Elektor Preamp-2012, Cx = C14-C17 = 47nF. 5 Figure 6. Akitika GT-101 PSU board, partial schematic Figure 7. Crown IC-150, partial schematic Figure 8. Preamp-2012, power supply board partial schematic 6 Fourth, the CRC snubber topology
in „Stromversorgung Extra Kondensatoren“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
tn13rfm.asm
.def rx_id = r5 .def tx_id = r6 .def BUF = r7 .def ERS = r8 .def WRT = r9 .def wl = r16 .def wh = r17 .def delay = r18 .def cnt = r19 .def crc0 = r20 .def crc1 = r21 .def status = r22 .def page_cnt = r23 .def data = r24 .equ ADRESS = 0 .equ CHANNEL = 13 ;.equ FREQ = 433.92 .equ POWER = 0 ;Ausgangangsleistung
in „Funkmodul RFM12 in Assembler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mci.h
BUS_WIDTH_1BIT 0 #define BUS_WIDTH_4BITS 10 /* MCI Status register bit information */ #define MCI_CMD_CRC_FAIL (1 << 0) #define MCI_DATA_CRC_FAIL (1 << 1) #define MCI_CMD_TIMEOUT (1 << 2) #define MCI_DATA_TIMEOUT (1 << 3) #define MCI_TX_UNDERRUN (1 << 4) #define MCI_RX_OVERRUN (1 << 5) #define MCI_CMD_RESP_END
in „LPC2368 SD/MMC interface (not fat, yet)“ · µC & Digital Electronics ·
-
PDF
GT07_GPS_Tracker_Communication_Protocol_v1.4neutral.pdf
minute second length(Byte) 1 1 1 1 1 1 For example: 15:50:23 March 23,2010. The value is 0x0A0x03 0x17 0x0F 0x32 0x17 5.2.2. Length of GPS information, quantity of positioning satellites 1 byte converts to binary is 8 bit, the first 4 bit means GPS info length, the last 4 bit means number of satellite
-
Datei
EmsBus.java
, 0xF3, 0xF5, 0xF7, 0xE9, 0xEB, 0xED, 0xEF, 0xE1, 0xE3, 0xE5, 0xE7 }; private static int buderusEmsCrc(int[] data2, int from, int to) { int crc = 0; int d; for (int i = from; i < to; i++) { if (buderusEmsCrcTable) { crc = buderusCrcTable[crc]; } else { d = 0; if ((crc & 0x80) != 0) { crc ^= buderusEmsPoly; d = 1; } crc = (crc << 1) & 0xfe; crc |= d; } // crc ^= c[i]; crc = (crc ^ data2[i]) & 0xff; } return crc; } /* * args[1]: EMS-ESP-Link Gateway * args[2]: Syslog-Server */ public static void main(String args[])
-
Datei
sdio.c
Antworten ***************************************/ // responses: #define Rbusy (1<<16) #define Rapp (1<<17) #define NoCRC (1<<18) #define Resp0 (0) // keine Antwort #define Resp1 (1<<6) // 48 bit #define Resp1b (1<<6)|Rbusy // 48 bit #define Resp2 (3<<6) // 136 bit CID oder CSD #define Resp3 (1<<6)|NoCRC
in „STM32F103: Problem mit ChanFat und SD karte“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
sdio.c
Antworten ***************************************/ // responses: #define Rbusy (1<<16) #define Rapp (1<<17) #define NoCRC (1<<18) #define Resp0 (0) // keine Antwort #define Resp1 (1<<6) // 48 bit #define Resp1b (1<<6)|Rbusy // 48 bit #define Resp2 (3<<6) // 136 bit CID oder CSD #define Resp3 (1<<6)|NoCRC
in „Wie aus einer SDHC-Karte eine "SD-Karte" erstellen?“ · PC Hard- und Software ·
-
PDF
Datasheet_SHT3x_DIS.pdf
, it is recommendedto readthe twotemperature bytes ofdata Medium enabled 0x2C 0D with the CRC byte (without processing the CRC data); Low 10 High 00 after having read the two humidity bytes, the read transfer can be aborted with a with a NACK. Medium disabled 0x24 0B No Clock Stretching Low
in „[V] 2x I2C Temperatur/Feuchte Sensor FS400-SHT35“ · Markt ·
-
Datei
am2320.asm
weiter st y+,data ;ja: byte sichern cpi count,8 brlo am23_nxt ;nur bei byte 1..4 add crcsum,data ;crc=crc+byte am23_nxt: cpi count,0 ;alle 40 bits fertig? brne am23_rd ;nein: nächstes bit ;---- CRC prüfen ldi temp,2 ;"FehlerFlag=2" vorbereiten cpse crcsum,data ;summe von byte 1..4, data=immer noch byte 5(crc) sts AM2320_ERR,temp ;crc<>summe? dann halt fehler-2 setzen (crcError) rjmp am23_x ;ansonstens ist es ok und fertig am23_err: ldi temp,1 ;einsprung für timeOut-Error sts AM2320_ERR,temp ;fehler-1 setzen
in „AM2320, Temp./-Feuchte-Sensor: Stabile OneWire AVR-ASM Lösung mit TimeOut+CRC-Check“ · Projekte & Code ·
-
Datei
crc16.c
#define CRC16_PRELOAD 0xFFFF static const uint16_t crc_table[] = { 0X0000, 0XC0C1, 0XC181, 0X0140, 0XC301, 0X03C0, 0X0280, 0XC241, 0XC601, 0X06C0, 0X0780, 0XC741, 0X0500, 0XC5C1, 0XC481, 0X0440, 0XCC01, 0X0CC0,
in „CRC16 - schnellere Implementierung möglich?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
rf24_rd185.ino
Payload size 16 radio.setPayloadSize(16); // 1 Mbps, TX gain: 0dbm radio.setDataRate(RF24_1MBPS); // CRC enable, 2 byte CRC length radio.setCRCLength (RF24_CRC_16); // 5 byte address // default // No Auto Acknowledgment radio.setAutoAck (false); // Enable RX addresses //default // Auto retransmit delay
in „Hackbarer(?) 21 EUR Quadcopter“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
TMS279X_DataSheet.pdf
is generated for each byte. The six bytes of the ID field are shown below: TRACK SIDE SECTOR SECTOR CRC CRC ADDR NUMBER ADDRESS LENGTH 1 2 1 2 3 4 5 6 Although the CRC characters are transferred to the computer, the 279X checks for validity and the CRC error status bit is set if there is a CRC error.
in „Floppy FDD Diskette an AVR Mikrocontroller ATmega Beispiele Assembler“ · Projekte & Code ·
-
PDF
nRF24L01P_Product_Specification_1_0.pdf
for 1 byte CRC is X + X + X + 1. Initial value 0xFF. 16 12 5 The polynomial for 2 byte CRC is X + X + X + 1. Initial value 0xFFFF. The number of bytes in the CRC is set by the CRCO bit in the CONFIG register. No packet
in „NRF24L01+ erkennen ob gesendet wird“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
crc_m16.c
unsigned short int CRC16_PC; //--------------------------------------------------------------------------- // // Name : CalcM16CRC // // Description : // Calculate CRC just an M16C micro-processor // // Parameters : // NewByte : New byte to add to the current CRC // CRC16_PC : Last CRC value // // Notes : // - New CRC calculations should load "CRC16_PC" with 0x0000 // - Each successive call should pass in the result returned as "CRC16_PC" // //--------------
-
Datei
thermo.asm
__w1_write_bit brtc __w1_write1 ror r23 dec r22 brne __w1_write0 inc r30 __w1_write1: ret _w1_dow_crc8: clr r30 ld r24,y tst r24 breq __w1_dow_crc83 ldi r22,0x18 ldd r26,y+1 clr r27 __w1_dow_crc80: ldi r25,8 ld r31,x+ __w1_dow_crc81: mov r23,r31 eor r23,r30 ror r23 brcc __w1_dow_crc82 eor r30,r22 __w1_dow_crc82: ror r30 lsr r31 dec r25 brne __w1_dow_crc81 dec r24 brne __w1_dow_crc80 __w1_dow_crc83: adiw r28,2 ret __SAVEISR: ST -Y,R0 ST -Y,R1 ST -Y,R15 ST -Y,R22 ST -Y,R23 ST -Y,R24 ST -Y,R25 ST -Y,R26 ST
in „Thermometer mit Ds18B20“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
I-BOTT.PDF
17/151 17 A.7. DS1996 Memory iButton: 64K–Bit NV RAM pages.Whenreadingdataorstatusinformation,anon– The DS1996 quadruples the capacity of the DS1995 to chip CRC generator protects the data stream against
in „Design eines hotplugfähigen I2C-Bussystems und Auswahl des Steckverbinders“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
NEC_78F.pdf
signal User’s Manual U17336EJ5V0UD 95 CHAPTER 4 PORT FUNCTIONS Figure 4-8. Block Diagram of P16 and P17 VDD WR PU PU1 PU16, PU17 P-ch Alternate function RD t e s e b S a WR PORT r t P1 I Output latch P16/TOH1/INTP5, (P16, P17) P17/TI50/TO50 WR PM PM1 PM16, PM17 Alternate function P1: Port register 1 PU1
in „NEC bzw. Renesas Microcontroller“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
70622B.pdf
packets 0x1E PKTCREG Packet Configuration Register Packet format, size of the preamble, whitening, CRC on/off, address filtering of received packets, CRC status 0x1F FCRCREG FIFO CRC Configuration Register FIFO auto-clear (if CRC failed), FIFO access © 2010 Microchip Technology Inc. Preliminary DS70622B-page
-
PDF
70622B.pdf
packets 0x1E PKTCREG Packet Configuration Register Packet format, size of the preamble, whitening, CRC on/off, address filtering of received packets, CRC status 0x1F FCRCREG FIFO CRC Configuration Register FIFO auto-clear (if CRC failed), FIFO access © 2010 Microchip Technology Inc. Preliminary DS70622B-page
in „Wie genau funktioniert die drahtlose Kommunikation?“ · HF, Funk und Felder ·
-
Datei
main.asm
Divisor = R15 ; Divisor 0b10001100 ; ------------------------------ .def Temp0 = R16 ; .def Temp1 = R17 ; .def Temp2 = R18 ; .def Temp3 = R19 ; .def Temp_Wait = R20 ; .def RAM_High = R21 ; Umrechnung OW_Temp_MSB ==> RAM_High .def RAM_Low = R22 ; Umrechnung OW_Temp_LSB ==> RAM_Low .def Curr_CRC_2 = R23 ; CRC_Ausgabe .def Fehler_Bit = R24 ; Fehler_Bit .equ DS_RESET = 0 ; DS18x20 RESET Fehler .equ CRC_ROM = 1 ; DS18x20 RAM CRC Fehler .equ CRC_RAM = 2 ; DS18x20 ROM CRC Fehler ;-----------------------------
in „AVR ATtiny13 DS18B20/DS18S20 I2C PCF8574 LCD Temperaturanzeige“ · Projekte & Code ·
-
Datei
stm8s_spi.h
interrupt*/ SPI_IT_MODF = (uint8_t)0x55, /*!< Mode fault interrupt*/ SPI_IT_CRCERR = (uint8_t)0x45, /*!< CRC error interrupt*/ SPI_IT_TXE = (uint8_t)0x17, /*!< Transmit buffer empty interrupt*/ SPI_IT_RXNE = (uint8_t)0x06, /*!< Receive buffer not empty interrupt*/ SPI_IT_ERR = (uint8_t)0x05 /*!< Error interrupt
in „STM8 Standard Peripheral Library mit ST Visual Develop benutzen - Linker error“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
crc.pdf
14–4 shows the circuit for the CRC-32 polynomial. Message Input + 31 30 29 28 27 26 + 25 24 23 + 22 + 21 20 19 18 17 16 + 15 14 13 12 + 11 + 10 + 9 8 + 7 + 6 5 + 4 + 3 2 + 1 + 0 F IGURE 14–4. CRC circuit for CRC-32. Software Figure 14
-
PDF
DS18B20.pdf
. The bus master can re-calculate the CRC and compare it CRC Generation to the CRC values from the DS18B20 using the polyno- mial generator shown in Figure 11. This circuit consists CRC bytes are provided as part of the DS18B20’s 64-bit of
in „DS18B20 Sensor“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Arduino-Code.cpp
>> 15; crc_register <<= 1; if (data_bit != crc_bit) crc_register ^= polynom; } } crc[0] = (uint8_t) (crc_register & 0x00FF); crc[1] = (uint8_t) (crc_register >> 8); } uint8_t sha204c_check_crc(uint8_t *data) { uint8_t crc[2]; uint8_t count = data[PACKET_COUNT]; sha204c_calculate_crc(count - 2, data, crc); if (data[(count-2)] == crc[0] && (data[(count-1)] == crc[1])) { return true; } return false; } uint8_t sha204a_wakeup
in „C++ --> Python I²C-Command Übersetzung“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
BEISPIEL_04c.pdf
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 DATA CRC m15 m14 m13 m12 m11 m10 m9 m8 m7 m6 m5 m4 m3 m2 m1 m0 c9 c8 c7 c6 c5 c4 c3 c2 c1 c0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 1 1 8000 1C3 0 0
-
Datei
usart_nrf.c
Dtu3Detail.Property.LockNewPassword[1]; temp_dat[16] = Dtu3Detail.Property.LockNewPassword[2]; temp_dat[17] = Dtu3Detail.Property.LockNewPassword[3];//password temp_dat[18] = 0; temp_dat[19] = 0; temp_dat[20] = 0; temp_dat[21] = 0; temp_dat[22] = 0;//polling data interval temp_dat[23] = Get_crc_xor((u8 *)
in „Wechselrichter Hoymiles HM-xxxx 2,4 GhZ Nordic Protokoll?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
18b20.bas
' read 9 data bytest Bd(1) = 1wread(9) ' read bytes in array 1wreset ' reset the bus Crcit ' ckeck CRC If Crc = 0 Then ' if is OK, calculate for Tmp = Bd(1) And 1 ' 0.1C precision If Tmp = 1 Then Decr Bd(1) T = Makeint(bd(1) , Bd(2)) T = T * 50 : T = T - 25 : T1 = Bd(8) - Bd(7) : T1 = T1 * 100 T1 = T1