Datasheet
26
ENS160 Datasheet v0.95 preliminary / December 2020
Table 19: Register CONFIG
Address 0x11
CONFIG
Bits
Field Name
Default
Access
Field Description
7
-
0b0
-
Reserved
6
INTPOL
0b0
R/W
INTn pin polarity:
0: Active low (Default)
1: Active high
5
INT_CFG
0b0
R/W
INTn pin drive:
0: Open drain
1: Push / Pull
4
-
0b0
-
Reserved
3
INTGPR
0b0
R/W
INTn pin asserted when new data is presented in the
General Purpose Read Registers
2
-
0b0
-
Reserved
1
INTDAT
0b0
R/W
INTn pin asserted when new data is presented in the
DATA_XXX Registers
0
INTEN
0b0
R/W
INTn pin is enabled for the functions above
16.2.4 COMMAND (Address 0x12)
This 1-byte register allows some additional commands to be executed on the ENS160. This
register can be written at any time, but commands will only be actioned in IDLE mode
(OPMODE 0x01).
The COMMAND register allows multiple interactions with the system where data needs to be
passed between the user/host and the ENS160.
Typically, a request for data (e.g. GetHWVer, GetFWVer) will result in the requested data
being placed in the General Purpose READ Registers and an input of data (e.g. set alarm
threshold) would first be stored in the General Purpose WRITE Registers at address 0x40-47.
Below is a list of valid commands for the ENS160.
Table 20: Register COMMAND
Address 0x12
COMMAND
Bits
Field Name
Default
Access
Command
7:0
Command
0x00
R/W
0x00: ENS160_COMMAND_NOP
0x0E: ENS160_COMMAND_GET_APPVER Get FW Version
0xCC: ENS160_COMMAND_CLRGPR Clears GPR Read Registers
16.2.4.1 ENS160_COMMAND_GET_APPVER
After issuing ENS160_COMMAND_GET_APPVER, the firmware version of the ENS160 will be
placed in General Purpose Registers GPR_READ0 and GPR_READ1. The NEWGPR bit in
DATA_STATUS will be set and the INTn asserted if configured to react to NEWGPR.
Table 21: GPR_READ Settings for ENS160_COMMAND_GET_APPVER Command
Register
7
6
5
4
3
2
1
0
GPR_READ0
Release
Version
GPR_READ1
Sub-Version
16.2.4.2 ENS160_COMMAND_CLRGPR
After issuing ENS160_COMMAND_CLRGPR all GPR Read registers are cleared.