Downloading from Gadgetforge - Stepper Controller Peripheral Core

Recommended Posts



I stumbled upon Gadgetforge as I was looking for a simple stepper motor design to play with on a cypress psoc board.     I wish I would have known about the Papilio before I bought it.. the cypress psoc board is a bit more complicated for a newbie.


Anyways, I understand the code at the old site , is outdated compared to / however I can't seem to find the referenced verilog & vhdl files anywhere:  (BPW5005_1axis_Stepper_Controller_Core.v ? BPW5005_1axis_Stepper_Controller_Core.vhd ?)


The only file that looks close, the registers don't seem to match the old tutorial..



Are the old files still available anywhere?   I'd be eternally grateful if someone could post it here, or PM / email it (my username @ lycos dot com).







Share this post

Link to post
Share on other sites

Thanks,   I didn't think the registers matched the tutorial, but I see that they do now!  My vhdl isn't as good as my verilog, which isn't very good either I'm afraid   :unsure:  .  And to make matters worse I had to massage the file in order for it to synthesize on my wishbone-less design!    (Who would've thought wishbone needs not only CS/WE but also CYC and STB to latch data?!)



Regarding the calculations, if I understand correctly, the system clock (in mhz) goes to the SMTBASE register, while the step frequency (in microseconds) is written to SMPERIOD, correct?



There's a note on the old page about a header file containing macros for the above calculations (I assume also for the prescaler).. is that in the Arduino / Papilio sketch?

Share this post

Link to post
Share on other sites

It's been too long since I did anything with that core, I don't remember what the registers do. I do know there was no header file anywhere...


Attached is the sketch I have that I used to test the core, maybe that can shed some light.



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now