PIC32MX7XX Config

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
PIC32MX7XX Config

To use the PIC32MX795 in your project, include the files ETHPIC32IntMac.c and ETHPIC32ExtPhy.c in your project. You’ll also have to add a specific PHY implementation file (by default ETHPIC32ExtPhyDP83848.c is provided) depending on your actual external PHY selection. 

Update the following definitions in HardwareProfile.h:

Macro 
Purpose 
Sample Value 
PHY_RMII 
Define this macro if the external PHY runs in RMII mode. Comment it out if you’re using an MII PHY. 
PHY_CONFIG_ALTERNATE 
Define this symbol if the PIC32MX7XX uses the alternate configuration pins to connect to the PHY. Comment it out for the default configuration pins. 
PHY_ADDRESS 
Update with the MIIM address of the external PHY you are using (the address on which the PHY responds to MIIM transactions. See the PHY datasheet). 
0x1 

Update the following definitions in TCPIPConfig.h:

Macro 
Purpose 
Sample Value 
ETH_CFG_LINK 
Set to 0 to use the default connection characteristics (depends on the selected PHY). Set to 1 to configure the Ethernet link to the following specific parameters. Auto-negotiation will always be enabled if supported by the PHY. 
ETH_CFG_AUTO 
Set to 1 to use auto negotiation. Strongly recommended. 
ETH_CFG_10 
Use/advertise 10 Mbps capability. 
ETH_CFG_100 
Use/advertise 100 Mbps capability. 
ETH_CFG_HDUPLEX 
Use/advertise half duplex capability. 
ETH_CFG_FDUPLEX 
Use/advertise full duplex capability. 
ETH_CFG_AUTO_MDIX 
Use/advertise auto MDIX capability (effective only when ETH_CFG_AUTO is enabled). 
ETH_CFG_SWAP_MDIX 
Use swapped MDIX if defined. Otherwise, use normal MDIX. 
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.