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

BASCOM-AVR : how to assembled a three bye array in one data type : NEWTOPIC

$
0
0
I am able to collect one register of one old metering chip ADE7753 it is a 24 bit signed value, I am storing it in three byt array. say it is RMS voltage value and it is in hex &H400000, I am also able to correctly display it as I given below R_add = &H17 Call R_chip(r_add) Locate 2 , 2 Lcd "VRMS = " ; Hex(r_data(1)) ; Hex(r_data(2)) ; Hex(r_data(3)) 1- My question is how I can assembled it in one data type , say small, double I am not sure which data type??? 2- my value also have a sign how can see it is negative or positive value when I convert it in decimal 3 I also need to convert this variable to manipulate some mathematics on it, say I want to show it as 240 Volts AC. thanks in advance any help if any body could do this. [b:cad682df66][color=red:cad682df66](BASCOM-AVR version : 2.0.7.5 , Latest : 2.0.7.6 )[/b:cad682df66][/color:cad682df66]

Viewing all articles
Browse latest Browse all 20887

Trending Articles



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