TCPIP boilerplate not working for 18f4455

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
kdoney34711
Posts: 25
Joined: Tue Sep 29, 2009 1:07 pm
Has thanked: 1 time

TCPIP boilerplate not working for 18f4455

Post 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;

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: TCPIP boilerplate not working for 18f4455

Post by Steve »

Please search the forum for "tmr0l" for the answer.

kdoney34711
Posts: 25
Joined: Tue Sep 29, 2009 1:07 pm
Has thanked: 1 time

Re: TCPIP boilerplate not working for 18f4455

Post 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.

Post Reply