Subversion Repositories Code-Repo

Rev

Rev 234 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 234 Rev 237
Line 22... Line 22...
22
        time = 2.5 * time_us;
22
        time = 2.5 * time_us;
23
        T5CONSET = 0x0050;         // Prescaler at 1:32
23
        T5CONSET = 0x0050;         // Prescaler at 1:32
24
    } else if (time_us < 52428) {
24
    } else if (time_us < 52428) {
25
        time = 1.25 * time_us;
25
        time = 1.25 * time_us;
26
        T5CONSET = 0x0060;         // Prescaler at 1:64
26
        T5CONSET = 0x0060;         // Prescaler at 1:64
27
    } else { // Minimum time_us of 209712
27
    } else { // Maximum time_us of 209712
28
        time = 0.3125 * time_us;
28
        time = 0.3125 * time_us;
29
        T5CONSET = 0x0070;         // Prescaler at 1:256
29
        T5CONSET = 0x0070;         // Prescaler at 1:256
30
    }
30
    }
31
 
31
 
32
    Nop();
32
    Nop();