PIC16F19176 Timer Lib

24 views
Skip to first unread message

flyway38

unread,
Dec 13, 2022, 12:27:12 PM12/13/22
to jallib
Hello,

New problem.
Trying to use Timer Lib; timer0_isr_interval
Getting this error:

[Error] (lib/timer0_isr_interval.jal) [Line 56]  "intcon_tmr0ie" not defined
[Error] (lib/timer0_isr_interval.jal) [Line 56]  'end' expected (got 'intcon_tmr0ie')
[Error] (lib/timer0_isr_interval.jal) [Line 56]  {function starts at C:\JALLIB~1\lib/timer0_isr_interval.jal:53}
[Error] (lib/timer0_isr_interval.jal) [Line 56]  "intcon_tmr0ie" not defined
[Error] (lib/timer0_isr_interval.jal) [Line 56]  unexpected token: "intcon_tmr0ie"
[Error] (ParqTelm_V05.jal) [Line 288]  "timer0_isr_init" not defined
[Error] (ParqTelm_V05.jal) [Line 288]  unexpected token: timer0_isr_init

Believe it has to do with PPS issues, but need help on how to make use of a timer in my code.
Thank you very much.

Best Regards,
Filipe Santos.

Rob CJ

unread,
Dec 13, 2022, 12:41:54 PM12/13/22
to jal...@googlegroups.com
Hi Filipe,

I think you are not using the latest bee-package.

I fixed this problem in the timer0_isr_interval.jal library in May of this year. The problem was reported earlier by someone else.

Please download the latest bee-package from the JAL website.

Thanks.

Kind regards,

Rob



Van: jal...@googlegroups.com <jal...@googlegroups.com> namens flyway38 <fsfo...@gmail.com>
Verzonden: dinsdag 13 december 2022 18:27
Aan: jallib <jal...@googlegroups.com>
Onderwerp: [jallib] PIC16F19176 Timer Lib
 
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/6a20f0d0-8d2d-4d33-999d-ac7d772e7470n%40googlegroups.com.

flyway38

unread,
Dec 13, 2022, 12:51:02 PM12/13/22
to jallib
Hello Rob,

Thank you for the information.
Will check and download latest package.
Thanks.

Greetings,
FS

flyway38

unread,
Dec 13, 2022, 1:31:08 PM12/13/22
to jallib
Hello again,
Have already replaced all files from jallib-pack-bee-jalv25r6-20221120.zip into my JALinstalation but didn't solve the problem I reported above.
Maybe I didn't do the update correctly...
Any help would be great.
Thank you.

Cheers,
FS

Rob CJ

unread,
Dec 13, 2022, 1:43:33 PM12/13/22
to jal...@googlegroups.com
Hi Filipe,

I download the same package but the correct version is in that bee-package.

The following program compiles without any errors.

include 16f19176

pragma target clock    32_000_000 
 
const DELAY_SLOTS = 2 
const TIMER0_ISR_RATE = 1000 

include timer0_isr_interval

Are you referring to the correct library?

Kind regards,

Rob


Verzonden: dinsdag 13 december 2022 19:31
Aan: jallib <jal...@googlegroups.com>
Onderwerp: Re: [jallib] PIC16F19176 Timer Lib
 

flyway38

unread,
Dec 13, 2022, 2:20:34 PM12/13/22
to jallib
Hey Rob,

Have used that code above and now am getting only one error:

[Error] (ParqTelm_V05.jal) [Line 290]  unexpected token:

This line is;
const word TIMER0_ISR_RATE = 1000

Don't know why this error is happening...
Thank you very much.

Regards,
FS

flyway38

unread,
Dec 13, 2022, 2:27:47 PM12/13/22
to jallib
Correction.
Problem is the same as in first post.
[Error] (lib/timer0_isr_interval.jal) [Line 56]  "intcon_tmr0ie" not defined
[Error] (lib/timer0_isr_interval.jal) [Line 56]  'end' expected (got 'intcon_tmr0ie')
[Error] (lib/timer0_isr_interval.jal) [Line 56]  {function starts at C:\JALLIB~1\lib/timer0_isr_interval.jal:53}
[Error] (lib/timer0_isr_interval.jal) [Line 56]  "intcon_tmr0ie" not defined
[Error] (lib/timer0_isr_interval.jal) [Line 56]  unexpected token: "intcon_tmr0ie"
[Error] (ParqTelm_V05.jal) [Line 295]  "timer0_isr_init" not defined
[Error] (ParqTelm_V05.jal) [Line 295]  unexpected token: timer0_isr_init

Problem in my last post was due to copying your code and directly pasted in my code...
Some odd chars were inserted instead of the spaces.

So, problem is still the same.
How can I have sure about using the correct LIB?
Thank you once again.

Cheers,
FS

flyway38

unread,
Dec 13, 2022, 3:19:12 PM12/13/22
to jallib
Problem is now solved.
I think that when replaced new files from last Bee Package was having that LIB open in editor and maybe that prevented from old file to be overwritten.
Now am good to go, with no errors.
Thank you very much.

Cheers,
FS

Rob CJ

unread,
Dec 14, 2022, 2:30:18 AM12/14/22
to jal...@googlegroups.com
Hi Filipe,
Are you using a 16f19176?
If so it seems that you are still using the old library. I do not know how you installed the bee-package but I assume you just unzipped it and used it to replace your previous installation.

Met vriendelijke groet,
Rob Jansen

From: jal...@googlegroups.com <jal...@googlegroups.com> on behalf of flyway38 <fsfo...@gmail.com>
Sent: Tuesday, December 13, 2022 9:19:12 PM
To: jallib <jal...@googlegroups.com>
Subject: Re: [jallib] PIC16F19176 Timer Lib
 

flyway38

unread,
Dec 14, 2022, 6:32:25 AM12/14/22
to jallib
Hello Rob,

Yes. It was an installation problem.
I think that what happen was even more stupid than I thought....
Have replaced all files with the new ones in latest bee package. But was having JAL editor still open with this old LIB open.
When I compiled it simply overwritten the new LIB with the one open (the old one) still open in editor. :D

When closed JAL editor and do again the extraction of new Bee Package, tried again to open my project and there was the new LIB and all compiled ok.
Thank you very much for your help.

Cheers,
FS
Reply all
Reply to author
Forward
0 new messages