Zur Übersicht - INFO - Neueste 50 Beiträge - Neuer Beitrag - Suchen - FAQ - Zum CC1-Forum - Zum CC-Pro-Forum

Re: Free C-Compiler for CC2 Kategorie: Progr. Assembler, TaskingTools, OS (von Alexander Bornschlegl - 15.03.2002 13:55)
Als Antwort auf Free C-Compiler for CC2 von Eric Hospel - 10.03.2002 14:05

> 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 idea is great !!!

I want to build a sort of very fast data logger or a primitive oszilloscope with the CC2.

I'm still trying to find a way to sample one (or more?) channel of the ADC relativley fast, i.e. at least every 0.1 ms, for 50 ms and put the value into an array.
With C2 and the VM I just can sample about every 0.6 ms. Do you think, this can be achived by a compiled C program ?
What speed might be possible ?

So if I understand the priciple the right way, it should be possible to write a C2 dummy function, which calls the compiled function.
This function reads the values from the ADC an puts them somewhere. Is it possible to access this data from a c2 program ?

Has anybody already written a C function which acesses the ADC ports ?

 

Thanks in advance.

Alex


    Antwort schreiben


Antworten:

Re: Free C-Compiler for CC2 (von Eric Hospel - 15.03.2002 15:56)