Clock Frequency

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
Clock Frequency

Many TCP/IP operations are time-dependant. By specifying the oscillator frequency that you're using in your application for the stack, you can enable automatic handling of these operations. To set hte clock value, substitute your oscillator frequency (in Hertz) for the value in the following macro in HardwareProfile.h:

#define GetSystemClock()    xxxxxxxxxxxxxxx

There are also two other clock macros. GetInstructionClock() and GetPeripheralClock() provide frequency values for the instruction clock and peripheral clock in your microcontroller. These values will usually be set as a fraction of the system clock (i.e. GetInstructionClock() would be defines as (GetSystemClock() / 2) for PIC24F processors).

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.