RCU Forums - View Single Post - New CDI - opensource project JMJ and Bigboat
Old 05-25-2010 | 01:28 AM
  #1273  
Bigboat
Senior Member
 
Joined: Dec 2005
Posts: 548
Likes: 0
Received 0 Likes on 0 Posts
From: Alkmaar, NETHERLANDS
Default 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 ??