PDA

View Full Version : I'm also stuck with FSR error when using DT's elapsed timer on 16F1936



CuriousOne
- 10th October 2025, 17:25
No MIBAM this time :)

I tried to use original files, but they got that error, then I found this post:

https://www.picbasic.co.uk/forum/showthread.php/26804-Symbol-not-prev-defined-FSR-Elapsed-Timer?highlight=elapsed+timer

tried code from it, but it won't compile, since 16F1936 does not have Timer 3, it has timer 1-2-4-6.

So as I understand, I should modify that code and change all references to timer3 to another timer. But which one to choose?

richard
- 11th October 2025, 00:56
why timer3 ?
any timer that can provide a 10mS interrupt could be employed, the self configuring aspect of the code will not function for modern pic chips. the code will need a tickle to adapt it to valid timer settings for your chosen chip
what have you tried ?

CuriousOne
- 11th October 2025, 05:21
I don'know - author on the link above used timer3.
I guess, mechanically changing it to timer1 or 2 won't work, since there's some ASM code involved...

richard
- 11th October 2025, 06:39
I guess, mechanically changing it to timer1 or 2 won't work, since there's some ASM code involved...

if you don't try you will never know