W5100 Learning: Register Description

Register description

1 general purpose register

MR (Mode Register) [R/W] [0x0000] [0x00]

This register is used for software reset, ping blocking mode, PPPoE mode, and indirect bus interface.

W5100 Learning: Register Description

GWR (Gateway IP Address Register) [R/W] [0x0001 – 0x0004] [0x00]

This register sets the default gateway address.

Example) If the gateway address is "192.168.0.1", then

SUBR (Subnet Mask Register) [R/W] [0x0005 – 0x0008] [0x00]

This register is used to set the subnet mask value.

Example) The subnet mask is "255.255.255.0", then

SHAR (Local Physical Address Register) [R/W] [0x0009 – 0x000E] [0x00]

This register is designed for the native physical address.

Example) The physical address of the local machine is "00.08.DC.01.02.03", then

SIPR (Local IP Address Register) [R/W] [0x000F – 0x0012] [0x00]

This register sets the local IP address.

Example) If the local IP address is "192.168.0.3", then

IR (interrupt register) [R] [0x0015] [0x00]

The CPU obtains the source of the interrupt by accessing this register.

Any interrupt can be masked in the Interrupt Register (IMR). When any of the unmasked interrupt bits is "1", the /INT signal will remain low. /INT will resume high only when all unmasked interrupt bits are zero.

W5100 Learning: Register Description

IMR (Interrupt Mask Register) [R/W] [0x0016] [0x00]

The interrupt mask register is used to mask the interrupt source. Each interrupt mask bit corresponds to a bit in the interrupt register (IR2). If the interrupt mask bit is set to "1", the interrupt will be generated whenever the position corresponding to IR2 is "1". When the mask bit in the IMR is cleared, no interrupt will be generated even if the corresponding IR2 interrupt bit is set to "1".

W5100 Learning: Register Description

RTR (Retransmission Time Register) [R/W] [0x0017 – 0x0018] [0x07D0]

This register sets the value of the timeout. Each unit value represents 100us. The initial value is set to 2000 (0x07D0), which is equal to 200 milliseconds.

Example) Set 400ms, should be set to 4000 (0x0FA0)

Battery Switch Cabinet

China Changing Cabinet,Battery Cabinet,Battery Changer Cabinet,Battery Switch Cabinet, we offered that you can trust. Welcome to do business with us.

Changing Cabinet,Battery Cabinet,Battery Changer Cabinet,Battery Switch Cabinet

Shenzhen Hongjiali New Energy Co., Ltd. , https://www.hjlcharger.com

Posted on