Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

conversion from binary to ascii

Status
Not open for further replies.

tedinkus

Mechanical
Apr 17, 2002
2
0
0
US
Does anyone know of a conversion program to convert from reading in binary from a big endian machine to reading in ascii in a mall endian machine.

thanks
TEd Edwards
 
Replies continue below

Recommended for you

Yes, if you will email me I'll send C or Basic code to do this.

Endian is an expression comming from the difference between how data is actually stored in the RAM memory by the Intel uProcessor vs how the same data is stored by other type uProcessors, such as the Apple computer. The memory addressing by the Intel has the first byte holding the lower half of 16-bit interger value and the second byte holding the higher. Other processors reverse this order. Things get even more convaluted with larger data types.

Transfering data between devices such as streaming serial information directly from memory to an outboard device can require knowledge of the stored data format and correcting for the 'endian' difference.

 
Status
Not open for further replies.
Back
Top