Eb003 erratic crystal
Posted: Sat Feb 25, 2012 3:45 pm
Im using a eb006 to program a stepper motor using a l297, I created a simple program that creates a clock signal by looping bsf and bcf with a delay of 10ms eachway
I programed it using a pickit3 and the first problem was the clock was very slow 1 step per second
The crystal on the board is k19.660 im not sure what the frequency of it is
so just to get the program to work I reduced the delay to something stupidly short
And the motor was spinning at a reasonable speed
But when I hover my hand above the osciltor switches the speed of the motor goes up and it becomes erratic
So I took off the motor and wired a led to blink
And with a really short delay the blink of the led is really noticable
And frequency changes as I hover my hand ovrr the crystal
and it stops the program is I touch the metal of the port connector
Could you tell me what is going on
Also what is the frequency of the oscilator, I thought it.was 19MHz but the way the harware is working it doesnt seem that.
The pic im using is p16f877a and im using assembley and mplab to program it
I programed it using a pickit3 and the first problem was the clock was very slow 1 step per second
The crystal on the board is k19.660 im not sure what the frequency of it is
so just to get the program to work I reduced the delay to something stupidly short
And the motor was spinning at a reasonable speed
But when I hover my hand above the osciltor switches the speed of the motor goes up and it becomes erratic
So I took off the motor and wired a led to blink
And with a really short delay the blink of the led is really noticable
And frequency changes as I hover my hand ovrr the crystal
and it stops the program is I touch the metal of the port connector
Could you tell me what is going on
Also what is the frequency of the oscilator, I thought it.was 19MHz but the way the harware is working it doesnt seem that.
The pic im using is p16f877a and im using assembley and mplab to program it