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

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
Sign in to follow this  

×