| Electronic Components Datasheet Search |
|
MCP39F511A Datasheet(PDF) 17 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP39F511A Datasheet(HTML) 17 Page - Microchip Technology |
|
17 / 68 page ![]() 2018 Microchip Technology Inc. DS20006044A-page 17 MCP39F511A 4.4 Command List The following table is a list of all accepted command bytes for the MCP39F511A device. There are 10 possible accepted commands for the MCP39F511A device. 4.5 Example Communication Frames and MCP39F511A Responses Tables 4-2 to 4-11 show exact hexadecimal communication frames as recommended to be sent to the MCP39F511A device from the system MCU. The values here can be used as direct examples for writing the code to communicate to the MCP39F511A device. TABLE 4-1: MCP39F511A INSTRUCTION SET Command # Command Command ID Instruction Parameter Number of Bytes Successful Response UART_TX 1 Register Read, N bytes 0x4E NoB(3) 2 ACK, NoB, data, checksum 2 Register Write, N bytes 0x4D NoB(3) 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, NoB, data, checksum 6 Page Write EEPROM 0x50 PAGE 18 ACK 7 Bulk Erase EEPROM 0x4F None 1 ACK 8 Auto-Calibrate Gain 0x5A None Note 1 9 Auto-Calibrate Reactive Gain 0x7A None Note 1, 2 10 Auto-Calibrate Frequency 0x76 None Note 1, 2 11 Save Energy Counters to EEPROM 0x45 None 1 ACK Note 1: See Section 9.0 “MCP39F511A Calibration” for more information. 2: AC mode only 3: NoB represents total number of bytes in frame TABLE 4-2: REGISTER READ, N BYTES COMMAND (Note 1) Byte # Value Description Response from MCP39F511A 1 0xA5 Header Byte 2 0x08 Number of Bytes in Frame 3 0x41 Command (Set Address Pointer) 4 0x00 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 + NoB (35) + data (32) + 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 |