sgergo
Junior Member level 1
Circuit question
Hi!
I'm working on an oscillator circuit with a dsPIC based frequency counter. The oscillator circuit is working nicely with a crystal of 5 MHz. I can see a nice pulse wave on the scope with 3.8V amplitude.
The frequency counter is a simple one: I am counting the edges on T2CK pin of the MCU for 1 second and display it on the attached LCD. If I connect the oscillator output to T2CK I can read the frequency on the LCD.
However, if I change the crystal to a 3.xyz MHz one the counter goes crazy. After checking the oscillator output on the scope I thought that maybe the T2CK input needs a more "square" signal so I created the following circuit:
**broken link removed**
First (1. step) I checked the output of the gate IC which looked nice with an amplitude of 4.8V DC (with the 5 MHz crystal). When I connected its output to the PIC's T2CK (2. step) I could see the waveform distorted and the amplitude decreased to 1.8x V which is below the logical high level of the T2CK input. The counter showed 0 Hz, respectively.
My next thought was inserting a buffer (3.step) between the gate and the PIC so I fished out a wide bandwith opamp, LT1190. I checked its output with the scope and found that it outputs a useless, totally distorted signal.
Now I'm out of ideas so any help or tip is much appreciated.
Here are the datasheets to make life easier:
http://cds.linear.com/docs/Datasheet/1190fa.pdf
http://focus.ti.com/lit/ds/symlink/sn74hc132.pdf
http://ww1.microchip.com/downloads/en/DeviceDoc/70138F.pdf
Hi!
I'm working on an oscillator circuit with a dsPIC based frequency counter. The oscillator circuit is working nicely with a crystal of 5 MHz. I can see a nice pulse wave on the scope with 3.8V amplitude.
The frequency counter is a simple one: I am counting the edges on T2CK pin of the MCU for 1 second and display it on the attached LCD. If I connect the oscillator output to T2CK I can read the frequency on the LCD.
However, if I change the crystal to a 3.xyz MHz one the counter goes crazy. After checking the oscillator output on the scope I thought that maybe the T2CK input needs a more "square" signal so I created the following circuit:
**broken link removed**
First (1. step) I checked the output of the gate IC which looked nice with an amplitude of 4.8V DC (with the 5 MHz crystal). When I connected its output to the PIC's T2CK (2. step) I could see the waveform distorted and the amplitude decreased to 1.8x V which is below the logical high level of the T2CK input. The counter showed 0 Hz, respectively.
My next thought was inserting a buffer (3.step) between the gate and the PIC so I fished out a wide bandwith opamp, LT1190. I checked its output with the scope and found that it outputs a useless, totally distorted signal.
Now I'm out of ideas so any help or tip is much appreciated.
Here are the datasheets to make life easier:
http://cds.linear.com/docs/Datasheet/1190fa.pdf
http://focus.ti.com/lit/ds/symlink/sn74hc132.pdf
http://ww1.microchip.com/downloads/en/DeviceDoc/70138F.pdf