Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow to specify 10Mbps and 100Mbps
Hi all, How and where can I specify which LAN connection I want to use: 10Mbps or 100 Mbps; full duplex or half duplex? I am using NIOS II 5.1 'simple socket server example' on NIOS II ...
Altera_Forum
Honored Contributor
20 years agoTake a look at the existing code (which sets the PHY to auto negotiate) and modify it. I've already mentioned which file it's in... <components>/altera_avalon_lan91c111/UCOSII/src/altera_avalon_lan91c111.c
There's a section which starts with the comment/* Start the Auto Negotiation process */
/* Try to negotiate, we have a go at this five times if it fails */ You need to modify the code, in this section, to set the PHY to 10/Full. It appears that all of the masks that you'll need to do this are already provided...in the <components>/altera_avalon_lan91c111/inc/altera_avalon_lan91c111.h header file. Best of luck! - slacker