john blue
Advanced Member level 3
// settings to configure Fosc to be 16MHz
#pragma config FOSC = HSPLL_HS// INTOSC_EC
#pragma config PLLDIV = 5
#pragma config CPUDIV = OSC4_PLL6
PR2 = 249;
OpenTimer2(TIMER_INT_ON & T2_PS_1_16 & T2_POST_1_1);
Based on the code above, i should get 1ms but i am getting 1.6ms. I hope someone can help me out. Thanks in advance.
#pragma config FOSC = HSPLL_HS// INTOSC_EC
#pragma config PLLDIV = 5
#pragma config CPUDIV = OSC4_PLL6
PR2 = 249;
OpenTimer2(TIMER_INT_ON & T2_PS_1_16 & T2_POST_1_1);
Based on the code above, i should get 1ms but i am getting 1.6ms. I hope someone can help me out. Thanks in advance.