Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
16-bit division in PIC18?
Post Body

Hey guys,

I am trying to perform division where both the dividend and the divisor are 16-bits in length. I am doing this within a PIC18xxx environment and I am trying all sorts of code within a simulator. I can manage 16 / 8 division, but I don't know how to handle 16 / 16 within an 8-bit environment. I know I have to pursue repeated subtraction...

Any advice, or code examples? This seems to be the one type of arithmetic that I can't find code examples of online. I have been using EA60 divided by 2710 for an easy quotient of 6 with no remainder.

Author
User Disabled
Account Strength
0%
Disabled 2 months ago
Account Age
10 years
Verified Email
No
Verified Flair
No
Total Karma
12,929
Link Karma
110
Comment Karma
12,819
Profile updated: 4 days ago
Posts updated: 6 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago