i have read the hlp file and few thing grab my eyes...
1- in 'Predefined Globals and Constants' ...
... unsigned int is C type, not pascal one... integer is the good one ))All 8051 SFR registers are implicitly declared as global variables of volatile unsigned int.
2- in 'Accessing Individual Bits Of Variables'
Trisb is Pic register not 8051 one ...If you are familiar with a particular MCU, you can also access bits by name:
// Clear TRISB3
TRISBbits.B3 := 0;
3- you put Uart_init in 'build-in routine AND in library ... wich one is the good one ?
4- in 'Conversions Library' ...
If the function return string, how come the prototype return byte ? And the following exemple in the hlp file...ltrim
Prototype: function ltrim(var txt : string[20]) : byte;
Returns: Text without leading spaces.
Description: Trims the leading spaces from an array given with txt.
Its impossible to fit 'Message' in one byte ))) So i suppose the return type have to be : string[txt less leading space] ...var txt : string[9],
b : byte;
...
txt := ' Message';
b := ltrim(txt); // b equals Message
have a nice day