|
Message
From: Virendra<virendradhavale@y...>
Date: Wed Sep 1 04:14:35 CEST 2004
Subject: [usb] CRC in zero ln. data pkt.???
Hey Gayathri, Thanx a lot. U've cleared a lot of my doubts rather all because u've answered all the three questions. I m more happy because even I was thinking of the same very thing, that of sending all zeros as 16 bit CRC for zero length data packet and that itself is the fact! As for my case, I need not worry about the bit stuffing and NRZI encoding. There is a standard UTM Interface by Intel that sits between my design and the host which does this bit stuffing and NRZI encoding. Well then thanx again. It is really nice to interact with people like u all. I am learning a lot! Regards. Virendra.
gayathri seshadri <gaysesh@h...> wrote: Hi Virendra,
Any data packet, irrespective of whether it is sent by host or device, and again irrespective, whether it is zero/non-zero length packet should bear the CRC (16-bit) field.
Cuming now to ur question of what would be the crc for the zero length packet, as u say, there would be no data on which the crc is to be calculated. Hence, (i hope u know), the crc registers are in their default values(preset to 1). And since, crc is normally negated and sent, it will be all zeroes. This is the raw crc data. however, this data needs to be bitstuffed and nrzi encoded.
As such, the host and the device have the same crc values when the crc is calculated on the same packet. This holds gud for the zero length packet also.
Hope this helps,
Regards, Gayathri Seshadri. --------------------------------- Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. -------------- next part -------------- An HTML attachment was scrubbed... URL: attachment.htm
|
 |