V VRL_15 New Member Feb 1, 2011 #1 How do I get 3kHz signal? -------------------------------------------------------------------------------- I am using PIC 16f887 I have a timer of 10ms . I want to obtain 3Khz signal using this timer. If anyone has an idea please let me know Thank you
How do I get 3kHz signal? -------------------------------------------------------------------------------- I am using PIC 16f887 I have a timer of 10ms . I want to obtain 3Khz signal using this timer. If anyone has an idea please let me know Thank you
W wannaBinventor Member Feb 1, 2011 #2 10ms means it overflowing at a rate of 100HZ. What kind of signal are you trying to create? If it were to overflow 3k times a second, you'd need a period of 333.33333 usecs, not counting overhead.
10ms means it overflowing at a rate of 100HZ. What kind of signal are you trying to create? If it were to overflow 3k times a second, you'd need a period of 333.33333 usecs, not counting overhead.
V VRL_15 New Member Feb 1, 2011 #3 I agree with you Actually I need 3kHz signal for sound I want to know if I can use the timer of 10 ms for getting that particular frequency Thanks for your opinion
I agree with you Actually I need 3kHz signal for sound I want to know if I can use the timer of 10 ms for getting that particular frequency Thanks for your opinion
birdman0_o Active Member Feb 1, 2011 #4 As wannabe just said, your timer is too SLOW. It sounds like you just want to copy paste code.
be80be Well-Known Member Feb 1, 2011 #5 With a 8mhz osc Take timer0 and set Prescale value 1:2 Preload TMR0L 106 And let it toggle a port pin on event
With a 8mhz osc Take timer0 and set Prescale value 1:2 Preload TMR0L 106 And let it toggle a port pin on event