----------------------------------------------------------------------------- This document list the valid commands for the OPT3101EVMDC11 MSP Control port ----------------------------------------------------------------------------- COMPort settings : Control COM port: USB\VID_2047&PID_03FF&MI_00 Data COM port : USB\VID_2047&PID_03FF&MI_02 Baudrate : 9600 Data : 8 bits Parity : None Stop : 1 Bit Flow Control : None List of valid Commands ---------------------- The commands are case insensitive Commands are terminated by \r (Carriage return) Response code for each command is as follows :: --> The command specified is echoed (expect \r) --> 0:Success. F:Command syntax error. E:Command systax correct but operation failed --> Response from operation. Eg: For register read request the read register values are displayed in HEX. Register interface (all commands prefixed with REG): REGWx
x\r --> Performs register write to the register Address (in Hex) with data specified in (in Hex). Data format is [23:0]. For eg: REGWx1Ax1FBC03 writes data[23:0]=0x1FBC03 to register 0x1A REGRx
\r --> Performs register read from register Address (in Hex). Returns register data in format 1FBC03 where data[23:0]=0x1FBC03 Device interface (all commands prefixed with DEV): DEVAx
\r --> Sets device I2C Slave address (in Hex format). Example device OPT3101 default address is 0x58 hence command to set this address will be DEVAx58 DEVBx0\r --> Sets I2C Continous mode capture register count to 9 registers DEVBx1\r --> Sets I2C Continous mode capture register count to 6 registers DEVBx2\r --> Sets I2C Continous mode capture register count to 12 registers mode (non-continous mode) DEVR\r --> Sends reset pulse to the device Monoshot interface (all commands prefixed with MON): MONS\r --> Start providing monoshot pulses from MSP to OPT3101 device MONE\r --> Stops providing monoshot pulses from MSP to OPT3101 device MONCx --> Sets monoshot interveral counter (in Hex). 1 count equals to 1.333us.Hence for eg: MONCxFFFF (maximum setting) will generate 1 monoshot pulse every 87.38ms Flash interface (all commands prefixed with FLS): FLSSx\r --> Reads the contents of in hex (though I2C) and stores the contents of the register to flash memory (non-volatile memory) and increments the writePointer of flash memory for next write command. FLSX\r --> Reads the contents of all the stored registers in flash memory (non-volatile memory) and writes the content to the device (through I2C transactions). FLSH\r --> Reads the flash memory header and returns the number (in Hex) of entries (in terms of register count) stored in the flash memory (non-volatile memory). Actual number of bytes is register count * 4 FLSR\r --> Reads the flash memory contents from readPointer and return the hex value. Eg: If returned value is 3F124567 it means that the flash memory has stored vale of 0x3F1245 as contents of register 0x67. So when FLSX is executed among other entries in flash 0x67 register will be set to 0x3F1245 FLS!R\r --> Resets read pointer of flash memory, so future FLSR would start from the first stored entry. FLS!W\r --> Resets write pointer of flash memory. This command erases all the contents of the Flash memory, including header. FLSWx
x\r --> Writes the flash memory with register address (in Hex) followed by register data (in Hex). for eg: FLSWx54xAB1245 means that the flash contents will be updated with an entry for register addreee 0x54 with data[23:0]=0xAB1245. In future FLSR or FLSX would load the register 0x54 with the corresponding data[23:0] among other entries in the flash Capture interface (all commands prefixed with CAP): CAPS\r --> Start Capture of data. Data port will start receiving captured data from the device. CAPE\r --> End Capture of data. Data port will stop receiving captured data from the device. CAPFx0\r --> Sets capture format to binary format CAPFx1\r --> Sets capture format to ascii/text/readable format