More than one clock from the PIC to drive L297

Results 1 to 5 of 5

Thread: More than one clock from the PIC to drive L297

  1. #1
    Registered
    Join Date
    Feb 2013
    Location
    Croatai
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default More than one clock from the PIC to drive L297

    Hello !

    I need to send clock signal (in this case at least two clock signals) from a PIC to L297 stepper motor driver. In other words, I need to control at least two motors at a time.

    Now, with one motor driven at a time there is no problem, but I will need more than that. Clock send to L297, as you know, determines speed of the stepper, e.g. number of steps in time. Problem is that I would need more than one clock signal from the PIC, different frequencies, of course.

    Currently, I am using 16F877 but I am not sure that I can do it with this controller. Any recommendation would be helpful.

    Thank you,

    Josip

    Similar Threads:


  2. #2
    Gold Member
    Join Date
    Jan 2005
    Location
    Toronto, Canada
    Posts
    1695
    Downloads
    0
    Uploads
    0

    Default

    Why not use the output compare modules?



  3. #3
    Registered
    Join Date
    Feb 2013
    Location
    Croatai
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by H500 View Post
    Why not use the output compare modules?
    Thank you for the reply.

    Actually, I did not use this method before. So, what type of PIC do you recommend, considering the fact that I need lots of ports (I am controlling 6 steppers) ?

    From reading 16f's datasheets I do not see this can be done with these.

    Josip



  4. #4
    Gold Member
    Join Date
    Jan 2005
    Location
    Toronto, Canada
    Posts
    1695
    Downloads
    0
    Uploads
    0

    Default

    I'm not sure how fast you need to step or whether you need to generate acceleration profiles and accurate positioning, but the pic24 or dspic can run much faster than the 16f.



  5. #5
    Member
    Join Date
    Feb 2007
    Location
    canada
    Posts
    962
    Downloads
    0
    Uploads
    0

    Default

    You can use bresenhams algorithm to generate the 2 outputs. You can use an 8 bit or 16 bit.
    With 8 bit you probably can get 50-100 Khz on your 8 bit pic.

    Manufacturer of CNC routers and Viper Servo Drives
    www.LarkenCNC.com and www.Viperservo.com


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

More than one clock from the PIC to drive L297

More than one clock from the PIC to drive L297