hi everyone,
I'm trouble with this simple problem:(CC2541)
I'm using the Timer3 to generate 50ms event ( toggle an IO for test) (osal_start_timerEx have about 10ms error, abandon it)
In fact, it toggle every ~200ms, and in the oscilloscope, it is not periodic at all.
And then, I increase Timer3 ISR's priority, just let it prior to RF ISR:
IP0 |= BV(3);
IP1 |= BV(3);
And it toggled accurate every 50ms.
While the new problem come:
As I increase Timer3 ISR's priority prior to RF ISR, the RF function(Observer) is affected:
CC2541 may can't hear anything after power on.(probability is about 1/50, I have 64 nodes to test it)
It didn't happened before I increase Timer3 ISR's priority.
Both of 50ms event and Observer function is important in my application, and how to solve this dilemma?