That was only an example. I re installed the prior version and everything
compiled and worked properly with no changes to my code. So it has to be
something in the new install. I'll try to get you a sample tomorrow
sometime.
sub GetBatt(readin as word)
readin = 0
for cnt = 1 to 5 'take 5 readings 150 ms apart
readin = readin + READAD10(BattSensor) 'place in variable
wait 150 ms
next
readin = readin / 5
readin=[long]readin*981/1000 'average readings over 750 ms
approx.
end sub
The one I really noticed it on was this one. It could be fine tuned a
little though. You input a positive integer temperature and it returns air
saturation at that temperature:
sub DoAtTemp(readin as word)
readin=readin*100
readin=3653+[long]readin
readin=11050000/[long]readin-147
if (readin % 10)>4 then
readin=readin+10
end if
readin=readin/10
end sub
I don't know if there was a file that was blocked or something else.
That was only an example. I re installed the prior version and everything
compiled and worked properly with no changes to my code. So it has to be
something in the new install. I'll try to get you a sample tomorrow
sometime.
On Sun, May 19, 2019, 9:14 PM Anobium evanvennn@users.sourceforge.net
wrote:
Hi Clint.
No functional changes in that are of the compiler. So, got any code that
shows the issue?
Or, in this a syntax error? try dropping the var*.
I will see if I can recreate my problem today. I will have to reinstall the
new update and reprogram my chip and see what happens. If it acts the same
I will send you the zip file.
Long type casting (e.i. [long] var * const) and timer0 didn't seem to work with this latest download on the 18f14k22.
Later,
Clint
Hi Clint.
No functional changes in that are of the compiler. So, got any code that shows the issue?
Or, in this a syntax error? try dropping the
var*
.That was only an example. I re installed the prior version and everything
compiled and worked properly with no changes to my code. So it has to be
something in the new install. I'll try to get you a sample tomorrow
sometime.
On Sun, May 19, 2019, 9:14 PM Anobium evanvennn@users.sourceforge.net
wrote:
sub GetBatt(readin as word)
readin = 0
for cnt = 1 to 5 'take 5 readings 150 ms apart
readin = readin + READAD10(BattSensor) 'place in variable
wait 150 ms
next
readin = readin / 5
readin=[long]readin*981/1000 'average readings over 750 ms
approx.
end sub
The one I really noticed it on was this one. It could be fine tuned a
little though. You input a positive integer temperature and it returns air
saturation at that temperature:
sub DoAtTemp(readin as word)
readin=readin*100
readin=3653+[long]readin
readin=11050000/[long]readin-147
if (readin % 10)>4 then
readin=readin+10
end if
readin=readin/10
end sub
I don't know if there was a file that was blocked or something else.
Later,
Clint
On Sun, May 19, 2019 at 10:06 PM Clint Koehn ckoehn@users.sourceforge.net
wrote:
Clint - sorry, I cannot follow.
Can you post a complete program that shows the issue?
It compiles without error on both, but on the latest one it gives erroneous
readings.
On Mon, May 20, 2019 at 9:08 AM Anobium evanvennn@users.sourceforge.net
wrote:
No issues here with 0.98.05 2019-04-20,as below:
Compiler Version (YYYY-MM-DD): 0.98.05 2019-04-20 (Windows 32 bit) Program Memory: 2096/8192 words (25.59%) RAM: 170/512 bytes (33.2%) Chip: 18F14K22
So, exactly what was the error message?
There was no error message, it just didn't work. The timer never fired and
the subs that had long type casting returned wrong values.
On Mon, May 20, 2019, 3:54 PM Anobium evanvennn@users.sourceforge.net
wrote:
Ok. Which vars were impacted?
As you explaining this is the past sense. Have you resolved this?
I have not resolved this. What I noticed was that the timer0 never fired
and that the type casting of long variables didn't return correct values.
On Mon, May 20, 2019, 9:11 PM Anobium evanvennn@users.sourceforge.net
wrote:
Which long variable to specific?
I have loaded into mplab simulatot - the interrupt is firing. So, puzzled.
Can you please do the following? Uploaded the project into a number of zip. Each zip is specific to each version. Add the source code and the asm.
I will see if I can recreate my problem today. I will have to reinstall the
new update and reprogram my chip and see what happens. If it acts the same
I will send you the zip file.
On Tue, May 21, 2019, 6:00 AM Anobium evanvennn@users.sourceforge.net
wrote:
Which long variable to specific?
I have loaded into mplab simulator - the interrupt is firing. So, puzzled.
Can you please do the following? Uploaded the project into a number of zip. Each zip is specific to each version. Add the source code and the asm.
Last edit: Anobium 2019-05-21