 |
 |
| View previous topic :: View next topic |
| Author |
Message |
Ttelmah
Joined: 11 Mar 2010 Posts: 20161
|
|
Posted: Wed Feb 06, 2013 1:43 am |
|
|
| asmboy wrote: | While the example handler for modbus is admittedly verbose and perhaps overly general purpose, it still gives a very clear and well thought out approach to doing the job you are failing at. I'd read it again , if i were you.
From the start I have had an uneasy feeling about what goes on in your timer ISR, and about what you are trying to do IN said a timer ISR in the first place.
we have.........
| Quote: |
ModbusCalcCrc(0,index - 2);
|
gives me a very uneasy feeling that if that function is what i think it is-
you are spending a lot of time with other INTS disabled .
maybe too much
i for one would NEVER put a crc calc into an ISR.
perhaps its just me being very conservative, but i suggest reducing code in ANY ISR to be as deterministic, and fast executing as possible.
Why ? E X P E R I E N C E ! !
 |
A1 comment rating.
Best Wishes |
|
 |
Requan
Joined: 11 May 2008 Posts: 74
|
|
Posted: Tue Feb 19, 2013 8:32 am |
|
|
| Quote: |
perhaps its just me being very conservative, but i suggest reducing code in ANY ISR to be as deterministic, and fast executing as possible.
Why ? E X P E R I E N C E ! !
|
Yes i know this rule from previously complier, but i though that when i disable interrupt it does matter.
Thanks all for Your answers and help, but i can't solve this problem so i have to used my old compiler to apply this solution.
PS. Maybe Your right there is no perfect compiler and also programmers (i am good example), so i bought ccs upgrade for next year. |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|