-
Datei
rfm12.c
= crcUpdate( crc_chk, RFM12_Data[ i ] ); } crc = RFM12_Data[ i++ ]; crc |= RFM12_Data[ i ] << 8; RFM12_status.New = 0; /* if( crc != crc_chk ) { return( 253 ); //crc err -or- strsize } else */ { for( i =
in „RFM12 zuckt nicht ein bisschen.“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
CD_DS_SCD4x_Datasheet_D1.pdf
ambient pressure to 98’700 Pa Write 0xe000 0x03db 0x42 (hexadecimal) Command Ambient P = 98’700 Pa CRC of 0x03db Table 17: set_ambient_pressure I C sequence description 3.7.6 get_ambient_pressure Description: The get_ambient_pressure command can be sent during periodic measurements to read out the previously
in „Review: USB→LT1763-3.3 V + SCD41-D-R2 (I²C), Funduino (ATMEGA2560)“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Part_1_Physical_Layer_Specification_Ver3.01_Final_100218.pdf
(either 1 or 4 bits). n • Single Block Read I sequence starts with a single block read command (CMD17) that specifies the start address in the28. The argument field. The response is sent on the CMD line as usual. o CMD S T-- HContentmanCRC E Z Z P * * * * P S T----ContentconsCRC E-----> DAT Z * * * *
in „MicroSD STM32 und Mosfet“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
CO2Modbus.c
/* * CO2Modbus.c * * Created: 19.03.2015 17:19:59 * Author: Johannes1 */ #include <avr/io.h> #include "uart0.h" #include "uart1.h" #include "util/delay.h" uint16_t ModRTU_CRC(uint8_t buf[], int len); int main(void) { uint8_t buffer[8],crc_low,
in „Modbus RTU mit LTC485“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
TRC103_Transceiver_RFM_121129.pdf
Manchester chip rate corresponds to the maximum bit rate given in the specifications in Table 48. Figure17 In transmit, Manchester encoding is applied only to the payload and CRC parts of the packet. The receiver de- codes the payload and CRC before performing other packet processing tasks. 3.9.8 DC-Balanced
-
Datei
CO2Modbus.c
/* * CO2Modbus.c * * Created: 19.03.2015 17:19:59 * Author: Johannes1 */ #include <avr/io.h> #include "uart0.h" #include "uart1.h" #include "util/delay.h" uint16_t ModRTU_CRC(uint8_t buf[], int len); int main(void) { uint8_t buffer[8],crc_low,
in „Modbus RTU mit LTC485“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
RRU9813M_UHF_RFID_Reader_Users_Manual_v1.10.pdf
value is 0. Cmd 1 Operation command symbol, 1 byte. Data[] Variable Operation command parameters. LSB-CRC16 1 CRC-16 LSB. CRC-16 checksum, 2 bytes with least significant byte first. MSB-CRC16 1 CRC-16 MSB. 3.2 RESPONSE DATABLOCK Len Adr reCmd Status Data[] LSB-CRC16 MSB-CRC16 COMMENT : LENGTH(Byte) COMMENT
in „UART Kommunikationsproblem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
CRC8XOR.ASM
;************************************************************************/ ;* */ ;* 8 Bit CRC (1-wire) */ ;* */ ;* Author: Peter Dannegger */ ;* danni@specs.de */ ;* */ ;************************************************************************/ ; .device AT90S1200 .def crc = r16 .def a0 = r17 .def a1 = r18 ;input: a0 = data ; crc = crc ;output: crc = crc crc8: eor a0, crc ldi crc, 0 sbrc a0, 0 ldi crc, 0x5E ldi a1, 0xBC sbrc a0, 1 eor crc, a1 ldi a1, 0x61 sbrc a0, 2 eor crc, a1 ldi a1, 0xC2 sbrc a0, 3 eor crc, a1 ldi a1, 0x9D
in „DS18S20 CRC Berechnung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
CO2Modbus.c
/* * CO2Modbus.c * * Created: 19.03.2015 17:19:59 * Author: Johannes1 */ #include <avr/io.h> #include "uart0.h" #include "uart1.h" #include "util/delay.h" uint16_t ModRTU_CRC(uint8_t buf[], int len); int main(void) { uint8_t buffer[8],crc_low,
in „Modbus RTU mit LTC485“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
JESD84-B42.pdf
host The card will treat a data block as successfully received and ready for programming only if the CRC data of the block was validated and the CRC status tokens sent back to the host. Figure 17 is an example of an interrupted (by a host stop command) attempt to transmit the CRC status block. The sequence
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
KlimaSensorKomm.c
(&myMesswerte->TTicks,pChecksumme,0); // Hier erfolgt die Validierung des Ergebnisse mittels einer CRC Prüfung. if (Fehler == 0){ SwitchOnRelais(0); CRC = CalcCRC(MESSE_TEMP,CRC_IV); // Erstes Bit, der gesendete Befehl CRC = CalcCRC((uint8_t)(myMesswerte->TTicks >> 8 ),CRC); // Zweites Bit, das MSB vom Messergebnis CRC = CalcCRC((uint8_t)(myMesswerte->TTicks / 256),CRC); // Drittes Bit, das LSB vom Messergebnis char text[8]; char text2[8]; itoa((int)CRC,text,10); itoa((int)*pChecksumme,text2,10); _delay_ms(10); SendeTextUART
in „SHT75 - CRC Check: Ich finde den Fehler nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
crc16_berechnung.c
= crc16_calculate(crc_wert, d, 2); crc_wert = crc16_calculate(crc_wert, s, 2); crc_wert = crc16_calculate(crc_wert, quitierung, 1); sprintf(crc_word,"%04X\0",crc_wert); LED4_ON; uart_putchar(UART_DEV1, start
in „ATmega128 - CRC16 nach CCITT mit vielen Bytes“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
SerProg.pdf
) function.xor16calc(initCRC :word; buf :PCHAR; len :word) :word; begin {$R-} while (len>0) do begin initCRC:=((initCRC shl 5) or (initCRC shr 11)) xor BYTE(buf^); dec(len); inc(buf); end; result:=initCRC; {$R+} end; 66 CRC checksum
in „Fujitsu MB91F011 internal flash read/write“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
SerProg.pdf
) function.xor16calc(initCRC :word; buf :PCHAR; len :word) :word; begin {$R-} while (len>0) do begin initCRC:=((initCRC shl 5) or (initCRC shr 11)) xor BYTE(buf^); dec(len); inc(buf); end; result:=initCRC; {$R+} end; 66 CRC checksum
in „Fujitsu MB91F011 internal flash read/write“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Wetterballon.txt
51.2262,14.0538,15721,-37 KXBK DA0FRA PFF DA0FRA HIGH ALTITUDE BALLOON FORMAT IS TIME KOORD-LAT,KOORD-LONG,TEMP CRC. MORE AT DA0FRA.ALTAFRANER.DE. PRPT VIA EMAIL WELCOME CCXE DA0FRA DAA HIGH ALTITUDE BALLOON 092340 51.2285,14.0656,15964,-36 BMC DA0FRA SOA DA0FRA HIGH ALTITUDE BALLOON 0925:01.2307,14.0831,16330,-35
in „Wetterballon mit Amateurfunklast, 08.09.2026 ab 7:00 UTC, 28,130 MHz. Start bei Meissen“ · HF, Funk und Felder ·
-
PDF
enc28j60.pdf
0>) 1111 1010 17 ERXSTH — — — RX Start High Byte (ERXST<12:8>) ---0 0101 17 ERXNDL RX End Low Byte (ERXND<7:0>) 1111 1111 17 ERXNDH — — — RX End High Byte (ERXND<12:8>) ---1 1111 17 ERXRDPTL RX RD Pointer Low Byte (ERXRDPT<7:0>) 1111 1010 17 ERXRDPTH — — — RX RD Pointer High Byte (ERXRDPT<12:8>) ---0 0101 17 ERXWRPTL RX WR Pointer Low Byte (ERXWRPT<7:0>) 0000 0000 17 ERXWRPTH — — — RX WR Pointer High Byte (ERXWRPT<12:8>) ---0 0000 17 EDMASTL
in „ENC28J60 Resetpin“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
user.manual.lpc17xx.pdf
reserved. User manual Rev. 2 — 19 August 2010 151 of 840 NXP Semiconductors UM10360 Chapter 10: LPC17xx Ethernet Table 131. Pad operation Type Autodetect VLAN pad Pad/CRC Action pad enable enable enable MAC2 [7] MAC2 [6] MAC2 [5] Any x x 0 No pad or CRC check Any 0 0 1 Pad to 60 bytes, append CRC Any
in „LPCxpresso 1769 I2C Takt einstellen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
MC51F7424_V1.2.2.pdf
中的操作对象为 DPTR1。 CORE 切换 DPTR,汇编代码应用举例: ……//假设当前使用的是 DPTR INC DPS; //切换至 DPTR1 …… INC DPS; //再切换回 DPTR 17.2 循环冗余校验(CRC) 循环冗余校验(Cyclic Redundancy Check, CRC)是一种根据输入数据产生简短固定位数校验码的一种散列函数,主 要用来提高系统的可靠性。 17.2.1 CRC 特性 集成硬件 16 位 CRC 单元,符合 CRC-16 标准,生成多项式为 X 16+ X15+ X 2+ 1,即 0x8005,初值可设为任意值, 晟矽微电 http://www.sinomcu.com
in „Lidl kann auch anders (Lötstation)“ · Mechanik, Gehäuse, Werkzeug ·
-
Datei
vbus.pl
$finish_flag=0; #End-Flag my $hexchars=""; my @val_array; #Eingangsdaten my @sequence=(170, 16, 0, 17, 66); #Header my @vbus_data; sub init(){ $aa_flag=0; $finish_flag=0; $hexchars=""; @val_array=(); @sequence=(170, 16, 0, 17, 66); } #Prüfe das Array auf den Header sub check_array{ my $i; for ($i=0;$
in „Suche Beschreibung vom VBUS (VegaBus)“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Old_261_0005229_390119061403P001.pdf
CRC1,F RLCF CRC2,F RLCF CRC3,F RLCF CRC4,F DECFSZ shift,F BRA shift_loop xor MOVF CRC4,W XORWF PEC4,F MOVF CRC3,W XORWF PEC3,F MOVF CRC2,W XORWF PEC2,F MOVF CRC1,W XORWF PEC1,F MOVF CRC0,W XORWF PEC0,F
in „Pic Assembler Programm in AVR C Programm umschreiben“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
MFRC530-NXP.pdf
[1] 1 CRC calculation is performed using ISO/IEC 3309 and ISO/IEC 15693 0 CRC calculation is performed using ISO/IEC 14443 A 4 CRC8 1 an 8-bit CRC is calculated 0 a 16-bit CRC is calculated 3 RxCRCEn 1 the last
in „[V] 3St. RFID (Mifare) Lese ICs NXP MFRC530 SO32 (4€)“ · Markt ·
-
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 CRC 0 0 0 0 0 0 0 0 0 1 1 1. Mal nach links CRC 0 0 0 0 0 0 0 0 1 0 2 2. Mal nach links CRC 0 0 0 0 0 0 0 1 0 0 4 3. Mal nach links CRC 0 0 0 0 0 0 1 0 0 0 8 4. Mal nach links CRC 0 0 0 0 0 1 0 0 0 0 10 5. Mal nach links CRC 0 0 0 0 1 0 0 0 0 0 20
-
Datei
service.c
/* * service.c * * Created: 17.11.2016 22:58:31 * Author: Bone */ #include "service.h" void Net_NewFrameStart(void) { DataOk = false; RxHeader = 0x00; RxBody = 0x00; RxCrc16 = 0; InitCRC(); stRxData.TxAddress = NULL; } void Net_SendFrame(void) { int i, loop; i = 0; InitCRC(); CalcCRC(stTxData.RxAddress); i++; CalcCRC(stTxData.InfoByte); i++; CalcCRC(stTxData.TxAddress); i++; CalcCRC((stTxData.DataLength += (INCLUDE_CRC(stTxData.InfoByte)))); i++; for (loop = 0; loop <
in „RS485 bus mit Fleury Uart“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
D6T01_ThermalIRSensorWhitepaper.pdf
{ unsigned char crc; int i; crc = calc_crc( 0x14 ); crc = calc_crc( 0x4C ^ crc ); crc = calc_crc( 0x15 ^ crc ); for(i=0;i<pPEC;i++){ crc = calc_crc( readbuff[i] ^ crc ); } return (crc == readbuff[pPEC]); } Other case :
in „Omron D6T Thermal Sensor“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AS5410_Datasheet_EN_v2.pdf
] 2015-Oct-07 Document Feedback AS5410− RegisterDescription Register 0108h Cycle Redundancy Check (CRC): Figure 37: Register 0108h Register Access Bit Function Note D15(MSB) CRC15 D14 CRC14 D13 CRC13 D12 CRC12 D11 CRC11 D10 CRC10 D9 CRC9 D8 CRC8 0108h: CRC R Checksum reading check D7 CRC7 D6 CRC6 D5 CRC5 D4 CRC4 D3 CRC3 D2 CRC2 D1 CRC1 D0 (LSB) CRC0 Page 30 amsDatasheet Document Feedback [v2-04] 2015-Oct-07 AS5410 − Register Description Register 0110h On-chip temperature sensor Figure 38: Register
in „SPI funktioniert nicht“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
BEISPIEL_04d.pdf
großes Dankeschön an Detlef Kunz, der mir diese Berechnung erst ermöglichte ! 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 RDS-Daten Mitschnitt eines Senders 16 x Datenbit schieben und behandeln CRC 0 0 0 0 0 0 0 0 0 0 1 1 1. x links CRC 0 0 0 0 0 0 0 0 0 1 0 2 2. x links CRC 0 0 0 0 0 0 0 0 1 0 0 4 3. x links CRC 0 0 0 0 0 0 0 1 0 0 0 8 4. x links CRC 0 0 0 0 0 0 1 0 0 0 0 10 5. x links CRC 0
-
Datei
NRF24_SendRcvMIesp.ino
< 5) | (p->packet[1] >> 3); // Add one byte and one bit for 9-bit packet control field crc = crc16((uint8_t *)&p->packet[0], sizeof(p->packet), crc, 7, BYTES_TO_BITS(payloadLen + 1) + 1); if (CHECK_CRC) { // If CRC is invalid only show lost packets if (((crc >> 8) != p->packet[payloadLen
in „Wechselrichter Hoymiles HM-xxxx 2,4 GhZ Nordic Protokoll?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
NRF24_SendRcvMIesp.ino
< 5) | (p->packet[1] >> 3); // Add one byte and one bit for 9-bit packet control field crc = crc16((uint8_t *)&p->packet[0], sizeof(p->packet), crc, 7, BYTES_TO_BITS(payloadLen + 1) + 1); if (CHECK_CRC) { // If CRC is invalid only show lost packets if (((crc >> 8) != p->packet[payloadLen
in „Wechselrichter Hoymiles HM-xxxx 2,4 GhZ Nordic Protokoll?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
NRF24_SendRcvMIesp.ino
< 5) | (p->packet[1] >> 3); // Add one byte and one bit for 9-bit packet control field crc = crc16((uint8_t *)&p->packet[0], sizeof(p->packet), crc, 7, BYTES_TO_BITS(payloadLen + 1) + 1); if (CHECK_CRC) { // If CRC is invalid only show lost packets if (((crc >> 8) != p->packet[payloadLen
in „Wechselrichter Hoymiles HM-xxxx 2,4 GhZ Nordic Protokoll?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
NRF24_SendRcvMIesp.ino
< 5) | (p->packet[1] >> 3); // Add one byte and one bit for 9-bit packet control field crc = crc16((uint8_t *)&p->packet[0], sizeof(p->packet), crc, 7, BYTES_TO_BITS(payloadLen + 1) + 1); if (CHECK_CRC) { // If CRC is invalid only show lost packets if (((crc >> 8) != p->packet[payloadLen
in „Wechselrichter Hoymiles HM-xxxx 2,4 GhZ Nordic Protokoll?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
NRF24_SendRcvMIesp.ino
< 5) | (p->packet[1] >> 3); // Add one byte and one bit for 9-bit packet control field crc = crc16((uint8_t *)&p->packet[0], sizeof(p->packet), crc, 7, BYTES_TO_BITS(payloadLen + 1) + 1); if (CHECK_CRC) { // If CRC is invalid only show lost packets if (((crc >> 8) != p->packet[payloadLen
in „Wechselrichter Hoymiles HM-xxxx 2,4 GhZ Nordic Protokoll?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
sdtest.c
SD_ReadBlock(unsigned long addr, unsigned char *buf) { unsigned int i; unsigned char status; unsigned char CMD17_READ_SINGLE_BLOCK[] = {17,0x00,0x00,0x00,0x00,0xFF}; CMD17_READ_SINGLE_BLOCK[1] = ((addr & 0xFF000000) >> 24); CMD17_READ_SINGLE_BLOCK[2] = ((addr & 0x00FF0000) >> 16); CMD17_READ_SINGLE_BLOCK[3] = ((addr & 0x0000FF00) >> 8); CMD17_READ_SINGLE_BLOCK[4] = ((addr & 0x000000FF)); SD_Enable(); // Send the read command status = SD_WriteCommand(CMD17_READ_SINGLE_BLOCK); if(status != 0) { // ABORT: invalid response for read single command
in „Auslesen einer SD-Karte mit AVR“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS_Micrel_ETH-TRANSIVER_KSZ9031RNX.pdf
MAC-DA-1 13h Wake-On-LAN – Magic Packet, MAC-DA-2 14h Wake-On-LAN – Customized Packet, Type 0, Expected CRC 0 15h Wake-On-LAN – Customized Packet, Type 0, Expected CRC 1 16h Wake-On-LAN – Customized Packet, Type 1, Expected CRC 0 17h Wake-On-LAN – Customized Packet, Type 1, Expected CRC 1 18h Wake-On-LAN
-
PDF
HCL-ATA_host_controller.pdf
controller controls the data and control signals for a DMA transfer with respect to the mode selected. CRC engine calculate the CRC for Ultra DMA transfer and send it to ATA Device at the end of transfer. ATA interface registers and enables the output signals to ATA Device. 2 November 17, 2004 HCL Technologies
in „Belohnung: Wer macht mit bei meinem Projekt?“ · FPGA, VHDL & Co. ·
-
Datei
crc32.c
#include <stdio.h> #include <stdlib.h> #include <inttypes.h> static const uint32_t crc32_table[] = { 0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, 0x1a864db2, 0x1e475005, 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, 0x2b4bcb61, 0x350c9b64, 0x31cd86d3, 0x3c8ea00a, 0x384fbdbd
in „CRC32 aus 16bit HEX-Daten“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
VBus_DS_M.c
Berechnung Checksumme **************************************************** unsigned char VBus_CalcCrc(const unsigned char *Buffer, int Offset, int Length) { unsigned char Crc= 0x7F;; for (unsigned int i = 0; i < Length; i++) { Crc = (Crc - Buffer [Offset + i]) & 0x7F; } return Crc; } //*** MSB extrahieren
in „Suche Beschreibung vom VBUS (VegaBus)“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
KSZ8851SNL.pdf
0x2C 0x2C - 0x2D 0x2D to Reserved Don’t Care None 0x2F 0x2E 0x2E - 0x2F 0x2F 0x30 0x30 - 0x31 0x30 WF0CRC0 0x0000 Wakeup Frame 0 CRC0 Register [7:0] 0x31 Wakeup Frame 0 CRC0 Register [15:8] to 0x32 Wakeup Frame 0 CRC1 Register [7:0] 0x33 0x32 - 0x33 WF0CRC1 0x0000 0x33 Wakeup Frame 0 CRC1 Register [15:8
in „KSZ8851 Ethernet komplizierte Frage.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
sdio.h
Definition der allgemeinen SDIO Fehlernummern *****/ #define SD_OK 0 /* alles in Ordnung */ #define SD_CMD_CRC_FAIL 1 /* Command response received (but CRC check failed) */ #define SD_DATA_CRC_FAIL 2 /* Data bock sent/received (CRC check Failed) */ #define SD_CMD_RSP_TIMEOUT 3 /* Command response timeout */
in „Wie aus einer SDHC-Karte eine "SD-Karte" erstellen?“ · PC Hard- und Software ·
-
Datei
main.c
include "util/delay.h" #include <avr/pgmspace.h> //Defines #define F_CPU 14745600UL #define slaveadress 17 #define rxbuffersize 32 #define txbuffersize 32 //CRC16 table for crc calculation static uint8_t table_crc_hi[] = { 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1,
in „AVR mit Modbus automatischer Reset“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Programm.txt
das Commando eingefügt*/ addr = addr << 9; //addr = addr * 512 CMD17[1] = ((addr & 0xFF000000) >>24 ); CMD17[2] = ((addr & 0x00FF0000) >>16 ); CMD17[3] = ((addr & 0x0000FF00) >>8 ); //Sendet Commando CMD16 an MMC/SD-Karte (Read 1 Block/512 Bytes) tmp = Write_Command_MMC
in „ATMEGA8 -- SD/MMC Karte“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lib_crc.c
Modification history * * ==================== * * * * Date Version Comment * * * * 2008-04-20 1.16 Added CRC-CCITT calculation for Kermit * * * * 2007-04-01 1.15 Added CRC16 calculation for Modbus * * * * 2007-03-28 1.14 Added CRC16 routine for Sick devices * * * * 2005-12-17 1.13 Added CRC-CCITT with initial
in „avr dude Programm zu groß? Eclipse GCC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
crc.c
/* * crc.c * * Created: 17.11.2016 22:30:32 * Author: Bone */ #include "crc.h" void InitCRC(void) { crc16 = 0xffff; } void CalcCRC(unsigned char data) { unsigned char bitCount; unsigned char PolynomFlag; for (bitCount = 0; bitCount <8; bitCount++) { PolynomFlag = (crc16 &0x8000) != 0; crc16 <<= 1; if (data &0x80) { crc16 |= 1; } data <<= 1; if (PolynomFlag) crc16 ^= CRC16_POLYNOM; } }
in „RS485 bus mit Fleury Uart“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
) ); // Argument[15..8] spi_write_byte( (unsigned char)arg ); // Argument[7..0] n = 0x01; // Dummy CRC + Stop if (cmd == CMD0) n = 0x95; // Valid CRC for CMD0(0) if (cmd == CMD8) n = 0x87; // Valid CRC for CMD8(0x1AA) spi_write_byte(n); // Receive command response if (cmd == CMD12) spi_read_byte(); /
in „MMC SD library FAT16 FAT32 read write“ · Projekte & Code ·
-
Datei
NRF24_SendRcvMIesp.ino
< 5) | (p->packet[1] >> 3); // Add one byte and one bit for 9-bit packet control field crc = crc16((uint8_t *)&p->packet[0], sizeof(p->packet), crc, 7, BYTES_TO_BITS(payloadLen + 1) + 1); if (CHECK_CRC) { // If CRC is invalid only show lost packets if (((crc >> 8) != p->packet[payloadLen
in „Wechselrichter Hoymiles HM-xxxx 2,4 GhZ Nordic Protokoll?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
NRF24_SendRcvMIesp.ino
< 5) | (p->packet[1] >> 3); // Add one byte and one bit for 9-bit packet control field crc = crc16((uint8_t *)&p->packet[0], sizeof(p->packet), crc, 7, BYTES_TO_BITS(payloadLen + 1) + 1); if (CHECK_CRC) { // If CRC is invalid only show lost packets if (((crc >> 8) != p->packet[payloadLen
in „Wechselrichter Hoymiles HM-xxxx 2,4 GhZ Nordic Protokoll?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
NRF24_SendRcvMIesp.ino
< 5) | (p->packet[1] >> 3); // Add one byte and one bit for 9-bit packet control field crc = crc16((uint8_t *)&p->packet[0], sizeof(p->packet), crc, 7, BYTES_TO_BITS(payloadLen + 1) + 1); if (CHECK_CRC) { // If CRC is invalid only show lost packets if (((crc >> 8) != p->packet[payloadLen
in „Wechselrichter Hoymiles HM-xxxx 2,4 GhZ Nordic Protokoll?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
RTL8111B_8168B_Registers_DataSheet_1.0.pdf
received when RCR_AR is set. 0 19 CRC CRC Error: When set, indicates that a CRC error has occurred on the received packet. A CRC packet can only be received when RCR_AER is set. 0 18, 17 PID1, PID0 Protocol ID1, Protocol ID0: These 2 bits
-
Datei
mmc.asm
Read_Block_MMC (<Y, work> unsigned long, <Z: SRAM @Buffer> char *Buffer); push XL push XH ;//Commando 17 zum lesen eines Blocks ldi cnt, 0x51 rcall prepcmd ;//Sendet Commando CMD17 an MMC/SD-Karte (Read 1 Block/512 Bytes) rcall Write_Command_MMC cpi work, 0 breq jp3 sbi MMC_Write, MMC_Chip_Select ldi work
in „Benutzen einer MMC Card“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
cc1100.pdf
Name Description for 500 kBaud data rate where the recommended preamble length is 8 bytes. 7 CRC_OK 1: CRC for received data OK • (or CRC disabled) 0: CRC error in received data • In addition, the following can be implemented on the data field and the 6:0 LQI Indicating the link quality optional
in „Scrambler für Funkstrecke“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
in software spi, block schreiben #else a=512; do{ mmc_write_byte(*Buffer++); }while(--a); #endif //CRC-Bytes schreiben mmc_write_byte(0xFF); //Schreibt Dummy CRC mmc_write_byte(0xFF); //CRC Code wird nicht benutzt response=mmc_read_byte(); mmc_wait_ready(); if ((response&0x1F) == 0x05 ){ // daten von
in „SPI mit SD Karte antwortet nicht korrekt auf CMD0“ · Mikrocontroller und Digitale Elektronik ·