Adjustable clock generator

mattg

New Member
Hello! I am trying to use a stepper motor driver chip (STK672-330) to drive a stepper motor. Can i use a 40X1 to generate an adjustable clock signal (0 to 50Khz)? if so, how? Thanks!
 

eclectic

Moderator
Hallo mattg, and welcome to the Forum

An adjustable signal sounds perfectly feasible, with a 40X1

Can you post a link to the driver datasheet please?

Then it will be easier for folks to offer advice.

e
 

eclectic

Moderator
Thanks matt.

Are you familiar with the pwwmout command?

It'll provide a background "clock" from ~3900 Hz to 50 kHz

Below 3900, other methods are available.
Can you give a little more background to your project please?

e
 

Andrew Cowan

Senior Member
You should use the PWMout command to make the signal, probably with a duty cycle of 50%.

Bear in mind that this can only be used on certain pins.

A
 
Last edited:

mattg

New Member
Thank you for the advice, i will look into it. I am new to microcontrollers alltogether and am just starting to play with these.
As for a project, i really dont have anything specific planned, i just want to see if i can get this to work.
 

eclectic

Moderator
Thank you for the advice, i will look into it. I am new to microcontrollers alltogether and am just starting to play with these.
As for a project, i really dont have anything specific planned, i just want to see if i can get this to work.
OK.

Please download the Programming Editor,
then you can use the excellent manuals
and the Simulator.

e
 
Top