Common register group
It set the basic for the networking
It set the configuration such as interrupt, network information, ICMP, etc.
More...
Common register group
It set the basic for the networking
It set the configuration such as interrupt, network information, ICMP, etc.
- See also
- MR : Mode register.
-
GAR, SUBR, SHAR, SIPR
-
IR, Sn_IR, IMR : Interrupt.
-
RTR, RCR : Data retransmission.
-
PTIMER, PMAGIC : PPPoE.
Mode Register address(R/W)
MR is used for S/W reset, ping block mode, PPPoE mode and etc.
Each bit of MR defined as follows.
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RST | Reserved | WOL | PB | PPPoE | Reserved | AI | IND |
Definition at line 202 of file w5100.h.
Gateway IP Register address(R/W)
GAR configures the default gateway address.
Definition at line 212 of file w5100.h.
Subnet mask Register address(R/W)
SUBR configures the subnet mask address.
Definition at line 219 of file w5100.h.
Source MAC Register address(R/W)
SHAR configures the source hardware address.
Definition at line 226 of file w5100.h.
Source IP Register address(R/W)
SIPR configures the source IP address.
Definition at line 233 of file w5100.h.
Interrupt Register(R/W)
IR indicates the interrupt status. Each bit of IR will be still until the bit will be written to by the host. If IR is not equal to x00 INTn PIN is asserted to low until it is x00
Each bit of IR defined as follows.
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CONFLICT | UNREACH | PPPoE | Reserved | S3_INT | S2_INT | S1_INT | S0_INT |
Definition at line 256 of file w5100.h.
Socket Interrupt Mask Register(R/W)
Each bit of IMR corresponds to each bit of IR. When a bit of IMR is and the corresponding bit of IR is set, Interrupt will be issued.
Definition at line 264 of file w5100.h.
Timeout register address( 1 is 100us )(R/W)
RTR configures the retransmission timeout period. The unit of timeout period is 100us and the default of RTR is x07D0or 000 And so the default timeout period is 200ms(100us X 2000). During the time configured by RTR, W5100 waits for the peer response to the packet that is transmitted by Sn_CR (CONNECT, DISCON, CLOSE, SEND, SEND_MAC, SEND_KEEP command). If the peer does not respond within the RTR time, W5100 retransmits the packet or issues timeout.
Definition at line 274 of file w5100.h.
Retry count register(R/W)
RCR configures the number of time of retransmission. When retransmission occurs as many as ref RCR+1 Timeout interrupt is issued (Sn_IR_TIMEOUT = '1').
Definition at line 282 of file w5100.h.
PPP LCP Request Timer register in PPPoE mode(R)
PATR notifies authentication method that has been agreed at the connection with PPPoE Server. W5100 supports two types of Authentication method - PAP and CHAP.
Definition at line 293 of file w5100.h.
PPP LCP Request Timer register in PPPoE mode(R)
PTIMER configures the time for sending LCP echo request. The unit of time is 25ms.
Definition at line 301 of file w5100.h.
PPP LCP Magic number register in PPPoE mode(R)
PMAGIC configures the 4bytes magic number to be used in LCP negotiation.
Definition at line 308 of file w5100.h.