| 数据搜索系统,热门电子元器件搜索 |
|
HCS362-I 数据表(PDF) 10 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
HCS362-I 数据表(HTML) 10 Page - Microchip Technology |
|
10 / 38 page ![]() HCS362 DS40189D-page 10 Preliminary © 2002 Microchip Technology Inc. 3.1.1 CODE HOPPING DATA The hopping portion is calculated by encrypting the counter, discrimination value and function code with the Encoder Key (KEY). The counter is a 16-bit counter. The discrimination value is 10 bits long and there are 2 counter overflow bits (OVR) that are cleared when the counter wraps to 0. The rest of the 32 bits are made up of the function code also known as the button inputs. 3.1.2 FIXED CODE DATA The 32 bits of fixed code consist of 28 bits of the serial number (SER) and another copy of the function code. This can be changed to contain the whole 32-bit serial number with the Extended Serial Number (XSER) con- figuration option. 3.1.3 STATUS INFORMATION The status bits will always contain the output of the Low Voltage detector (VLOW), the Cyclic Redundancy Check (CRC) bits (or TIME bits depending on CTSEL) and the Button Queue information. 3.1.3.1 Low Voltage Detector Status (VLOW) The output of the low voltage detector is transmitted with each code word. If VDD drops below the selected voltage, a logic ‘1’ will be transmitted. The output of the detector is sampled before each code word is transmit- ted. 3.1.3.2 Button Queue Information (QUEUE) The queue bits indicate a button combination was pressed again within 2 s after releasing the previous activation. Queuing or repeated pressing of the same buttons (or button combination) is detected by the HCS362 button debouncing circuitry. The Queue bits are added as the last two bits of the standard code word. The queue bits are a 2-bit counter that does not wrap. The counter value starts at ‘00b’ and is incremented, if a button is pushed within 2 s of the previous button press. The current code word is ter- minated when the buttons are queued. This allows additional functionality for repeated button presses. The button inputs are sampled every 6.4 ms during this 2 s period. 00 - first activation 01 - second activation 10 - third activation 11 - from fourth activation on 3.1.3.3 Cyclic Redundancy Check (CRC) The CRC bits are calculated on the 65 previously trans- mitted bits. The decoder can use the CRC bits to check the data integrity before processing starts. The CRC can detect all single bit errors and 66% of double bit errors. The CRC is computed as follows: EQUATION 3-1: CRC Calculation and with and Din the nth transmission bit 0 ≤ n ≤ 64 Note: The CRC may be wrong when the bat- tery voltage is around either of the VLOW trip points. This may happen because VLOW is sampled twice each transmission, once for the CRC calcu- lation (PWM is LOW) and once when VLOW is transmitted (PWM is HIGH). VDD tends to move slightly during a transmission which could lead to a dif- ferent value for VLOW being used for the CRC calculation and the transmis- sion. Work around: If the CRC is incorrect, recalculate for the opposite value of VLOW. CRC 1 [] n1 + CRC 0 [] n Di n ⊕ = CRC 0 [] n1 + CRC 0 [] n Di n ⊕ () CRC 1 [] n ⊕ = CRC 1 0 , [] 0 0 = |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |