Page 1 of 1

TCPIP boilerplate not working for 18f4455

Posted: Sun Jan 31, 2010 1:49 am
by kdoney34711
Code shows up as
//read W3100A's TR (or TA) pointer
if (ssr <= 0x0E)
{
//TCP mode, so need "random" pointer value
MAC_PTR_VAL[3] = 0x12;
MAC_PTR_VAL[2] = 0x34;
MAC_PTR_VAL[1] = TMR0; <-- gives error since 4455 has tmr0l and h
MAC_PTR_VAL[0] = ~TMR0;<-- "

This works

//read W3100A's TR (or TA) pointer
if (ssr <= 0x0E)
{
//TCP mode, so need "random" pointer value
MAC_PTR_VAL[3] = 0x12;
MAC_PTR_VAL[2] = 0x34;
MAC_PTR_VAL[1] = TMR0L;
MAC_PTR_VAL[0] = ~TMR0L;

Re: TCPIP boilerplate not working for 18f4455

Posted: Mon Feb 01, 2010 10:01 am
by Steve
Please search the forum for "tmr0l" for the answer.

Re: TCPIP boilerplate not working for 18f4455

Posted: Mon Feb 01, 2010 3:51 pm
by kdoney34711
The solution offered of entering #define TMR0 tmr0l in custom code doesn't work on the examples since as soon as I load the program it crashes but it does work with new code.