Jump to content

Scan Matrix and DIn


sparx
 Share

Recommended Posts

I guess that you mean sm_c_example1 with the sm_simple.asm driver, and that you want to use the DIN shift register selected with SM_ROW_DIN only partly for a matrix. Some remaining pins of this SM_ROW_DIN should be used for normal button functions, right?

 

Yes, this is possible. Since the driver uses "MIOS_DIN_SRGet" instead of "MIOS_DIN_ChangedSet00", you even don't need to touch the .asm file

 

DIN_NotifyToggle() should be called on any pin toggle. So, just filter out the pins which are part of the matrix, all other pins can be used like "normal" inputs.

 

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...