Measuring 69 khz RC Oscillator Circuit With Parallax USB Oscilloscope
microcontrolleruser
Posts: 1,194
It's for a PIC16F84A.
T circuit. Connects to OSC1.
100pf cap from 0v to T
100K ohm resistor from 5v to T
T goes into OSC1
Where do I connect the Lead 1 and ground on the circuit please?
T circuit. Connects to OSC1.
100pf cap from 0v to T
100K ohm resistor from 5v to T
T goes into OSC1
Where do I connect the Lead 1 and ground on the circuit please?
Comments
This is what it looks like.
Anybody know how to adjust the scope to make it right size?
-Phil
I pretty much figure they know what they are talking about.
I am attempting to use a black version Parallax USB oscilloscope.
If you can not back that up with facts, you will be asked to delete that quote.
Oh you caught me cutting corners again!
Understanding signals book version 1 I'm studying.
I need to go back to testing the blinking LED with Stamp like the directions say.
Then it tells you how to make adjustments.
Can anybody tell what frequency the RC circuit is producing?
I can slow it down swapping in 220 and 330 K ohm resistors for 100 K ohm.
'If you can not back that up with facts, you will be asked to delete that quote.'
Here you go.
http://www.sxlist.com/techref/ubicom/picreplace.htm
'SX processors have been used to replace PIC 16C57's and 54's useing the .hex file from MPLab '
You can program a SX28 with MPLAB and a little effort.
-Phil
You're welcome.
The purpose of the 29 khz oscillator is this.
RC circuit is 'standing in' while we wait for our crystals to get here.
The book uses a 32 khz crystal.
There are two delays in the header file you can call. 1/2 and 1 second.
With the 32 khz crystal you only have to count 32 times with one loop.
A 4 mhz delay routine is a lot more code.
Is that vertical line really what the circuit is doing?
Could it be caused by the settings?
'The vertical line is an axis.'
What do you mean by an 'axis'?
No.I mean the signal.The blue line.
Okay.Now that you mention it, it is not quite vertical.
Why is it doing that?
'The sawtooth shape of it is characteristic of an R-C circuit. '
Great! R-C circuit works!
Thank you Mike!
How do I know what the frequency of this R/C circuit is?
What software are you using for the scope? Ver 4.0 or 5.1?
'What software are you using for the scope? Ver 4.0 or 5.1?'
5.1.1
'Does it look like this:' No.
I do have what you're showing installed though.It starts up and runs in Windows 8.1 here.
Let me double check it connects to USB scope.
Thank you.
Table show that combination should result in 71.56khz. Plus or minus 25%.
You may have already given the reason but why is it @20khz?
Here's table.
'Why 20KHz? '
That is the reading using 100 pf cap and 100 K ohm resistor.
' Does the scope affect the reading? '
First time that has come up.
How do we find that out?
Write an assembly program that toggles an output pin as fast as possible. Then measure the frequency of the pin. Using execution clocks data for each operator in your loop, you can compute what the actual clock frequency is.
-Phil
Phil Here is delay from lesson.
Thank you very much Phil!
STOP! Please don't write a snippet of code for me to run.
My plate is full working on this header and blink LED then the next lesson.
I THINK what you are talking about is like this delay. Rearranged though.
Next thing is to change the value of the resistor.
Will look through resistor tackle boxes for 120, 150 and 180 Kohm ones.
Then we'll see how the measurements come out.
Want to graph the results also.
Also do the R/C formula a couple times and see what results SHOULD be.
Don't forget that when you put resistors in series that their values add.
So if you need 150K, you could put 15 10K in series or use 3 50K.