12-21-2023, 02:22 AM
Ethernet (LAN8720) I/O define:
#define ETH_ADDR 0
#define ETH_POWER_PIN -1
#define ETH_MDC_PIN 23
#define ETH_MDIO_PIN 18
#define ETH_TYPE ETH_PHY_LAN8720
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
IIC BUS-a: (U7-U14, SSD1306 display)
SDA-1:15
SCL-1:4
i2c address of chips:
U7:0x40
U8:0x41
U9:0x42
U10:0x43
U11:0x44
U12:0x45
U13:0x46
U14:0x47
SSD1306: 0x3c
----------------------------------
IIC BUS-b: (U15-U22)
SDA-1:5
SCL-1:16
i2c address of chips:
U15:0x40
U16:0x41
U17:0x42
U18:0x43
U19:0x44
U20:0x45
U21:0x46
U22:0x47
----------------------------------
RS485:
RXD: 32
TXD: 33
4G:
RXD:14
TXD:13
#define ETH_ADDR 0
#define ETH_POWER_PIN -1
#define ETH_MDC_PIN 23
#define ETH_MDIO_PIN 18
#define ETH_TYPE ETH_PHY_LAN8720
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
IIC BUS-a: (U7-U14, SSD1306 display)
SDA-1:15
SCL-1:4
i2c address of chips:
U7:0x40
U8:0x41
U9:0x42
U10:0x43
U11:0x44
U12:0x45
U13:0x46
U14:0x47
SSD1306: 0x3c
----------------------------------
IIC BUS-b: (U15-U22)
SDA-1:5
SCL-1:16
i2c address of chips:
U15:0x40
U16:0x41
U17:0x42
U18:0x43
U19:0x44
U20:0x45
U21:0x46
U22:0x47
----------------------------------
RS485:
RXD: 32
TXD: 33
4G:
RXD:14
TXD:13