Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

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

pix 2.JPG

pix 2.JPG
 

bassa

Super Moderator
Staff member
Joined
Jul 15, 2007
Messages
1,811
Helped
191
Reputation
402
Reaction score
153
Trophy points
1,353
Location
Sri Lanka
Activity points
10,230
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
Code Library - 8052.com
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top