Jump to content

Recommended Posts

Posted

Hello, a mios/midibox newby here....

I need (or at least want) the ability for my midio128 to be able to turn on one full DOUT bank(8 pins) on a single note on command, while yet another set of 8 note values control the same 8 pins individually.

For example;

90 29 controls 1-2-3-4-5-6-7-8 all at once

90 30 controls 1

90 31 controls 2

....

90 37 controls 7

Any suggestions for a solution?

Regards,

Jerry

Posted

Hi Jerry,

I recomment to program this in C, at the http://www.ucapps.de/mios_c.html page you will find some examples, how to process the digital inputs and outputs.

If "90 29" should control 8 digital outputs at once, then you only need to add:


  if( evnt0 == 0x90 && evnt1 == 0x29 )
    for(i=0; i<8; ++i)
      MIOS_DOUT_PinSet(i, evnt2 == 0x00 ? 0 : 1);
[/code]

...to the MPROC_NotifyReceivedEvnt hook

Best Regards, Thorsten.

Posted

Thorsten,

Thank you for the prompt response. Unfortunetly, I have yet to buy a C complier for the PIC processor and  I can not get SDCC  to compile anything, probably my error.

I will make a run at this in assembly.

Regards

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...
×
×
  • Create New...