Electronics PIC frequency estimate in RC mode

Discussion in 'Modding' started by Lardarse, 21 Nov 2007.

  1. Lardarse

    Lardarse What's a Dremel?

    Joined:
    17 Nov 2004
    Posts:
    25
    Likes Received:
    0
    Hi there. I'm trying to use a PIC 16F84A in RC timing mode. I'm using RC rather than a crystal mode because I need a very low input frequency of 480Hz (120 instructions per second). Does anyone have any suggestions as to what values I would need for the resistor and capacitor to be roughly near my target frequency?
     
  2. jakenbake

    jakenbake full duplex

    Joined:
    5 Jun 2005
    Posts:
    495
    Likes Received:
    3
    f=1/(2*pi*R*C)

    what value R's or C's do you ave lying around. thats what it pretty much comes too. i'd probably start with a .01 uF cap if you don't have anything, they are common enough. i don't have a calculator handy, so you can do the math (sorry)

    edit: http://en.wikipedia.org/wiki/RC_time_constant
     
  3. Lardarse

    Lardarse What's a Dremel?

    Joined:
    17 Nov 2004
    Posts:
    25
    Likes Received:
    0
    By that formula, for an R of 10k + 10k pot for tuning + 1k pot for fine tuning, C is roughly 0.022uF. Thanks.
     

Share This Page