Jump to content

Simple addition function does not always update

Recommended Posts

I am using a JZ20-R31.


I have been using a program I wrote that monitors a HSC then adds a value to the HSC and saves it into a different MI. What I have noticed is that the system works great as long as the HSC is a positive number. When it overflows to a negative it will randomly not execute the math function. I am thinking that this a limitation of the controller having a 3 to 4ms scan time. Any thoughts on this issue?

Link to comment
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.

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.

  • Create New...