How to add two Ascii hex values in C++(89S52)

Status
Not open for further replies.

Davechika

Newbie level 6
Joined
Oct 8, 2009
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Port-Harcourt,Nigeria
Activity points
1,357
i have a C# application which is interfaced to 89S52 microcontroller,the application sends out Ascii hex values of numbers like this 0x32 will be sent out via serialport as 0x33,0x32 but i want to receceive (buffer) these hex data using microcontroller SBUF and add them together like 0x33+0x32 to give back 0x32 which i will use on my code inside 89S52 chip. thanks for ur reply



 

It is better if you can post your code or part of the code here then others can understand the language that you are going to use.

Also check serial communication code here to start your program
**broken link removed**
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…