| Electronic Components Datasheet Search |
|
ATECC608A-TNGLORAS-B Datasheet(PDF) 20 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
ATECC608A-TNGLORAS-B Datasheet(HTML) 20 Page - Microchip Technology |
|
20 / 81 page ![]() 4. General Command Information The following sections provide some general information on the basic I/O transactions, command structure, error codes, memory addressing and formatting of keys and signatures that are used in the ATECC608A-TNGLoRaWAN. 4.1 I/O Transactions The ATECC608A-TNGLoRaWAN uses the I2C protocol to communicate with a host microcontroller. Security commands are sent to the device and responses are received from the device within a transaction that is constructed in the following way: Table 4-1. I/O Transaction Format Byte Name Meaning 0 Count Number of bytes to be transferred to (or from) the device in the group, including the count byte, packet bytes and checksum bytes. Therefore, the count byte must always have a value of (N+1), where N is equal to the number of bytes in the packet plus the two checksum bytes. For a group with one count byte, 50 packet bytes and two checksum bytes, the count byte must be set to 53. The maximum size group (and value of count) is 155 bytes and the minimum size group is four bytes. Values outside this range will cause the device to return an I/O error. 1 to (N-2) Packet Command, parameters and data or response. See Section 4.2 Command Packets for general command packet information or Section 5. Device Commands for specific parameters for each command. N-1, N Checksum CRC-16 verification of the count and packet bytes. The CRC polynomial is 0x8005. Prior to the start of the CRC calculation, the CRC register is initialized to zero. After the last bit of the count and packet have been transmitted, the internal CRC register must have a value that matches the checksum bytes in the block. The first CRC byte transmitted (N-1) is the Least Significant Byte of the CRC value, so the last byte of the group is the Most Significant Byte of the CRC. The ATECC608A-TNGLoRaWAN is designed to have the count value in the input group consistent with the size requirements that are specified in the command parameters. If the count value is inconsistent with the command opcode and/or parameters within the packet, the ATECC608A-TNGLoRaWAN responds in different ways depending upon the specific command. The response may either include an error indication or some input bytes may be silently ignored. 4.2 Command Packets The command packet is broken down as shown in Table 4-2: Table 4-2. Command Packets Byte Name Meaning 0 Opcode The command code. See Section 5. Device Commands . 1 Param1 The first parameter; always present. 2 – 3 Param2 The second parameter; always present. 0 – 155 Data Optional remaining input data. After the ATECC608A-TNGLoRaWAN receives all the bytes in a group, the device transitions to the Busy state and attempts to execute the command. Neither status nor results can be read from the device when it is busy. During this time, the I/O interface of the device ignores all transitions on the I2C SDA input signal. ATECC608A-TNGLoRaWAN General Command Information © 2020 Microchip Technology Inc. Complete Datasheet DS40002154B-page 20 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |