User's Manual

MOD090-HP
User’s Manual
PAGE 22
Technical support (650) 384-0000 www.avalanwireless.com
The getPacket command is used to read received data from the MOD090-HP.
The Data Ready line (pin 9) will be asserted when data is present in the receive
FIFO and will remain asserted until all data is read. Once the Data Ready line
has been asserted the host microcontroller has approximately 50ms until the data
becomes corrupted in a high trafc scenario. Obviously in UART mode, the host
microcontroller must be ready to receive data at any time.
getPacket SPI Mode:
0x0A
UART Mode:
N/A
b7 b6 b5 b4 b3 b2 b1 b0
Byte 1 - ID6 ID5 ID4 ID3 ID2 ID1 ID0
Byte 2 S7 S6 S5 S4 S3 S2 S1 S0
Byte 3 - - - - - S10 S9 S8
Byte 4 DATA7 DATA6 DATA5 DATA4 DATA3 DATA2 DATA1 DATA0
...
Byte 4 is repeated until all the data is received
ID0 to ID6 is the 7-bit integer Device ID of the Subscriber Unit the data was received
from (Access Point only, for a Subscriber Unit the data is undened).
S0 to S10 is the 11-bit integer size of the Data packet in bytes (number of data bytes
to read).
The setPacket command is used to submit data to the transmit FIFO for RF
transmission. The FIFO Full line (Pin 10) will be asserted if the transmit FIFO cannot
accept any more data. If the host microcontroller attempts to submit data while
the FIFO Full line is asserted then the Error Flag will also become asserted and the
data being submitted will not be entered into the FIFO. In UART mode, the host
microcontroller is responsible for avoiding overow.
setPacket SPI Mode:
0x8A
UART Mode:
0x89
b7 b6 b5 b4 b3 b2 b1 b0
Byte 1 BC ID6 ID5 ID4 ID3 ID2 ID1 ID0
Byte 2 S7 S6 S5 S4 S3 S2 S1 S0
Byte 3 - - - - - S10 S9 S8
Byte 4 DATA7 DATA6 DATA5 DATA4 DATA3 DATA2 DATA1 DATA0
...
Byte 4 is repeated until all the data is sent.
BC is the Broadcast Flag. BC = 1 means send the packet to all Subscriber Units.