I read here that some of you got a webserver running with a UM9008 based nic.
Now i'm hoping that someone still have there code (polling mode), and willing to share this with the rest of the world
Hope to hear from you soon.
Code: Alles auswählen
void WriteRTL (unsigned char rtl_addr,unsigned char rtl_data)
{
AddrRTL(rtl_addr);
RTL_WR_OFF();
DATA_PORT_RLT_WRITE = rtl_data;
DATA_DIR_RLT = OUTPUT;
while (!RTL_READY())
;
RTL_WR_ON();
DATA_DIR_RLT = INPUT;
}
uint8_t ReadRTL (unsigned char rtl_addr)
{
AddrRTL(rtl_addr);
DATA_DIR_RLT = INPUT;
RTL_RD_OFF();
nop(); nop();
while (!RTL_READY())
;
rtl_addr = DATA_PORT_RLT_READ;
RTL_RD_ON();
return (rtl_addr);
}