sparx Posted October 29, 2013 Report 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
TK. Posted October 29, 2013 Report 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.
sparx Posted October 30, 2013 Author Report Posted October 30, 2013 Thanks, I was using example 2, but switched to example 1 and can report good progress. Thanks again. S
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now