Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

[AVR] Need help in conversion of 8byte hex array to the decimal value

Status
Not open for further replies.

Maverick_391

Newbie level 3
Joined
May 18, 2012
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Pune, India
Activity points
1,312
Dear all,

I need your help into conversion of array of 8 byte hex to the decimal value.

As I done this for 4 byte but now stuck to do it for 8 byte!! Can anybody share a small program ृfor the same?

I am using 8 bit atmega AVR microcontroller and want to convert the incoming 8byte hex values to decimal and then send back it through serial.

Awaiting reply.
 

Thank you sir for your reply.

Is it possible to use long long unsigned int to hold a value? If yes then how I send that value over UART using sprintf?

Please reply.
 

Is it possible to use long long unsigned int to hold a value?
You'll want to check the documentation of your compiler whether it supports 64 bit integer numbers or not. If not, you have to design your own conversion routines.

By the way, the original question title is completely misleading. Your asking about 64 bit integer, not hex array.
 

hello


I need your help into conversion of array of 8 byte hex to the decimal value.

do you mean double ?
float is 32 bits
double is 64 bits wide to represent decimal value.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top