professional documents
home
Profile
Upload
docsters
Blogs
Upload
about me
contact me
user photo
Craciun Ionela
Webmaster Assistent
submit clear
Acrobat PDF

TCPIP stack for FLEX center doc

technology > hw/net

This software implements a TCPIP stack demo usable with FLEX boards. It enables communications with the board over an ethernet cable, using a variety of protocols. Here are some of the protocols included in the demo: DHCP (Dynamic Host Configuration Protocol), FTP (File Transfer Protocol), HTTP (Hypertext Transfer Protocol), SMTP (Simple Mail Transfer Protocol), SNMP (Simple Network Management Protocol), Secure NTP (Network Time Protocol), Telnet.

TCP/IP stack for FLEX http://dev.emcelettronica.com/print/51819 Your Electronics Open Source (http://dev.emcelettronica.com) Home > My blog > Content TCP/IP stack for FLEX By Ionela Created 26/06/2008 - 11:42 BLOG Ethernet Firmware Microcontrollers Picmicro This software implements a TCP/IP stack [1] demo usable with FLEX boards. It enables communications with the board over an ethernet cable, using a variety of protocols. Here are some of the protocols included in the demo: DHCP (Dynamic Host Configuration Protocol), FTP (File Transfer Protocol), HTTP (Hypertext Transfer Protocol), SMTP (Simple Mail Transfer Protocol), SNMP (Simple Network Management Protocol), Secure NTP (Network Time Protocol), Telnet. The demo was produced adapting the Microchip Technology Inc. TCP/IP Stack (version 4.18) and the related application notes. This is the list of hardware components needed to use the demo: * FLEX board [2] (light or full) * FLEX Multics daugtherboard * FLEX Ethernet plug-in module * FLEX RS232 plug-in module (optional) // // PIC18 Interrupt Service Routines // // NOTE: Several PICs, including the PIC18F4620 revision A3 have a RETFIE FAST/MOVFF bug // The interruptlow keyword is used to work around the bug when using C18 #if defined(__18CXX) #if defined(HI_TECH_C) void interrupt low_priority LowISR(void) #else #pragma interruptlow LowISR void LowISR(void) #endif { TickUpdate(); } #if defined(HI_TECH_C) void interrupt HighISR(void) #else #pragma interruptlow HighISR void HighISR(void) #endif { #if defined(STACK_USE_UART2TCP_BRIDGE) UART2TCPBridgeISR(); #endif } #if !defined(HI_TECH_C) #pragma code lowVector=0x18 void LowVector(void){_asm goto LowISR _endasm} #pragma code highVector=0x8 void HighVector(void){_asm goto HighISR _endasm} #pragma code // Return to default code section #endif #elif defined(__C30__) // void _ISR _AddressError(void) // { // Nop(); // Nop(); // Nop(); // } #endif // End of PIC18 ISRs // // Main application entry point. // #ifdef __C30__ int main(void) #else void main(void) 1 din 2 27.06.2008 10:30 TCP/IP stack for FLEX http://dev.emcelettronica.com/print/51819 #endif { static TICK t = 0; BYTE i; // Initialize any application specific hardware. InitializeBoard(); #ifdef USE_LCD // Initialize and display the stack version on the LCD LCDInit(); for(i = 0; i < 100; i++) DelayMs(1); strcpypgm2ram((char*)LCDText, "TCPStack " VERSION " " " LCDUpdate(); #endif // Initialize all stack related components. // Following steps must be performed for all applications using // the Microchip TCP/IP Stack. TickInit(); #if defined(STACK_USE_MPFS) || defined(STACK_USE_MPFS2) // Initialize Microchip File System module MPFSInit(); #endif // Initialize Stack and application related NV variables into AppConfig. InitAppConfig(); // Initiates board setup process if button is depressed // on startup // --- Changed for Flex board --// --- Set to 1 to enable config menĂ¹ on UART --//if(BUTTON0_IO == 0u) if (0) { #if defined(MPFS_USE_EEPROM) && (defined(STACK_USE_MPFS) || defined(STACK_USE_MPFS2)) // Invalidate the EEPROM contents if BUTTON0 is held down for more than 4 seconds TICK StartTime = TickGet(); while(BUTTON0_IO == 0u) { if(TickGet() - StartTime > 4*TICK_SECOND) { XEEBeginWrite(0x0000); XEEWrite(0xFF); XEEEndWrite(); #if defined(STACK_USE_UART) putrsUART("\r\n\r\nBUTTON0 held for more than 4 seconds. EEPROM contents erased.\r\n\r\n"); #endif LED0_TRIS = 0; LED1_TRIS = 0; LED2_TRIS = 0; LED3_TRIS = 0; LED0_IO = 1; LED1_IO = 1; LED2_IO = 1; LED3_IO = 1; while((LONG)(TickGet() - StartTime) <= (LONG)(9*TICK_SECOND/2)); Reset(); break; } } #endif #if defined(STACK_USE_UART) SetConfig(); #endif } "); For more informations click here [3]. Trademarks Source URL: http://dev.emcelettronica.com/tcpip-stack-flex Links: [1] http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1489 [2] http://dev.emcelettronica.com/Flex [3] http://www.evidence.eu.com/content/view/238/266/ 2 din 2 27.06.2008 10:30
rate this doc
email this doc
embed this doc
add to folder
digg reddit stumble delicious
flag this doc
95
5
not rated
0
6/27/2008
English
search termpage on Googletimes searched
Preview

FLEX: Image acquisition firmware for Video Smart Sensor

ionela 6/22/2008 | 124 | 0 | 0 | technology
Preview

flex_classlibrary_Poster

alon 1/9/2008 | 357 | 16 | 0 | technology
Preview

FLEX Board USB connection

ionela 7/2/2008 | 75 | 2 | 0 | technology
Preview

flex-es-2.5

carloselmonodragon 6/19/2008 | 55 | 2 | 0 | technology
Preview

Wireless Communication using FLEX and ERIKA Enterprise Basic

ionela 9/5/2008 | 12 | 0 | 0 | technology
Preview

TCP/IP Sleuthing - Troubleshooting your TCP/IP Using Your Toolbox by Global Knowledge

emartin74 3/17/2008 | 130 | 0 | 0 | technology
Preview

DC Motor Servo control using FLEX with ScilabScicos

ionela 8/15/2008 | 42 | 0 | 0 | technology
Preview

Flex UI Design For Cairngorm

StarBoy 11/7/2007 | 630 | 27 | 0 | creative
Preview

Using Flex Builder 2

anonymous 2/1/2008 | 259 | 3 | 0 | technology
Preview

Web Development with Flex

CoolPresentations 4/14/2008 | 219 | 9 | 0 | educational
Preview

Ethanol and Flex Fuel Vehicles

RG 4/28/2008 | 257 | 5 | 0 | educational
Preview

Controlling an Inverted Pendulum with a Microchip Microcontroller

ionela 9/7/2008 | 9 | 0 | 0 | technology
Preview

Ball control on a touch screen (using a Microchip microcontroller)

ionela 9/6/2008 | 19 | 0 | 0 | technology
Preview

Wireless Communication using FLEX and ERIKA Enterprise Basic

ionela 9/5/2008 | 12 | 0 | 0 | technology
Preview

GPS receiver design

ionela 9/4/2008 | 18 | 1 | 0 | technology
Preview

DC Motor Servo control using FLEX with ScilabScicos

ionela 8/15/2008 | 42 | 0 | 0 | technology
Preview

Open Source Zigbee Stack

ionela 8/8/2008 | 69 | 1 | 0 | technology
Preview

Root Cause of Motor Over Run

ionela 7/28/2008 | 35 | 2 | 0 | technology
Preview

Good news for all diabetes sufferers

ionela 7/25/2008 | 81 | 2 | 0 | technology
Preview

VHDL (I)

ionela 7/16/2008 | 50 | 0 | 0 | technology
Preview

Connect A Local Device to A Remote Server

ionela 7/15/2008 | 67 | 11 | 0 | technology
tcp/ip flex application note11
tcp/ip stack 411
microchip tcp stack board or pcb or kit21
flex ethernet demo11
 
review this doc