sparx Posted October 29, 2013 Report Share Posted October 29, 2013 Hello all, been playing about with the Scan Matrix examples for PIC cores, that's all working fine. Is there a way to use the DIn for some other buttons? TIA S Quote Link to comment Share on other sites More sharing options...
TK. Posted October 29, 2013 Report Share Posted October 29, 2013 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. Quote Link to comment Share on other sites More sharing options...
sparx Posted October 30, 2013 Author Report Share Posted October 30, 2013 Thanks, I was using example 2, but switched to example 1 and can report good progress. Thanks again. S Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.