julienvoirin Posted July 17, 2007 Report Share Posted July 17, 2007 Hello allI ve made a scan matrix on a PCB. It uses sm_example application and it goes well.But i ve added 4 buttons on a second DIN shift register and 8 leds on a second DOUT. The DINx2 and DOUTx2 are connected to J9/J8.Is it possible to drive all this using ports J8 and J9 or do I have to move to other port ?according to TK : I created an assembly based example which demonstrates, how to scan a matrix (-> sm_example2_v1.zip, see MIOS download page). The latency is about 80 uS for 64 buttons. The code for velocity detection needs to be added.If additional switches and encoders should be used in parallel, it would be required to connect the DIN/DOUT chain to seperate pins (thats possible, the pins are defined in sm_fast.inc) - I would propose J6 and J7, since these ports are designed for such purposeshttp://www.midibox.org/forum/index.php?topic=6386.0And some help for the code would be appreciated, i wanted to use switch and case commands but i think i also need to configure sm.asm for the port and definition of SRIO.Bestregards Quote Link to comment Share on other sites More sharing options...
QBAS Posted July 19, 2007 Report Share Posted July 19, 2007 Hi!I have worked setup with bigger switch matrix and on the same core additional DOUTX module for handling led matrix. But it is done in ASM and without SRIO. you can check thisQBAS Quote Link to comment Share on other sites More sharing options...
julienvoirin Posted August 1, 2007 Author Report Share Posted August 1, 2007 problem solvedin fact it is very easy in C ; i just had to get the good pin number (SR#2, so pin 8 to 15) according to http://www.ucapps.de/mios/mios_din_dout_pin_numbers.txtthanks for advices 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.