| Electronic Components Datasheet Search |
|
MCP39F511N Datasheet(PDF) 16 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP39F511N Datasheet(HTML) 16 Page - Microchip Technology |
|
16 / 61 page ![]() 2015-2018 Microchip Technology Inc. DS20005473B-page 16 MCP39F511N 4.4 Command List The following table is a list of all accepted command bytes for the MCP39F511N. There are 10 possible accepted commands for the MCP39F511N. 4.5 Example Communication Frames and MCP39F511N Responses Tables 4-2 to 4-11 show exact hexadecimal communication frames as they are recommended to be sent to the MCP39F511N from the system MCU. The values here can be used as direct examples for writing the code to communicate to the MCP39F511N. TABLE 4-1: MCP39F511N INSTRUCTION SET Command # Command Command ID Instruction Parameter Number of bytes Successful Response UART_TX 1 Register Read, N bytes 0x4E Number of bytes 2 ACK, Data, Checksum 2 Register Write, N bytes 0x4D Number of bytes 1+N ACK 3 Set Address Pointer 0x41 ADDRESS 3 ACK 4 Save Registers To Flash 0x53 None 1 ACK 5 Page Read EEPROM 0x42 PAGE 2 ACK, Data, Checksum 6 Page Write EEPROM 0x50 PAGE 18 ACK 7 Bulk Erase EEPROM 0x4F None 1 ACK 8 Auto-Calibrate Gain 0x5A Channel Selection (1) Note 2 9 Auto-Calibrate Reactive Gain 0x7A Channel Selection (1) Note 2 10 Auto-Calibrate Frequency 0x76 None Note 2 Note 1: Each bit in the instruction parameter byte refers to the corresponding channel that is being calibrated with the command. For example, if bits 0 and 1 are high, both channels 1 and 2 will be calibrated. A NAK or ACK will be returned. If a NAK is returned, refer to the Calibration Status bits in the Event Configuration Register for more information. 2: See Section 9.0 “MCP39F511N Calibration” for more information on calibration. TABLE 4-2: REGISTER READ, N BYTES COMMAND (Note 1) Byte # Value Description Response from MCP39F511N 1 0xA5 Header Byte 2 0x08 Number of Bytes in Frame 3 0x41 Command (Set Address Pointer) 40x00 Address High 5 0x02 Address Low 6 0x4E Command (Register Read, N Bytes) 7 0x20 Number of Bytes to Read (32) 8 0x5E Checksum ACK + Number of Bytes (35) + 32 bytes + Checksum Note 1: This example Register Read, N bytes frame, as it is written here, can be used to poll a subset of the output data, starting at the top, address 0x02, and reading 32 data bytes back or 35 bytes total in the frame. |
|
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 |