Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20637

BASCOM-AVR Old versions : handling 24 signed bit values : NEWTOPIC

$
0
0
I am working at energy metering IC ADE7753 of Analog Devices. I has a register of 24 bit, It is signed value register, I am reading it in a register array and displaying its value in hex, It is showing 0000 0000 0002 but I am not sure it is correct or not my code is... also tell me how can I display it in decimal if i do't want to see too many leading zero. Reset Ss Spiout Aenergy , 1 Spiin R_data5(1) , 3 Waitms 1 Set Ss Locate 1 , 2 Lcd "Aenergy= " ; Hex(r_data5(1)) ; Hex(r_data5(2)) ; Hex(r_data5(3)) Reset Ss Can any body give me any clue I am not expert in mathematics and signed numbers and 2'os compliments and conversion. thanks

Viewing all articles
Browse latest Browse all 20637


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>