Arduino Projects   |   Raspberry Pi   |   Electronic Circuits   |   AVR   |   PIC   |   8051   |   Electronic Projects

after conversion stored adc value is hex value or decimal value

2 posts / 0 new
Last post
abhishekgaurav
abhishekgaurav's picture
Offline
Last seen: 2 years 3 months ago
Joined: 17/05/2011 - 16:34
after conversion stored adc value is hex value or decimal value

i stored adc value after analog to digital conversion in variable int preset...but i m not sure this value is decimal value or hex...should i compare like ADC>>40 or ADC >>0X12 please help . i m not getting right result.

AJISH ALFRED
AJISH ALFRED's picture
Offline
Last seen: 5 months 3 weeks ago
Joined: 10/01/2012 - 12:10
 As far as I know, the

 

As far as I know, the decimal or hex is a kind of value entry format in your IDE. For a particular value either if you use decimal or hex the compiler will eventually convert it into the same machine code. Also in the adc register the value is stored in its corresponding binary format.

Log in or register to post comments

APPLICATIONS & TECHNOLOGIES

Learn about the latest applications and industry trends with tutorials and white paper design resources on vertical markets.

Automotive
Energy Harvesting
MEMS Technology
OpenSource Hardware
RFID & NFC
RF Wireless
Sensor
Solar
Touch
Wireless Charging