Status Registers; Getstatus; Stat1; Table 3-1: Getstatus Command - Semtech LR1121 User Manual

Table of Contents

Advertisement

3.4 Status Registers

The LR1121 features 2 status variables Stat1 and Stat2, which determine the status of the LR1121 (the last command sent,
of the device interrupts, of the device operating mode, and of the bootloader) without the need for the host to send a
specific command. Command GetStatus(...) returns the status registers.
Stat1 and Stat2 are always sent when the host issues a command. Only Stat1 is sent back when retrieving data from the
LR1121.

3.4.1 GetStatus

Command GetStatus(...) returns the LR1121 status flags stat1 and stat2, and the LR1121 interrupt flags. It then clears
the stat2 ResetStatus field.
Note that there is an alternate method for retrieving this status information: If a sequence of zeros (NOP) is written to the
MOSI signal, the LR1121 clocks out either the response to the last command, or the status information if no response is
pending. If the SPI read command is designed to write zero /NOP on the MOSI signal, then this provides a way to obtain the
status information by using an ordinary SPI read command. Note, however, that this method does not clear the ResetStatus
field. See stat1/CMD_DAT for more information.

Table 3-1: GetStatus Command

Byte
0
Data from Host
0x01
Data to Host

Stat1

3.4.2 Stat1

Table 3-2: Stat1 Values

Bits
Name
Command Status indicates the status of the last command sent by the host:
0: CMD_FAIL: The last command could not be executed.
1: CMD_PERR: The last command could not be processed (wrong opcode, arguments). It is possible to generate an
interrupt on DIO if a command error occurred.
Any attempt to use Wi-Fi or GNSS functions returns this code.
2: CMD_OK: The last command was processed successfully.
3: CMD_DAT: The last command was successfully processed, and data is currently transmitted instead of IRQ status.
4-7: RFU.
Interrupt Status indicates if an LR1121 system interrupt was raised.
0: No interrupt active.
1: At least 1 interrupt active.
LR1121
User Manual
Rev 1.1
UM.LR1121.W.APP
Mar 2023
1
2
0x00
0x00
IrqStatus
Stat2
(31:24)
(7:4)
RFU
www.semtech.com
3
0x00
0x00
IrqStatus
IrqStatus
(23:16)
(15:8)
(3:1)
Command Status
4
5
0x00
IrqStatus
(7:0)
(0)
Interrupt Status
27 of 130
Semtech
Proprietary & Confidential

Advertisement

Table of Contents
loading

Table of Contents