| Electronic Components Datasheet Search |
|
CS8920A Datasheet(PDF) 94 Page - Cirrus Logic |
|
|
|||||||||||||||||||||||||||||
CS8920A Datasheet(HTML) 94 Page - Cirrus Logic |
|
94 / 144 page ![]() • The BufferCRC bit (Register 3, RxCFG, Bit B) is set causing the 4-byte CRC to be buff- ered with the rest of the receive data. • The RxOKA bit (Register 5, RxCTL, Bit 8) is set, causing the CS8920A to accept good frames (a good frame is one with legal length and valid CRC). • The RxOKiE bit (Register 3, RxCFG, Bit 8) is set, causing an interrupt to be generated whenever a good frame is received. Then the transfer to the host would proceed as follows: 1. The CS8920A generates an RxOK interrupt to the host to signal the arrival of a good frame. 2. The host reads the ISQ (PacketPage base + 0120h) to assess the status of the receive frame and sees the contents of the RxEvent register (Register 4) with the RxOK bit (Bit 8) set. 3. The host reads the receive frame’s length from the RxLength register (PacketPage base + 0402h). 4. The host reads the frame data by executing 32 consecutive MOV instructions from Packet- Page base + 0404h. The memory map of the 64-byte frame is given in Table 5.5. 5.2.9 Receive Frame Byte Counter The receive frame byte counter describes the number of bytes received for the current frame. The counter is incremented in real time as bytes are received from the Ethernet. The byte counter can be used by the driver to determine how many bytes are available for reading out of the CS8920A. Maximum Ethernet throughput can be achieved by using I/O or memory modes, and by dedicating the CPU to reading this counter, and using the count to read the frame out of the CS8920A at the same time it is being received by the CS8920A from the Ethernet (parallel frame-reception and frame-read-out tasks). The byte count register resides at PacketPage base + 50h. Following an RxDest or Rx128 interrupt, the register contains the number of bytes which are available to be read by the CPU. When the end of frame is reached, the count contains the final count value for the frame, including the allow- ance for the BufferCRC option. When this final count is read by the CPU, the count register is set to zero. Therefore, to read a complete frame using the byte count register, the register can be read and the data moved until a count of zero is detected. The RxEvent register can then be read to determine the final frame status. The sequence is as follows: 1. At the start of a frame, the byte counter matches the incoming character counter. 2. At the end of the frame, the final count includ- ing the allowance for the CRC (if the Memory Space Word Offset Description of Data Stored in On- chip RAM 0400h RxStatus Register (the host may skip reading 0400h since RxEvent was read from the ISQ.) 0402h RxLength Register (In this example, the length is 40h bytes. The frame starts at 0404h, and runs through 0443h.) 0404h to 0409h 6-byte Destination Address. 040Ah to 040Fh 6-byte Source Address. 0410h to 011h 2-byte Length or Type Field. 0412h to 043Fh 46 bytes of data. 0440h CRC, bytes 1 and 2 0442h CRC, bytes 3 and 4 Table 5.5. Example Memory Map CS8920A 94 DS238PP2 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |