Sign in to follow this  
Followers 0
simon Ong SK

HELP!

3 posts in this topic

HI: Happy New Year! I have this problem: I need to convert Ascii data to Integer! If the ASCII data are like 123 then Fine ACI Can do the JOB! My problem is when the Value is ^B or FF or G Or ^ R (referred to Micro ASCII Table). THe Value is EMPTY or Nothing. Micro is reading a device that sending ASCII data which all the data have to be converted to integer (HEX) then back to Floating Point. Can Some one help me!!!! Thx

Share this post


Link to post
Share on other sites
A job like that is best solved on paper first. Record all the ascii values that the device sends. When you look at all the possibilities on paper, you can determine all the methods required to parse the data. Then it's just a matter of hammering out the code in instructions supported by the Micro. There are limitations to the file conversion functions with this processor. I've never used one, only read about the problem ... I'll search through some old posts and look for more details. Paul C.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0