Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by slacker@Jun 28 2006, 10:28 AM take 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
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16475)</div> --- Quote End --- Thanks slacker. I changed the register mask (PHY CONTROL register) in the header file altera_avalon_lan91c111_regs.h and set it for 10Mbps FDX mode. But it didn't work and gave an error 'Failure in initialiazing lwip_devices-init' while running the rogram. Can you give a detailed answer how I can set the speed? Sincerely,