Für dieses Forum muß Javascript im Browser aktiviert werden!
Kommentar: Einfügen von HTML im Kommentar: Link einfügen: <a href="LINKURL" target="_blank">LINKTITEL</a> Bild einfügen: <img src="BILDURL"> Text formatieren: <b>fetter Text</b> <i>kursiver Text</i> <u>unterstrichener Text</u> Kombinationen sind auch möglich z.B.: <b><i>fetter & kursiver Text</i></b> C2 Quellcode formatieren: <code>Quellcode</code> ASM Quellcode formatieren: <asm>Quellcode</asm> (Innerhalb eines Quellcodeabschnitts ist kein html möglich.) Wichtig: Bitte mache Zeilenumbrüche, bevor Du am rechten Rand des Eingabefeldes ankommst ! > For all of you who want to program the C-Control II in C, on the site of Hightec (www.hightec-rt.com) you can download a free Gnu C-compiler package for the C16x. This compiler is not crippled like the Tasking compiler on the Conrad CD. It generates code for the large memory model needed if you want to work with more than one segment. However, no C libray is supplied for the large memory model. This is not a big problem since you can write your own library functions ( I've already written string manipulation functions and 32-bit divide functions). > > I've converted my application from C2 to C and the speed difference is HUGE. The C-code is loaded in segment 3 and called from a C2 dummy progam. I've rewritten the C2 functions I needed in C. The following C2 functions are available: > > - I2C access (output only for the moment), > - Internal LCD, > - ADC converters, > - Digital I/O, > - PLM outputs, > - Beep, > - Serial port (output only for the moment), > - 1 ms timer. > > Still to to: > - Add interrupt support, > - rewrite all C2 library functions to C, > - floating point routines (if needed), > - Adapt (replace) the OS to use more (all) segments for c-code. > > Please note there are a few drawbacks: no multi tasking (-yet-) and you need to be familiar with C and makefiles. So if you don't need (much) more speed you might want to stick with the C2 language. But I you need the full speed of the C164 with using assembly code thismight be very useful. > > Maybe Andre H. can reserve some room on this site to collect new functions for use with > the C-compiler. If there any interrest I can mail the files (makefile & .bat file) I use to this forum.