Author |
Message |
Topic: Comparison on Singles.. |
naseerak
Replies: 32
Views: 1311
|
Forum: BASCOM-AVR Posted: Fri Sep 18, 2015 7:22 pm Subject: Comparison on Singles.. |
$regfile = "m16adef.dat"
$crystal = 8000000
$baud = 19200
$hwstack = 128
$swstack = 64
$framesize = 64
'Hardware Configuration ===============================
Config Aci = Off
Config Adc = S ... |
Topic: Comparison on Singles.. |
naseerak
Replies: 32
Views: 1311
|
Forum: BASCOM-AVR Posted: Fri Sep 18, 2015 5:28 pm Subject: Comparison on Singles.. |
Ddrc = &B11111111
Dim C1raw As Word
Dim C1v As Single
DO
C1raw = Getadc(0)
C1v = C1raw
C1v = C1v * 5 ' to adjust it according to the measured ... |
Topic: Comparison on Singles.. |
naseerak
Replies: 32
Views: 1311
|
Forum: BASCOM-AVR Posted: Fri Sep 18, 2015 10:15 am Subject: Comparison on Singles.. |
Reset will start again charging, this according to the relay points.... |
Topic: Comparison on Singles.. |
naseerak
Replies: 32
Views: 1311
|
Forum: BASCOM-AVR Posted: Thu Sep 17, 2015 6:00 pm Subject: Comparison on Singles.. |
In my code I am using this..
If C1v >= 4.20 Then
Set Portc.0
C1_chg_flag = 1
Else
C1_chg_flag = 0
End If
working fine in proteus but not working in real hardware, I have tested the rel ... |
Topic: Holding a value in a variable. |
naseerak
Replies: 25
Views: 1187
|
Forum: BASCOM-AVR Posted: Wed Sep 16, 2015 5:39 am Subject: Holding a value in a variable. |
I am using proteus, so no HW error, in my setup both voltages are changing as they are tied to the same adc.. |
Topic: Holding a value in a variable. |
naseerak
Replies: 25
Views: 1187
|
Forum: BASCOM-AVR Posted: Tue Sep 15, 2015 6:25 pm Subject: Holding a value in a variable. |
V11 will also equal to V12 after 10 minutes, we need to hold the V11 some where temporarily at least for one session.. |
Topic: Holding a value in a variable. |
naseerak
Replies: 25
Views: 1187
|
Forum: BASCOM-AVR Posted: Tue Sep 15, 2015 8:04 am Subject: Holding a value in a variable. |
Arera you are a nice person by taking intrest in this thread...the story is
1. Cell_reading:
C1raw = Getadc(0)
C1v = C1raw
C1v = C1v * 5 ' to ad ... |
Topic: Holding a value in a variable. |
naseerak
Replies: 25
Views: 1187
|
Forum: BASCOM-AVR Posted: Tue Sep 15, 2015 6:49 am Subject: Holding a value in a variable. |
the calculations may be enough for the 1 session only, there are 8 cells which will be calculated this way and after calculating the resistance the cells would be pulled off and new ones inserted for ... |
Topic: Holding a value in a variable. |
naseerak
Replies: 25
Views: 1187
|
Forum: BASCOM-AVR Posted: Tue Sep 15, 2015 6:42 am Subject: Holding a value in a variable. |
@Arera.
Yes both variable are dimentioned and then converted in to singles and displayed using FUSING.
V2 and V1 cant be differentiated as both are reading the same adc and cell. |
Topic: Holding a value in a variable. |
naseerak
Replies: 25
Views: 1187
|
Forum: BASCOM-AVR Posted: Mon Sep 14, 2015 5:42 pm Subject: Holding a value in a variable. |
Yes Arera, when i plug a battery to a adc pin adc will read read the first voltage lets say that is 4.2V, after putting a load the batt. voltage will decline and so does the ADC. this new voltage is V ... |
Topic: Holding a value in a variable. |
naseerak
Replies: 25
Views: 1187
|
Forum: BASCOM-AVR Posted: Mon Sep 14, 2015 3:59 pm Subject: Holding a value in a variable. |
OK agree, but once when I equate V2 =ERAM and adx start to decline due to drain the equation will remain the same and eram value will also declined so its a zero sum game I think, or you people may. H ... |
Topic: Holding a value in a variable. |
naseerak
Replies: 25
Views: 1187
|
Forum: BASCOM-AVR Posted: Mon Sep 14, 2015 5:39 am Subject: Holding a value in a variable. |
but is it so difficult that can,t be done in micro,s own flash....
regards |
Topic: Holding a value in a variable. |
naseerak
Replies: 25
Views: 1187
|
Forum: BASCOM-AVR Posted: Sun Sep 13, 2015 6:07 pm Subject: Holding a value in a variable. |
I think there may be a very simple solution in someone,s mind and waiting for that. and ys thanks for your solution i will give it a try if nothing come out simple..
regards |
Topic: Holding a value in a variable. |
naseerak
Replies: 25
Views: 1187
|
Forum: BASCOM-AVR Posted: Sun Sep 13, 2015 5:33 pm Subject: Holding a value in a variable. |
Hi
In my code i am reading a battery voltage by putting a load on the battery.. but I want to find the DELTA-V which is V2-V1.the problem here is that the single adc is reading the battery, I want V2 ... |
Topic: Floating point nos. |
naseerak
Replies: 0
Views: 411
|
Forum: BASCOM-AVR Unsupported versions Posted: Sat Aug 15, 2015 8:51 pm Subject: Floating point nos. |
Hi
Based on comparisons on floating point no. Like X.XXXXXXX, now I want to round this no and then make a comparison like by detecting a batery voltage and then make some decision on it...
regards |
|