solarix Posted February 7, 2006 Report Posted February 7, 2006 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 once90 30 controls 190 31 controls 2....90 37 controls 7Any suggestions for a solution?Regards,Jerry Quote
TK. Posted February 7, 2006 Report Posted February 7, 2006 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 hookBest Regards, Thorsten. Quote
solarix Posted February 7, 2006 Author Report Posted February 7, 2006 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 Quote
solarix Posted February 7, 2006 Author Report Posted February 7, 2006 I got SDCC...... Windows :)Thanks a million!Jerry Quote
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.