Shop OBEX P1 Docs P2 Docs Learn Events
Need advice on project — Parallax Forums

Need advice on project

anita1984anita1984 Posts: 23
edited 2008-11-10 18:50 in Learn with BlocklyProp
I have been doing a lot of reading and playing with sample codes( Spin language), but I’m missing something.
I believe the code I need will only be a dozens lines, so I keep reading and trying.The first step on my project is to control the speed of a motor( in Propeller Assembly language ) from 1 up to 4KHz and duty cycle 50%.I don't know in this case what is better to choose CTRMODE : %0001X for clock generation or CTRMODE : %0010X NCO ????
NB: i don't need to generate a PWM signal.
Thank you in Advance

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-11-09 16:30
    You might get quicker answers with a more descriptive title for your post and posting in the propeller forum. That's my advice.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • edited 2008-11-10 18:50
    See the PWM section in the Counter Modules and Circuit Applications PE Kit Lab for a Spin prototype.

    http://forums.parallax.com/showthread.php?p=617192

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Andy Lindsay

    Education Department
    Parallax, Inc.
Sign In or Register to comment.