The ANSI-C-library makes it very easy to use µC- resp. µP- boards as in almost any way complex controllers or plant. The whole library was dynamically programmed, so it is limited only by the memory capacity of your board.
The library contains the following blocks:
All blocks are available in 8, 16 and 32 bit resolution. To program a block just initialize and call it. The separation of these two steps results in an optimal automatic control block after the first step. Its code is fast and minimal.
Even if the linker doesn’t link only the necessary code, the generated code will be minimal because each block is saved separately. Therefore the user can absolutely be sure that only the functions needed are linked. Nevertheless it is sufficient to include one single header file.
The following scheme of a C-source code uses the ANSI-C library.
...
#include<redef.h>
#define PORT1 (*(char*)0x1000)
/* 0x1000 sei die Adresse des Kanals der Stellgröße (Ausgang) */
PID8 Regler;
/* global da mittels Interruptverarbeitung gearbeitet wird. */
static interrupt void Regler ()
{ disable_interrupt ();
PORT2=PID8 (Regler, 30, PORT1)
enable_interrupt();
}
void main (void)
{ char i;
disable_interrupt();
Regler=Init_PID8 (Parameterliste)
enable_interrupt();
for (i=0;i;wait_for_interrupt());
}
Single user licence Industry: | EUR | 320,00 |