| 数据搜索系统,热门电子元器件搜索 |
|
MCP3913 数据表(PDF) 49 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP3913 数据表(HTML) 49 Page - Microchip Technology |
|
49 / 82 page ![]() 2013 Microchip Technology Inc. DS20005227A-page 49 MCP3913 6.10 Locking/Unlocking Register Map Write Access The MCP3913 digital interface includes an advanced security feature that permits locking or unlocking the register map write access. This feature prevents the miscommunications that can corrupt the desired configuration of the device, especially an SPI read becoming an SPI write because of the noisy environment. The last register address of the register map (0x1F: LOCK/CRC) contains the LOCK<7:0> bits. If these bits are equal to the password value (which is equal to the default value of 0xA5), the register map write access is not locked. Any write can take place and the communications are not protected. When the LOCK<7:0> bits are different than 0xA5, the register map write access is locked. The register map, and therefore the full device configuration, is write- protected. Any write to an address other than 0x1F will yield no result. All the register addresses, except the address 0x1F, become read-only. In this case, if the user wants to change the configuration, the LOCK<7:0> bits have to be reprogrammed back to 0xA5 before sending the desired write command. The LOCK<7:0> bits are located in the last register, so the user can program the whole register map, starting from 0x09 to 0x1E within one continuous write sequence, and then lock the configuration at the end of the sequence by writing all zeros, in the address 0x1F for example. 6.11 Detecting Configuration Change Through CRC-16 Checksum On Register Map and its Associated Interrupt Flag In order to prevent internal corruption of the register and to provide additional security on the register map configuration, the MCP3913 device includes an automatic and continuous CRC checksum calculation on the full register map configuration bits. This calculation is not the same as the communication CRC checksum described in Section 6.9 “Securing Read Communications Through CRC-16 Checksum” . This calculation takes the full register map as the CRC message and outputs a checksum on the CRCREG<15:0> bits located in the LOCK/CRC register (address 0x1F). Since this feature is intended for protecting the configuration of the device, this calculation is run continuously only when the register map is locked (LOCK<7:0> different than 0xA5, see Section 6.10, Locking/Unlocking Register Map Write Access ). If the register map is unlocked, the CRCREG<15:0> bits are cleared and no CRC is calculated. The calculation is fully completed in 21 DMCLK periods and refreshed every 21 DMCLK periods continuously. The CRCREG<15:0> bits are reset when a POR or a hard reset occurs. All the bits contained in the registers from addresses 0x09 — 0x1F are processed by the CRC engine to give the CRCREG<15:0>. The DRSTATUS<5:0> bits are set to '1' (default) and the CRCREG<15:0> bits are set to '0' (default) for this calculation engine, as they could vary during the calculation. An interrupt flag can be enabled through the EN_INT bit in the STATUSCOM register and provided on the DR pin when the configuration has changed without a write command being processed. This interrupt is a logic low state. This interrupt is cleared when the register map is unlocked (since the CRC calculation is not processed). At power-up, the interrupt is not present and the register map is unlocked. As soon as the user finishes writing its configuration, the user needs to lock the register map (writing 0x00 for example in the LOCK bits) to be able to use the interrupt flag. The CRCREG<15:0> bits will be calculated for the first time in 21 DMCLK periods. This first value will then be the reference checksum value and will be latched internally, until a hard reset, a POR, or an unlocking of the register map happens. The CRCREG<15:0> will then be calculated continuously and checked against the reference checksum. If the CRCREG<15:0> is different than the reference, the interrupt sends a flag by setting the DR pin to a logic low state until it is cleared. |
|
链接网址 |
| 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 |