RE: New CDI - opensource project JMJ and Bigboat
Normaly you take the ricing edge to start counting.
You never know when the magnet leave the hallfeeld.
====
delay_us(40); // 500 us delay ( CDI= 500uS) (TCI=3300uS)
====
The delay is in this line 40 us and not 500 or 3300 !!
====
if (PORTB.F3) test(); //If test jumper is on jump to test function
while(1){ //Loop forever
// Delay Algorithm~ 65uS (16x4=64uS) Taken into account in completing the table!!
while(1) // loop forever
{
====
Twice while, why ??