Jump to content
Sign in to follow this  
ebourlet

Adjustable Bit-Switch?

Recommended Posts

First of all thanks for sharing your work with us non code types. Is there a posibility of a Bit-Switch that the user can set the switching points?

I have a use that I would like to set a pulse width range that the output is active.

Share this post


Link to post
Share on other sites

The end points are fixed. However, for those that have the experience to edit the hex files, different values can be used. The On/Off setpoints are MOVLW instructions and are currently coded as follows:

Normal Output Pin:

Low Stick threshold, addr 0x8d, MOVLW 0x92

High Stick threshold, addr 0x9d, MOVLW 0x88

Reversed Output Pin:

Low Stick threshold, addr 0xa9, MOVLW 0x75

High Stick threshold, addr 0xb9, MOVLW 0x7F

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...