Hi, I am working in a code were inside a custom interuption (produced by a
external source) I have a timer interrupt that works fine the first time.
the problem is that from the second time the timer is activated, the timer
interrupt is activated but the interruption is activated inmediatly, without
counting.
Anyone knows why this can be happening ? , I am checking with a logic analyzer
and also with custom code to check the interruption is beeing generated.
In the graph I can see the interrupt is being generated rigth after the timer
is activated and before the time programed.
Somehow after the first activation the timer lost the parameters.
It does not matter wich timer I use
I also changed the delay , just in case the interrupt was been generated
outside boundaries , but that is not the problem.
Ialso get the warning:
------------------------------------------------------------------
D_01_03.c: In function '_T2Interrupt':
ID_01_03.c warning: PSV model not specified for '_T2Interrupt';
assuming 'auto_psv' this may affect latency
ID_01_03.c: In function '_T1Interrupt':
ID_01_03.c warning: PSV model not specified for '_T1Interrupt';
assuming 'auto_psv' this may affect latency
------------------------------------------------------------------
but the warning is in both timers, and one actually works fine, I dont know it's meaning
this is in a code were I can use use other timer interrupt that is working
fine, but the alternative is working as described.
Any ideas?
TIMER produces the interrupt with no counting
Moderator: Benj
Re: TIMER produces the interrupt with no counting
I use the timer to count as well, but store the count result in a memory location. So I can recall the count value when the timer restarts.
-
- Posts: 1314
- Joined: Sun Jan 15, 2012 3:15 pm
- Has thanked: 474 times
- Been thanked: 458 times
- Contact:
Re: TIMER produces the interrupt with no counting
hi
can you post your flowchart,as someone may be able to help further
can you post your flowchart,as someone may be able to help further
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php
-
- Posts: 54
- Joined: Wed Nov 02, 2011 3:57 pm
- Has thanked: 14 times
- Been thanked: 3 times
- Contact:
Re: TIMER produces the interrupt with no counting
Hi , Here are my flowcharts, one for transmission and other for reception and generation of signal (CAN) after certain time that shold be managed by TIMER 2
Actually, this topic would be moved to V5 but I can't post there (???)
Also I have a screenshot that show what is happening
(RX and tx are swapt in the image) As you can see the delay works the first time and then there is no count
Actually, this topic would be moved to V5 but I can't post there (???)
Also I have a screenshot that show what is happening
(RX and tx are swapt in the image) As you can see the delay works the first time and then there is no count
-
- Posts: 1314
- Joined: Sun Jan 15, 2012 3:15 pm
- Has thanked: 474 times
- Been thanked: 458 times
- Contact:
Re: TIMER produces the interrupt with no counting
Hi
follow this link to upgrade your forum account to post in v5 forums http://www.matrixmultimedia.com/mmforum ... =46&t=9958
Regards
Dazz
follow this link to upgrade your forum account to post in v5 forums http://www.matrixmultimedia.com/mmforum ... =46&t=9958
Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php