H.P. de Vries wrote: > > For all you guys who have time to spare , could you please take a > look at this: > > I'm creating a MIDI device which has to send a program-change command. > For you guys who don't know the MIDI-protocol: > 31.125 KHz serial data, 1 startbit (LOW) , 8 databits, LSB first, 1 (or > more) stopbit (high). ( ==> 1 bit == 32 cycles@4MHz clock) That's about > what the following routine's should do... > The problem is, it won't transmit program-changes with program-numbers > >99 . I just dont get it.. > > ;This one should do the byte-sending incl. start-stopbits: Ehm.. Don't quite know how to say this... But it works. (Timing isnt 100%, but within MIDI specs. ) It kinda worked all the time... Turns out m MIDI-testing device only has 100 presets.. It's alway the most obvious..... (now you can laugh at me;) ) Hans