Use the serial COM port to read and write registers through USB commands using the following format:
- Read register format: rreg ADR
- Where ADR is the address in hex, and rreg is always lower case.
- Register addresses can be in upper or lower case, and do not need to be led by '0x'. 0 padding register addresses is also optional. For example, to read register address 0xB, some valid commands include:
- rreg 8
- rreg 08
- rreg 0x08
- When '0x' is used, the 'x' must be lower case.
- For this example, the EVM returns the results and
state (idle or collecting) in JSON format:
- {"acknowledge":"rreg 0x08"}
- {"register":{"address":8,"value":0}}
- {"evm_state":"idle"}
- Write register format: wreg ADR VAL
- Where ADR and VAL are in hex, and wreg is always lower case.
- Register addresses and values can be in upper or lower case, and do not need to be led by '0x'. 0 padding register addresses and values is also optional. For example, to write register address 0x1 with the value 0xfb69, some valid commands include:
- wreg 20 f127
- wreg 20 0xf127
- wreg 0x20 0xF127
- When '0x' is used, the 'x' must be lower case.
- For this example, the EVM returns the results and
state (idle or collecting) in JSON format:
- {"acknowledge":"wreg 0x20 0xf127"}
- {"console":"Writing 0xf127 to CONFIG1 register"}
- {"evm_state":"idle"}