imranahmed
Advanced Member level 3
- Joined
- Dec 4, 2011
- Messages
- 822
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- Karachi,Pakistan
- Activity points
- 6,533
T2CON = 0x04; // prescaler + turn on TMR2;
PR2 = 0x31; // freq 0x31 for 40kHz
CCPR1L = 0x17; // set low time 0x17 for 40kHz
CCP1CON = 0x30; // duty lowest bits + PWM mode (PWM off)
If i want to set frequency 56kHz so what will be change in above values and where i find CCPR1L register in
datasheet?
PR2 = 0x31; // freq 0x31 for 40kHz
CCPR1L = 0x17; // set low time 0x17 for 40kHz
CCP1CON = 0x30; // duty lowest bits + PWM mode (PWM off)
If i want to set frequency 56kHz so what will be change in above values and where i find CCPR1L register in
datasheet?