DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

TRC105 데이터 시트보기 (PDF) - RF Monolithics, Inc

부품명
상세내역
제조사
TRC105
RFM
RF Monolithics, Inc RFM
TRC105 Datasheet PDF : 67 Pages
First Prev 21 22 23 24 25 26 27 28 29 30 Next Last
E x te n d e d V a r ia b le L e n g th P a c k e t F o r m a t, 6 5 to 1 2 7 B y te s
M a n c h e s te r E n c o d in g o r S c r a m b lin g A p p lie d to th e s e B y te s
P r e a m b le
1 to 4 B y te s
S ta rt P a tte rn
(N e tw o rk A d d re s s )
1 to 4 B y te s
L e n g th
B y te
O p tio n a l
N ode
A d d re s s
B y te
D a ta B y te s
CRC
2 B y te s
M a x im u m P a y lo a d B y te s = P K T C F G 1 C _ P k t_ le n [6 ..0 ]
T h e P r e a m b le , S ta r t P a tte r n a n d C R C b y te s a r e a d d e d to th e p a c k e t b y th e T R C 1 0 3 d u r in g tr a n s m it a n d r e m o v e d fr o m th e p a c k e t d u r in g r e c e iv e .
Figure 15
In extended variable length packet mode, the length of the rest of the payload is given by the first byte written to
the FIFO. The length byte itself is not included in this count. There are a number of ways to use the extended var-
iable length packet capability. The most common way is outlined below:
1. Set PKTCFG1C_Pkt_len[6..0] to a value between 65 (0x41) and 127 (0x7F). This sets the maximum allowed
payload in extended packet mode. Any received packet having a value in the length byte greater than this maxi-
mum is discarded.
2. Set PKTCFG1E_Pkt_mode[7] to 1 for variable length packet mode operation. Set the PKTCFG1E_ Pre-
amb_len[6..5] bits to 10 or 11 for a 3 or 4 byte preamble. Set the PKTCFG1E_CRC_En[3] bit to 1 to enable CRC
processing. Set the PKTCFG1E_Pkt_ADDRS_cmp[2..1] bits as required. Clear the PKTCFG1E_ CRC_stat[0]
bit by writing a 1 to it.
3. Set MCFG0C_FIFO_depth[7..6] bits to 11 for a 64 byte FIFO length.
4. Set the MCFG0C_FIFO_thresh[5..0] to approximately 31(0x1F). This sets the threshold to 32, near the mid
point of the FIFO. Provided the host microcontroller is relatively fast (usual case), this setting can be used for
monitoring the FIFO in both transmit and receive. If the host microcontroller is relatively slow, set the threshold to
a value lower than 31 for receive, and higher than 31 for transmit.
5. Set the IRQCFG0D_RX_IRQ1[5..4] bits to 11. This maps FIFO_Int_Rx interrupt to IRQ1, which trips when the
number of received bytes in the FIFO is equal to or greater than the value in MCFG05_FIFO_thresh. IRQ1 will
then signal received bytes must be retrieved. If received bytes are not retrieved before the FIFO completely fills,
data will be lost.
6. Set the IRQCFG0D_TX_IRQ0[3] bit to 0. This causes a transmission to start when the number of transmit
bytes in the FIFO is equal to or greater than the value in MCFG0C_FIFO_thresh. Also, the FIFO_Int_Tx interrupt
is mapped to IRQ0 in transmit mode, and is set when the number of bytes in the FIFO is equal to or less than the
value in MCFG0C_FIFO_thresh. IRQ0 will then signal more bytes can be added to the FIFO. If more message
bytes are not added in time, the transmission will cease prematurely and data will be lost. Likewise, if more bytes
are sent to the FIFO than it has room for, data will be lost.
7. When receiving an extended variable length packet, monitor IRQ1. When IRQ1 trips, clock out some of the re-
ceived bytes from the FIFO (leave at least one byte in the FIFO). Repeat the partial packet retrieval each time
IRQ1 triggers. The first byte received is the number of message bytes, and can be used to tell when the last mes-
sage byte has been retrieved. When it is determined that the remaining message bytes will not overflow the FIFO,
the IRQCFG0D_RX_IRQ1[5..4] bits can be set to 00, which maps CRC_OK to IRQ1. After the CRC is checked,
the final bytes can be read from the FIFO and the IRQCFG0D_RX_IRQ1[5..4] bits can be reset to 11 to track
www.RFM.com E-mail: info@rfm.com
© 2009-2012 by RF Monolithics, Inc.
Technical support +1.800.704.6079
Page 21 of 67
TRC105 - 10/16/12

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]