Relaxation oscillators (for capacititive touch sensing)


Results 1 to 25 of 25

Threaded View

  1. #10
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    The 16F690 does have a Gate control on Timer1.
    But it doesn't have a TMR1GIF bit, and doesn't generate interrupts for the gate.
    <br>
    Hmm (rubs chin, pretending to understand the significance of what you're saying - but nevertheless knowing full well it's *BAD*). As it goes, I was just about to say, I'm getting this when I compile...

    "Symbol not previously defined (TMR1GIF)" (which may/may not be related to what you're saying, l- modified your files as per your instructions to byte_butcher - I'm out my depth at the moment...but learning fast!)

    From the Microchip application note- http://ww1.microchip.com/downloads/e...tes/01101a.pdf (which embraces this method with the 16F690)...

    "Once the oscillator is constructed, its frequency must
    be monitored to detect the drop in frequency caused by
    a finger press. Figure 5 shows a more complete schematic
    where C2OUT not only drives the oscillator, but
    also is fed into the clock input of Timer1, T1CKI. Each
    time C2OUT changes from ‘0’ to ‘1’ Timer1 will increment.
    Unhindered, Timer1 will increment non-stop and
    eventually roll over, but this is not useful for capacitive
    sensing.
    To make it useful, a fixed time base is used to measure
    the frequency over a defined period. Timer0 provides
    this fixed period time base. At the start of a measurement,
    Timer0 is cleared, and it will count up to 255 and
    then it will overflow. On overflow, the Timer0 interrupt,
    T0IF, causes the program to vector to the Interrupt Service
    Routine.
    "



    As a beginner, could you tell me the significance of your news...

    1. I can't use your interupt routines?
    2. Their proposed method wont work? even though from the same datasheet, they say this ...

    "There are currently three families of PIC microcontrollers
    able to use the method as shown. These are the
    Microchip PIC16F616 family, PIC16F690 family and
    PIC16F887 family."


    Grateful for the clarification!
    Last edited by HankMcSpank; - 22nd November 2009 at 23:19.

Similar Threads

  1. Need a cheap touch sensor idea.. here it is
    By mister_e in forum Code Examples
    Replies: 20
    Last Post: - 16th April 2016, 23:42

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts