| поискавой системы для электроныых деталей |
|
MCS3122-I/ST датащи(PDF) 5 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCS3122-I/ST датащи(HTML) 5 Page - Microchip Technology |
|
5 / 26 page ![]() 2014 Microchip Technology Inc. DS40001762A-page 5 MCS3122 3.0 MEMORY ORGANIZATION MCS3122 has 64 bytes of configuration data. In general, the Configuration bytes can be divided into two categories: those options related to the Advanced KEELOQ technology encoder and those related to the transmitter and device operation. 3.1 Counter and Protection The synchronization counter is read, checked for integrity, updated (incremented) and saved back to Flash during normal operation of the device. The special operation prevents against data loss from unexpected power loss. An 8-bit checksum is calculated and stored alongside the synchronization counter. The checksum is calculated as a two’s complement checksum. If there is a mismatch, the second copy of the synchronization counter is read instead. Example 3-1 illustrates how to compute this value. EXAMPLE 3-1: CHECKSUM CALCULATION TABLE 3-1: CONFIGURATION REGISTERS Address Size (Bytes) Description 0x00-0x02 3 Synchronization Counter, Copy A 0x03 1 Synchronization Counter Checksum 0x04-0x07 4 Reserved (set to 0xFF) 0x08-0x0A 3 Synchronization Counter, Copy B 0x0B 1 Reserved (set to 0xFF) 0x0C-0x0F 4 Seed Transmission Serial Number (usually set to 0xFFFFFFFF) 0x10-0x1F 16 Encryption Key 0x20-0x2F 16 Authorization Key 0x30-0x33 4 Serial Number 0x34-0x35 2 Transmitter Settings 0x36-0x37 2 Reserved (set to 0xFF) 0x38-0x3F 8 Seed Value static uint8_t crc(const uint8_t* buffer, size_t len){ uint8_t bitcount; uint8_t checksum = 0xFF; while(len--) { c = c + *buffer++; } return 0-c; } |
|
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| 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 |