| 数据搜索系统,热门电子元器件搜索 |
|
UM0313 数据表(PDF) 27 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0313 数据表(HTML) 27 Page - STMicroelectronics |
|
27 / 33 page ![]() UM0313 Supported commands 27/33 7.2 Supported commands The table below lists the commands supported by the EK302DL firmware: Note: AA: register address DD: data S: service field XX, YY, ZZ: Acceleration data returned for the X, Y and Z axes I1, I2 : interrupt value on each axes. 7.2.1 Start command The *start command initiates the continuous data acquisition. When this command is sent to the board, it returns the acceleration data measured by the LIS302DL device. The acceleration data are packed in a string composed of eight bytes: “s t X Y Z I1 I2 SD”. The first two bytes are always “s” and “t” which correspond to the hexadecimal values {73 74}, while “X” “Y” “Z” represent, respectively, the acceleration data for the X, Y, Z axes. “I1” and “I2” contain the values of FF_WU_SRC1 and FF_WU_SRC2, where each bit is a specific interrupt. The last byte “s” returns information about the switches mounted on the board. Specifically, bit#1 and bit#0 of the "service data" correspond to the status of SW3 and SW2 on the evaluation kit board, and they are set to 1 when the corresponding switch is pressed. 7.2.2 Debug command The *debug command starts the continuous data acquisition in debug mode. When this command is sent to the board it returns the acceleration data measured by the LIS302DL device in readable text format. The values shown on the screen correspond to the content of the output data registers and are shown as a hexadecimal number. A TAB is employed as a separator between the different fields. Table 1. Supported commands Command Description Returned value *start Starts continuous data acquisition S T x y z I1 I2 s *debug Returns the acceleration data in readable text format x=XX y=YY z=ZZ *stop Stops data acquisition *rAA Register read RAAhDDh *wAADD Register write *bwAA<0:7><0|1> Single bit write *Zon Force 3-state *Zoff Exit from 3-state *dev Device name LIS302DL *ver Firmware version 302DL 1.1 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |