We'r sampling two pins (A,B Encoder) at frequency upto 10mhz.
When the code was simple read/count the readings matched the input pulse.
once we extended the project , added Ethernet communication with PC & Debug printing to Serial
we began to see inconsistent readings.
At the code that does the reading & calculation
i disabled those interrupt: (tried also putting priority to 255 , didn't help)
NVIC_DISABLE_IRQ(IRQ_USB1);
NVIC_DISABLE_IRQ(IRQ_ENET);
NVIC_DISABLE_IRQ(IRQ_PIT);
And reenabled them once the counting ended.
And performance is back on track , But from this moment
no response from Serial Or Ethernet
How do i "Revive" back the Irq for those ?
Our project is quite simple , replacing encoder counters with the Teensy on our machines
The test is also simple , pulse generator on the input pin ,
counting for 1000msec , and expecting to get the same result on each trial
When the code was simple read/count the readings matched the input pulse.
once we extended the project , added Ethernet communication with PC & Debug printing to Serial
we began to see inconsistent readings.
At the code that does the reading & calculation
i disabled those interrupt: (tried also putting priority to 255 , didn't help)
NVIC_DISABLE_IRQ(IRQ_USB1);
NVIC_DISABLE_IRQ(IRQ_ENET);
NVIC_DISABLE_IRQ(IRQ_PIT);
And reenabled them once the counting ended.
And performance is back on track , But from this moment
no response from Serial Or Ethernet
How do i "Revive" back the Irq for those ?
Our project is quite simple , replacing encoder counters with the Teensy on our machines
The test is also simple , pulse generator on the input pin ,
counting for 1000msec , and expecting to get the same result on each trial