| 数据搜索系统,热门电子元器件搜索 |
|
UM0313 数据表(PDF) 28 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0313 数据表(HTML) 28 Page - STMicroelectronics |
|
28 / 33 page ![]() Supported commands UM0313 28/33 7.2.3 Stop command The *stop command interrupts any acquisition session that has been started with either the *start or *debug commands. 7.2.4 Register read The *rAA command allows the contents of the LIS302DL device registers in the evaluation kit board to be read. AA, expressed as hexadecimal value and written in upper-case, represents the address of the register to be read. Once the read command is issued, the board will return RAAhDDh, where AA is the address sent by the user and DD is the data present in the register. For example, to read the CTRL_REG1 the user would issue the command *r20, which returns R20hC7h. 7.2.5 Register write The *wAADD command permits writing to the contents of the LIS302DL device registers in the evaluation kit board. AA and DD, expressed as hexadecimal values and written in upper- case, represent respectively the address of the register and the data to be written. To write 0xC7 to the CTRL_REG1, for example, the user would issue the command *w20C7. 7.2.6 Single bit write Using this command it is possible to set/reset a single bit in a given register. The command *bwAA<0:7><0|1> requires the user to specify the address AA of the register in which to change the bit, with AA expressed as a hexadecimal value and written in lower-case, followed by the position of the bit to be changed, an integer between 0 and 7, and the value, either 0 or 1, to be associated to the specified bit. For example, to set to 1 the FS bit within the CTRL_REG2, the user would issue the command *bw2171. 7.2.7 Zon and Zoff The *Zon and *Zoff commands are employed respectively to put into 3-state (i.e. high- impedance) and to exit (i.e. normal mode) the SPI lines of the ST7-USB microcontroller mounted on the evaluation kit. These commands allow the isolation of the sensor from the microprocessor in the event that an external control (from a different microcontroller mounted on a separate board) is needed. By default, when the kit is first turned on, the SPI lines are in 3-state mode and the user is required to send the command *Zoff to allow the communication between the sensor and the microcontroller. 7.2.8 Device name The *dev command retrieves the name of the device mounted on the evaluation kit connected to the PC. For the EK302DL, the returned value is “LIS302DL”. |
|
链接网址 |
| 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 |