Jump to content

MIOS_DOUT_SRSET


robinfawell
 Share

Recommended Posts

In the absence of TK I would be obliged if anyone could clarify the use of the above function.

Can I use this function to enter any binary input pattern into any of the DOUT registers (0-15)?

Can I regard MIOS_PARAMETER1 as a temporary register?

Could I, for example, in the program use it to enter the current Din and then subsequently use it to enter the value of the shift register pattern in MIOS_DOUT_SRSET?

Regards Robin

Link to comment
Share on other sites

Hi Robin,

first question: yes

second question: yes (MIOS_PARAMETER1 won't be overwritten)

third question: I'm not sure what you are planning to do exactly, but I want to warn you that the DOUTs won't be updated directly, but only every 1 mS

Best Regards, Thorsten.

Link to comment
Share on other sites

Thanks for the reply.

This query concerns the LED display pattern for a particular Radio Button Group.  Depending on the particular Din for that Radio Button Group and whether this is a repeat (or second Press)  I want to display the appropriate LED pattern for that group to record the Din (or not).  

In the group only one LED is lit or if second press then all LED's off.

I will enter the SR number in WREG and the appropriate binary pattern in MOIS_ Para'1.  

Is this concept OK?

I hope this is clear.

Regards Robin

Link to comment
Share on other sites

Hi Robin,

alright, now it's clear - this will work.

Hint: if you've saved the button number of the group, you can convert it to 1-of-8 code (which is possibly for which you are looking for) with the MIOS_HLP_GetBitORMask - the result is the LED pattern which can be forwarded to MIOS_DOUT_SRSet

Best Regards, Thorsten.

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.

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.

Loading...
 Share

×
×
  • Create New...