Linx HumPRC Series Data Manual page 40

Rf transceiver module
Hide thumbs Also See for HumPRC Series:
Table of Contents

Advertisement

EEXFLAG - Extended Exception Flags
Volatile Address = 0xCD - 0xCF
These volatile registers contain flags for various events. Similar to the
EXCEPT register, they provide a separate bit for each exception.
HumPRC
Series Extended Exception Flags Registers
TM
Volatile
Name
Description
Address
EEXFLAG2
0xCD
Byte 2 of the extended exception flags
EEXFLAG1
0xCE
Byte 1 of the extended exception flags
EEXFLAG0
0xCF
LSB of the extended exception flags
Figure 78: HumPRC
TM
Series Transceiver Extended Exception Code Registers
When an exception occurs, the associated bit is set in this register. If the
corresponding bit in the EEXMASK is set and EXMASK is zero, the EX
status line is set. Reading an EEXFLAG register does not clear the register.
Writing to an EEXFLAG register causes the register to be set to the
BIT_AND(current_value, new_value). This provides a way of clearing bits
that have been serviced without clearing a bit that has been set since the
flag register was read. This prevents a loss of notification of an exception.
Register bits can only be cleared, not set, from the write command though
some flags are also cleared internally. Unless otherwise noted, exceptions
are cleared by writing a zero to the corresponding register bit.
Flag EX_TXDONE is set when a data packet has been transmitted. If the
packet was sent with acknowledgement enabled, this flag indicates that
the acknowledgment has also been received.
Flag EX_RXWAIT is 1 when there are buffered incoming data bytes which
have not been sent to the UART. It is cleared by reading or discarding all
data bytes.
Flag EX_UNENCRYPT is 1 when a received packet is not encrypted. This
can only occur when SECOPT:EN_UNC=1.
Flag EX_SEQDEC is 1 when a received encrypted packet has a smaller
sequence number than the previously received packet. Possible causes
are an attempt to replay a previous message by an attacker, receiving a
message from a different transmitter or restarting the transmitter.
74
Flag EX_SEQSKIP is 1 when a received encrypted packet has a sequence
number that is more than one higher than the previously received packet.
Possible causes are an attempt to replay a previous message by an
attacker, receiving a message from a different transmitter or restarting the
transmitter.
HumPRC
TM
Series Transceiver Extended Exception Codes
Bit
Exception Name
EEXFLAG0 (0xCF)
0
EX_BUFOVFL
1
EX_RFOVFL
2
EX_WRITEREGFAILED Attempted write to register failed.
3
EX_NORFACK
4
EX_BADCRC
5
EX_BADHEADER
6
EX_BADSEQID
7
EX_BADFRAMETYPE
EEXFLAG1 (0xCE)
0
EX_TXDONE
1
EX_RXWAIT
2
EX_UNENCRYPT
3
EX_SEQDEC
4
EX_SEQSKIP
5
EX_JOIN
6 - 7
Reserved
EEXFLAG2 (0xCD)
0 - 7
Reserved
Figure 79: HumPRC
TM
Series Transceiver Extended Exception Codes
Description
Internal UART buffer overflowed.
Internal RF packet buffer overflowed.
Acknowledgement packet not received after
maximum number of retries.
Bad CRC detected on incoming packet.
Bad CRC detected in packet header.
Sequence ID was incorrect in ACK packet.
Unsupported frame type specified.
A data packet has been transmitted.
Received data bytes are waiting to be read.
Received packet was not encrypted. This can
only occur when SECOPT: EN_UNENC=1.
Received encrypted packet sequence number is
less than previous.
Received encrypted sequence number is more
than one higher the previous sequence number.
The Join Process has been started, which can
result in register changes and write lockouts.
75

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hum-868-prcHum-868-prc-casHum-868-prc-ufl

Table of Contents