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!






Bookmarks