How to make working one HCTL2016 and a PIC16F876


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    hawk72501's Avatar
    hawk72501 Guest


    Did you find this post helpful? Yes | No

    Unhappy

    Thanks for answering.I don't want nothing extreme.Just to have a number in PIC16F876(for example 16 degrees or 352.16 degrees,something like that) how many degrees the motor turned. The concept is to make a PD controller.But in order to make the PD controller i must subtract the desire degrees of rotating the motor (turn 5 degrees) with the actual.And i want to control the actual degree.The first i made it with a SERIN2.They said to me that the encoder gives pulses and in order to make them 0 or 1 i must have the HCTL.Is that wrong?

    i really didn't understand much from your code (f.e what is >>6).Can you be please more specific?Sorry but i am now beginning....
    Last edited by hawk72501; - 9th July 2005 at 13:28.

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    hawk,

    I'm sorry I have to say this,
    but how about having a look at your chips datasheets and the PBP Manual?

    i.e.
    "<<" and ">>" are described in Section 4.17.3 of the Manual
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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