• AVR Freaks

Hot!Square wave with potentiometer for frequency control

Author
didierleplae
Senior Member
  • Total Posts : 175
  • Reward points : 0
  • Joined: 2019/03/31 16:57:50
  • Location: 0
  • Status: offline
2020/07/12 13:04:19 (permalink)
0

Square wave with potentiometer for frequency control

I am working on a project that requires a clock (0-5v square wave) and the same clock but inverted coming from another pin. I need to be able to vary the frequency of the clocks with a pot between approx. 10kHz - 100kHz. 
Because of space constraints I am trying to use the smallest chip possible. Currently I'm working with the 16F18313 but would like to even switch to the 10F322.
 
My question is, what is the best way to do this, as in getting the least jitter and most increments within the frequency range?
I am currently using the NCO
post edited by didierleplae - 2020/07/12 13:11:23
#1

2 Replies Related Threads

    davea
    Super Member
    • Total Posts : 270
    • Reward points : 0
    • Joined: 2016/01/28 13:12:13
    • Location: Tampa Bay FL USA
    • Status: offline
    Re: Square wave with potentiometer for frequency control 2020/07/12 13:27:32 (permalink)
    0
    tell us the NCO value at 10Khz and 100Khz
     
    edit; and FOSC frequency
    post edited by davea - 2020/07/12 13:30:20
    #2
    didierleplae
    Senior Member
    • Total Posts : 175
    • Reward points : 0
    • Joined: 2019/03/31 16:57:50
    • Location: 0
    • Status: offline
    Re: Square wave with potentiometer for frequency control 2020/07/12 14:41:17 (permalink)
    0
    Actually, I think I had my HFINTOSC set too high. I lowered it to 8MHz and it's working perfectly! thanks
     
    #3
    Jump to:
    © 2020 APG vNext Commercial Version 4.5