THE DESIGN CYCLE
the InitializeSystem function.
POWERING UP TCP/IP
questions arise. Meanwhile, gouge another notch into the
handle of your Design Cycle gun. NV
■ Fred Eady can be contacted via email at firstname.lastname@example.org.
Like the MCHPFSUSB Framework, all we really need
to do to get the TCP/IP stack running is integrate it
correctly into our MPLAB project configuration. Again,
you can follow my lead on the TCP/IP stack configuration
as it too is part of the same MPLAB project configuration
as the MCHPFSUSB Framework.
The MASTERs Demo application operates in an
identical fashion to the Ethernet MINI application you saw
in the September ‘09 issue. We have simply replaced the
low pin count PIC USB front end and the MCU portion
of the PIC18F67J60 with a 16-bit PIC24FJ256GB110.
The only operational change you will have to consider is
that the PIC24FJ256GB110’s USB2TCPBRIDGE_PORT is
set to 9762 instead of 9761. The new USB2TCPBRIDGE
_PORT value for this month’s project can be found in the
The MASTERS_Demo.c file contains a function I
assembled called USB2TCPBridge Task which has its
roots in the native UART2TCPBridge Task application. The
USB2TCPBridge Task is based on the use of the Berekely
Sockets APIs, which are part of the Microchip TCP/IP
stack package. The source code is heavily commented
and you should be able to follow the action without a
lot of head scratching.
WHAT HAVE WE DONE?
On the hardware front, we have loaded an Explorer
16 Development Board with a USB-capable
PIC24FJ256GB110 16-bit microcontroller that is driving a
Fast 100 Mbps Ethernet PICtail Plus Daughter Board.
Firmware in your hands following
your download operation includes an
application that transfers data between
a Tera Term Pro session on the USB
side and a Telnet session on the
Ethernet side. You also have a
working C source code template and
MPLAB project configuration that you
can use to bring up your own USB
and TCP/IP applications.
Finally, you have me if any
Microchip TCP/IP Stack
Microchip USB PICtail Plus
Fast 100 Mbps Ethernet PICtail Plus
Explorer 16 Development Board
October 2009 65