PoE

Programming - C on mCAT realtime core

TLCS-900C
Action
What happens?
Result  Data type
type
C-source code using your favorite editor
.c
compile
the C text file into assembly code
.s
assemble
assembly source into position independent object code
.Ink
link
the relocatable object code with mCAT header files into machine code to run on a specific address in the TLCS900 target board
.abs
convert
absolute machine code into HEX code for ASCII download
.shx
download
".shx"-file to TLCS900 monitor/mCAT via RS232 serial line
-(RAM/ EPROM)

 

 

To facilitate software development, nearly all ELZET80-boards use a TLCS900-family microcontroller.

 

To program this processor in the "C" language from your MS-DOS-PC requires a so called "Cross- Compiler" , i.e. one that runs on an 80x86 type processor (your PC) and produces code for a TLCS900 (your industrial hardware).

 

To encourage the use of the TLCS900, TOSHIBA offers for free a version of the ANSI-C-Compiler with limitation of 3000 lines. For the professional user there is also a full version of the ANSI-C at an attractive price.

 

To write a program to run on for instance the TSM-CPU900 under mCAT, it requires the steps in the table at the left side. The shaded section is covered by the tools in TOSHIBA´s C-Compiler packages, a downloader is part of mCAT and of most standard terminal programs.

 

ANSI-C-Cross-Compiler

 

  • Optimizing ANSI-Cross-C-Compiler for the TLCS900 running under MS-DOS.
  • Supports 64/80bit floating point operations, #pragmas for stack checking, argument passing, and loop optimization.
  • Special functions are provided for interrupt processing and immediate assignments to processor registers.