
AN3346| Application Note
Maxim/Dallas > App Notes > MICROCONTROLLERS Keywords: SDCC, DS80C400, TINI, sdcc, TINI C, ds80c400, tini, c compiler, tini c
Sep 09, 2004
APPLICATION NOTE 3346
Using the SDCC Compiler for the DS80C400
The DS80C400 contains a ROM that provides a network stack, memory manager, and process scheduler that is flexible enough to be used from applications written in Java, C and 8051 assembly. SDCC provides a free, opensource compiler for 8051 devices that is compatible with the 24-bit addressing mode of the DS80C400. Complicated applications written in C can be easily built using the features of the DS80C400 ROM with the assistance of libraries provided by Dallas Semiconductor. These libraries, along with documentation and example code, are available for download. This application note describes how to use the SDCC tools to build applications for the DS80C400. It begins with a HelloWorld application, and then demonstrates how to make use of the ROM libraries to implement a simple HTTP Server. The applications here are written and built for use with the TINIm400 reference module, and must be modified for designs with other memory configurations. Also See:
q q
Using the IAR Compiler for the DS80C400 App Note 613: Using the Keil C Compiler for the DS80C400
Introduction
The DS80C400 contains a ROM that provides a network stack, memory manager, and process scheduler that is flexible enough to be used from applications written in Java, C and 8051 assembly. SDCC provides a free, opensource compiler for 8051 devices that is compatible with the 24-bit addressing mode of the DS80C400. Complicated applications written in C can be easily built using the features of the DS80C400 ROM with the assistance of libraries provided by Dallas Semiconductor. These libraries, along with documentation and example code, are available for download. This application note describes how to use the SDCC tools to build applications for the DS80C400. It begins with a HelloWorld application, and then demonstrates how to make use of the ROM libraries to implement a simple HTTP Server. The applications here are written and built for use with the TINIm400 reference module, and must be modified for designs with other memory configurations.
Getting Started with the SDCC Compiler
Follow these instructions to complete your first C application for the DS80C400 using the SDCC Compiler: 1. Install SDCC compiler1 r Download the installation file for the latest SDCC compiler version from SDCC website. r Follow the instructions of setup file (possibly sdcc/doc/INSTALL.txt). 2. Create a new file "main.c" using your favorite text editor. Write the following in that file: #include
AN3346 Application Note maxim Download PDF
Add this permalink to your bookmarks for future download of AN3346 ApplicationNote
Permalink: http://application.emcelettronica.com/maxim/AN3346