Hi,
 
Any ideas please?
 
I am developing an embedded processor controller that needs to continuously communicate data over a link to another. The baud rate is limited to 9600 Bd. The numeric range of each data packet will need to be at least +/ 12 digits. I am concerned that the time taken to send this data may too high if sent as strings of characters and I would like to limit this.
 
My data values could be easily represented within the four bytes of a 'Single' which is the smallest Real type and would give me a range of 1.5 x 10 ^-45 .. 3.4 x 10 ^38. This being the case I could send the data as 4 x char(bytes) + a checksum and terminator.
 
My question is - What is the simplest way of doing the conversion in each direction. I have to deal with two different microprocessors, but the maths libraries I have in the compilers are not too bad. I've had a play but seem to be getting into problems with type casting.  A Pascal demo would be a great help.
 
Regards
 
  Colin
 
 
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to