Dear Thorsten
I am back on the organ project after a summer break.
It seems to me that I should be able to utilise the Dout shift register of my F0 meta group to record the toggle state of 3 push buttons. This requires a different behaviour to my radio groups ( now working).
I have 3 buttons
First press sends sysex message; Second press sends a different sysex message. They are independent from each other.
;;GrpF0 (Not Radio Group): Deals with "single" Buttons where a given Din triggers a sysex message
;; The next Din is unused and allows a Cancel Sysex to be sent.
MIDIO_META_Handler_F0
movf MIDI_EVNT1, W
call MIOS_DOUT_PinGet; Has this Dout been set previously?
btfss MIOS_PARAMETER1, 0 ; tests Dout state
rgoto MIDIO_GRPF0_SYSEX_SEND
addlw 0x01; adds 1 to W thus increasing MIDI_EVNT by 1
call MIOS_DOUT_PinSet0
rgoto MIDIO_BANKSTICK_DUMP_GET
MIDIO_GRPF0_SYSEX_SEND
movf MIDI_EVNT1, W
call MIOS_DOUT_PinSet1
rgoto MIDIO_BANKSTICK_DUMP_GET
This works to some extent then causes the PC to crash. Please comment.
Regards Robin