---
title: "W5300 Receive problem"
url: "https://maker.wiznet.io/forum/10385"
markdown_url: "https://maker.wiznet.io/forum/10385/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "hiteshmandaliya"
created: "2014-07-19T19:22:37+09:00"
last_activity: "2017-05-04T08:33:28+09:00"
language: "en"
views: 958
replies: 1
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# W5300 Receive problem

## Question

Asked by hiteshmandaliya on 2014-07-19 in Ethernet Chips.

Hi, I am using W5300 as TCP server, i could send data from W5300 to my laptop running labview client application successfully. I am also able to send data from PC to TCP server(W5300) only when no of bytes from PC is even number…if i send odd no of bytes the Sn_RX_RSR register does not get updated.

one way communication is perfect (Chip to PC) while for another side(PC to chip) is working only for even no of bytes and not for odd no of bytes.

I call my Receive Sn RX FIFOR register after contineous polling Sn RX RSR register and if the Sn RX RSR reg value is not zero then read the Sn RX FIFOR0 and then Sn RX FIFO1 in pair.

i also make provision for reading one extra byte if the Sn RX RSR reg. has odd number value but still Sn SRS does not get upated for odd number of bytes sent from PC.

Can any body help to solve/fix up the problem.

I am using the 8 bit interface with Silab MCU C8051F340 and using the mcu’s GPIO as external bus to interface with W5300.

## Replies

### Reply 1 by hiteshmandaliya, 2014-07-28

ThANK YOU,
But it is no where mentioned that when we set align bit= 1, it will not process any odd number bytes received.
In the datasheet the example of receiving 5 bytes is shown which takes no of byte info from Packet data itself.

I am using my own written code to acces various registers of W5300 and not the 8 bit driver provided by wiznet as my controller does not have external bus inteface so i use GPIO to acces the Wiznet bus.

Thank you , i will again look in to the wiznet driver for which you have sent a link.

Hitesh

---

Source: https://maker.wiznet.io/forum/10385
