Jump to content

Power Up Counter Retain Value


Recommended Posts

Hi Baskar, 

If you are using a HSC with reload you will not be able to directly manipulate the value of the counter. You can perform the same actions as you are: however you will need to sore the actual HSC into a buffer. You will need to account for the value that is retained within the HSC, You can store this into a new buffer and subtract to generate a home of 0. You can also trigger the reload event of the HSC. You can then add  t he new counts (MI0 = Buffer MI = actual counts) It is because we cannot directly store into the HSC register that prohibits the operation you have shown. 

Please let us know of this helps.

Thanks

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.

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.

×
×
  • Create New...