Jump to content

Testing buttons/encoders?


program_insect
 Share

Recommended Posts

TK, as usual, thanks for your quick response and help.  Hopefully you can shed some light on this situation...

I installed the MIDIO128 application like you suggested, and this makes it easier to see the erratic behavior.  The buttons seem to be working at random.  I have 6 buttons and 1 encoder.  They are wired to ports J3 and J4 of one of SmashTV's DIN4 modules.  I stuffed all 4 ICs on that module but left all the other ports unwired.  All resistors are in place, even on the unused ports.

The weird behavior seems to be related to the first button.  When I boot MIDIO128 fresh, each button will send MIDI notes at first, but then they don't work after the first press.  The first button still sends data, but after the first event (two normal midi notes), it starts sending a bunch of data at once, some string of CC values.  The other buttons seem to stop working after this.  I checked the main lines for shorts and didn't find any.

The connections look OK with a meter...the pins of the IC are high when the button is open, and go low when the button is pressed.  (am I correct to assume these are active lows?)  It seems ok there.  Evidently the core is having some problem decoding the serial output from the DIN module?  Can you spot any pattern in this mess?  Is there a simpler test I can do to see what's going on?  Is the MIDIO128 application behaving normally (sending out a few midi notes at first, then a bunch of random CC data)?  Does this seem like a problem with the core module, or can I be certain that the problem is located in the DIN module?  All other core functions seem to be ok (LCD, playing the Sid from external midi notes, etc.).

Any help would be much appreciated here...I have no idea why the inputs are behaving in this manner!  I have attached the midi output from a small test using MIDIO128, with comments.

Thanks!  --- G

// START LOG

timestamp 8589000 us: Sysex message: F0 00 00 7E 40 00 01 F7

// button 1 pressed:

timestamp 17563000 us: [90 37 7F] channel 1: note On G3 velocity: 127

timestamp 17760000 us: [90 37 00] channel 1: note On G3 velocity: 0

// button 2 pressed:

timestamp 20029000 us: [90 36 7F] channel 1: note On F#3 velocity: 127

timestamp 20116000 us: [90 36 00] channel 1: note On F#3 velocity: 0

// button 3 pressed:

timestamp 22276000 us: [90 35 7F] channel 1: note On F3 velocity: 127

timestamp 22417000 us: [90 35 00] channel 1: note On F3 velocity: 0

// button 4 pressed:

timestamp 24169000 us: [90 34 7F] channel 1: note On E3 velocity: 127

timestamp 24294000 us: [90 34 00] channel 1: note On E3 velocity: 0

// at this point, I pressed buttons 5, 6 (menu), and rotated the encoder, but got no response (all are located on seperate jumper port).

// then I press button 1 again and get a bunch of stuff....the rest of this log is all from the single press!

timestamp 35307000 us: [90 30 7F] channel 1: note On C3 velocity: 127

timestamp 35308000 us: [90 31 7F] channel 1: note On C#3 velocity: 127

timestamp 35309000 us: [90 32 7F] channel 1: note On D3 velocity: 127

timestamp 35310000 us: [90 33 7F] channel 1: note On D#3 velocity: 127

timestamp 35311000 us: [90 34 7F] channel 1: note On E3 velocity: 127

timestamp 35312000 us: [90 35 7F] channel 1: note On F3 velocity: 127

timestamp 35313000 us: [90 36 7F] channel 1: note On F#3 velocity: 127

timestamp 35314000 us: [90 37 7F] channel 1: note On G3 velocity: 127

timestamp 35314000 us: [90 38 7F] channel 1: note On G#3 velocity: 127

timestamp 35315000 us: [90 39 7F] channel 1: note On A3 velocity: 127

timestamp 35316000 us: [90 3A 7F] channel 1: note On A#3 velocity: 127

timestamp 35317000 us: [90 3B 7F] channel 1: note On B3 velocity: 127

timestamp 35318000 us: [90 3C 7F] channel 1: note On C4 velocity: 127

timestamp 35319000 us: [90 3D 7F] channel 1: note On C#4 velocity: 127

timestamp 35320000 us: [90 3E 7F] channel 1: note On D4 velocity: 127

timestamp 35321000 us: [90 3F 7F] channel 1: note On D#4 velocity: 127

timestamp 35322000 us: [90 40 7F] channel 1: note On E4 velocity: 127

timestamp 35323000 us: [90 41 7F] channel 1: note On F4 velocity: 127

timestamp 35324000 us: [90 42 7F] channel 1: note On F#4 velocity: 127

timestamp 35325000 us: [90 43 7F] channel 1: note On G4 velocity: 127

timestamp 35326000 us: [90 44 7F] channel 1: note On G#4 velocity: 127

timestamp 35328000 us: [90 45 7F] channel 1: note On A4 velocity: 127

timestamp 35329000 us: [90 46 7F] channel 1: note On A#4 velocity: 127

timestamp 35330000 us: [90 47 7F] channel 1: note On B4 velocity: 127

timestamp 35331000 us: [90 48 7F] channel 1: note On C5 velocity: 127

timestamp 35332000 us: [90 49 7F] channel 1: note On C#5 velocity: 127

timestamp 35334000 us: [90 4A 7F] channel 1: note On D5 velocity: 127

timestamp 35334000 us: [90 4B 7F] channel 1: note On D#5 velocity: 127

timestamp 35335000 us: [90 4C 7F] channel 1: note On E5 velocity: 127

timestamp 35336000 us: [90 4D 7F] channel 1: note On F5 velocity: 127

timestamp 35336000 us: [90 4E 7F] channel 1: note On F#5 velocity: 127

timestamp 35337000 us: [90 4F 7F] channel 1: note On G5 velocity: 127

timestamp 35338000 us: [90 50 7F] channel 1: note On G#5 velocity: 127

timestamp 35338000 us: [90 51 7F] channel 1: note On A5 velocity: 127

timestamp 35339000 us: [90 52 7F] channel 1: note On A#5 velocity: 127

timestamp 35340000 us: [90 53 7F] channel 1: note On B5 velocity: 127

timestamp 35341000 us: [90 54 7F] channel 1: note On C6 velocity: 127

timestamp 35342000 us: [90 55 7F] channel 1: note On C#6 velocity: 127

timestamp 35343000 us: [90 56 7F] channel 1: note On D6 velocity: 127

timestamp 35344000 us: [90 57 7F] channel 1: note On D#6 velocity: 127

timestamp 35345000 us: [90 58 7F] channel 1: note On E6 velocity: 127

timestamp 35346000 us: [90 59 7F] channel 1: note On F6 velocity: 127

timestamp 35347000 us: [90 5A 7F] channel 1: note On F#6 velocity: 127

timestamp 35348000 us: [90 5B 7F] channel 1: note On G6 velocity: 127

timestamp 35349000 us: [90 5C 7F] channel 1: note On G#6 velocity: 127

timestamp 35350000 us: [90 5D 7F] channel 1: note On A6 velocity: 127

timestamp 35351000 us: [90 5E 7F] channel 1: note On A#6 velocity: 127

timestamp 35352000 us: [90 5F 7F] channel 1: note On B6 velocity: 127

timestamp 35353000 us: [90 60 7F] channel 1: note On C7 velocity: 127

timestamp 35354000 us: [90 61 7F] channel 1: note On C#7 velocity: 127

timestamp 35355000 us: [90 62 7F] channel 1: note On D7 velocity: 127

timestamp 35356000 us: [90 63 7F] channel 1: note On D#7 velocity: 127

timestamp 35357000 us: [90 64 7F] channel 1: note On E7 velocity: 127

timestamp 35358000 us: [90 65 7F] channel 1: note On F7 velocity: 127

timestamp 35359000 us: [90 66 7F] channel 1: note On F#7 velocity: 127

timestamp 35360000 us: [90 67 7F] channel 1: note On G7 velocity: 127

timestamp 35361000 us: [90 68 7F] channel 1: note On G#7 velocity: 127

timestamp 35362000 us: [90 69 7F] channel 1: note On A7 velocity: 127

timestamp 35362000 us: [90 6A 7F] channel 1: note On A#7 velocity: 127

timestamp 35363000 us: [90 6B 7F] channel 1: note On B7 velocity: 127

timestamp 35364000 us: [90 6C 7F] channel 1: note On C8 velocity: 127

timestamp 35365000 us: [90 6D 7F] channel 1: note On C#8 velocity: 127

timestamp 35366000 us: [90 6E 7F] channel 1: note On D8 velocity: 127

timestamp 35367000 us: [90 6F 7F] channel 1: note On D#8 velocity: 127

timestamp 35368000 us: [b0 10 7F] channel 1: cc GP Controller 1 value: 127

timestamp 35370000 us: [b0 11 7F] channel 1: cc GP Controller 2 value: 127

timestamp 35371000 us: [b0 12 7F] channel 1: cc GP Controller 3 value: 127

timestamp 35372000 us: [b0 13 7F] channel 1: cc GP Controller 4 value: 127

timestamp 35373000 us: [b0 14 7F] channel 1: cc Undefined value: 127

timestamp 35374000 us: [b0 15 7F] channel 1: cc Undefined value: 127

timestamp 35376000 us: [b0 16 7F] channel 1: cc Undefined value: 127

timestamp 35376000 us: [b0 17 7F] channel 1: cc Undefined value: 127

timestamp 35377000 us: [b0 18 7F] channel 1: cc Undefined value: 127

timestamp 35378000 us: [b0 19 7F] channel 1: cc Undefined value: 127

timestamp 35378000 us: [b0 1A 7F] channel 1: cc Undefined value: 127

timestamp 35386000 us: [b0 22 7F] channel 1: cc LSB 2 (Breath Controller) value: 127

timestamp 35386000 us: [b0 23 7F] channel 1: cc LSB 3 (Undefined) value: 127

timestamp 35387000 us: [b0 24 7F] channel 1: cc LSB 4 (Foot Controller) value: 127

timestamp 35388000 us: [b0 25 7F] channel 1: cc LSB 5 (Portamento Time) value: 127

timestamp 35389000 us: [b0 26 7F] channel 1: cc LSB 6 (Data Entry) value: 127

timestamp 35390000 us: [b0 27 7F] channel 1: cc LSB 7 (Channel Volume) value: 127

timestamp 35391000 us: [b0 28 7F] channel 1: cc LSB 8 (Balance) value: 127

timestamp 35392000 us: [b0 29 7F] channel 1: cc LSB 9 (Undefined) value: 127

timestamp 35393000 us: [b0 2A 7F] channel 1: cc LSB 10 (Pan) value: 127

timestamp 35394000 us: [b0 2B 7F] channel 1: cc LSB 11 (Expression Controller) value: 127

timestamp 35395000 us: [b0 2C 7F] channel 1: cc LSB 12 (Effect  1) value: 127

timestamp 35396000 us: [b0 2D 7F] channel 1: cc LSB 13 (Effect  2) value: 127

timestamp 35397000 us: [b0 2E 7F] channel 1: cc LSB 14 (Undefined) value: 127

timestamp 35398000 us: [b0 2F 7F] channel 1: cc LSB 15 (Undefined) value: 127

timestamp 35399000 us: [b0 30 7F] channel 1: cc LSB 16 (GP ler 1) value: 127

timestamp 35400000 us: [b0 31 7F] channel 1: cc LSB 17 (GP ler 2) value: 127

timestamp 35401000 us: [b0 32 7F] channel 1: cc LSB 18 (GP ler 3) value: 127

timestamp 35402000 us: [b0 33 7F] channel 1: cc LSB 19 (GP ler 4) value: 127

timestamp 35403000 us: [b0 34 7F] channel 1: cc LSB 20 (Undefined) value: 127

timestamp 35404000 us: [b0 35 7F] channel 1: cc LSB 21 (Undefined) value: 127

timestamp 35405000 us: [b0 36 7F] channel 1: cc LSB 22 (Undefined) value: 127

timestamp 35406000 us: [b0 37 7F] channel 1: cc LSB 23 (Undefined) value: 127

timestamp 35407000 us: [b0 38 7F] channel 1: cc LSB 24 (Undefined) value: 127

timestamp 35408000 us: [b0 39 7F] channel 1: cc LSB 25 (Undefined) value: 127

timestamp 35409000 us: [b0 3A 7F] channel 1: cc LSB 26 (Undefined) value: 127

timestamp 35411000 us: [b0 3B 7F] channel 1: cc LSB 27 (Undefined) value: 127

timestamp 35411000 us: [b0 3C 7F] channel 1: cc LSB 28 (Undefined) value: 127

timestamp 35412000 us: [b0 3D 7F] channel 1: cc LSB 29 (Undefined) value: 127

timestamp 35412000 us: [b0 3E 7F] channel 1: cc LSB 30 (Undefined) value: 127

timestamp 35414000 us: [b0 3F 7F] channel 1: cc LSB 31 (Undefined) value: 127

timestamp 35415000 us: [b0 40 7F] channel 1: cc Damper Pedal On/Off (Sustain) value: 127

timestamp 35417000 us: [b0 41 7F] channel 1: cc Portamento On/Off value: 127

timestamp 35417000 us: [b0 42 7F] channel 1: cc Sustenuto On/Off value: 127

timestamp 35418000 us: [b0 43 7F] channel 1: cc Soft Pedal On/Off value: 127

timestamp 35419000 us: [b0 44 7F] channel 1: cc Legato Footswitch value: 127

timestamp 35420000 us: [b0 45 7F] channel 1: cc Hold 2 value: 127

timestamp 35420000 us: [b0 46 7F] channel 1: cc Sound Controller 1 value: 127

timestamp 35421000 us: [b0 47 7F] channel 1: cc Sound Controller 2 value: 127

timestamp 35422000 us: [b0 48 7F] channel 1: cc Sound Controller 3 value: 127

timestamp 35423000 us: [b0 49 7F] channel 1: cc Sound Controller 4 value: 127

timestamp 35424000 us: [b0 4A 7F] channel 1: cc Sound Controller 5 value: 127

timestamp 35425000 us: [b0 4B 7F] channel 1: cc Sound Controller 6 value: 127

timestamp 35426000 us: [b0 4C 7F] channel 1: cc Sound Controller 7 value: 127

timestamp 35427000 us: [b0 4D 7F] channel 1: cc Sound Controller 8 value: 127

timestamp 35428000 us: [b0 4E 7F] channel 1: cc Sound Controller 9 value: 127

timestamp 35429000 us: [b0 4F 7F] channel 1: cc Sound Controller 10 value: 127

timestamp 35447000 us: [90 30 00] channel 1: note On C3 velocity: 0

timestamp 35448000 us: [90 31 00] channel 1: note On C#3 velocity: 0

timestamp 35449000 us: [90 32 00] channel 1: note On D3 velocity: 0

timestamp 35450000 us: [90 33 00] channel 1: note On D#3 velocity: 0

timestamp 35451000 us: [90 34 00] channel 1: note On E3 velocity: 0

timestamp 35453000 us: [90 35 00] channel 1: note On F3 velocity: 0

timestamp 35454000 us: [90 36 00] channel 1: note On F#3 velocity: 0

timestamp 35455000 us: [90 37 00] channel 1: note On G3 velocity: 0

timestamp 35455000 us: [90 38 00] channel 1: note On G#3 velocity: 0

timestamp 35457000 us: [90 39 00] channel 1: note On A3 velocity: 0

timestamp 35459000 us: [90 3A 00] channel 1: note On A#3 velocity: 0

timestamp 35459000 us: [90 3B 00] channel 1: note On B3 velocity: 0

timestamp 35459000 us: [90 3C 00] channel 1: note On C4 velocity: 0

timestamp 35460000 us: [90 3D 00] channel 1: note On C#4 velocity: 0

timestamp 35461000 us: [90 3E 00] channel 1: note On D4 velocity: 0

timestamp 35461000 us: [90 3F 00] channel 1: note On D#4 velocity: 0

timestamp 35462000 us: [90 40 00] channel 1: note On E4 velocity: 0

timestamp 35463000 us: [90 41 00] channel 1: note On F4 velocity: 0

timestamp 35464000 us: [90 42 00] channel 1: note On F#4 velocity: 0

timestamp 35465000 us: [90 43 00] channel 1: note On G4 velocity: 0

timestamp 35466000 us: [90 44 00] channel 1: note On G#4 velocity: 0

timestamp 35467000 us: [90 45 00] channel 1: note On A4 velocity: 0

timestamp 35468000 us: [90 46 00] channel 1: note On A#4 velocity: 0

timestamp 35469000 us: [90 47 00] channel 1: note On B4 velocity: 0

timestamp 35470000 us: [90 48 00] channel 1: note On C5 velocity: 0

timestamp 35471000 us: [90 49 00] channel 1: note On C#5 velocity: 0

timestamp 35472000 us: [90 4A 00] channel 1: note On D5 velocity: 0

timestamp 35473000 us: [90 4B 00] channel 1: note On D#5 velocity: 0

timestamp 35474000 us: [90 4C 00] channel 1: note On E5 velocity: 0

timestamp 35475000 us: [90 4D 00] channel 1: note On F5 velocity: 0

timestamp 35476000 us: [90 4E 00] channel 1: note On F#5 velocity: 0

timestamp 35477000 us: [90 4F 00] channel 1: note On G5 velocity: 0

timestamp 35478000 us: [90 50 00] channel 1: note On G#5 velocity: 0

timestamp 35479000 us: [90 51 00] channel 1: note On A5 velocity: 0

timestamp 35480000 us: [90 52 00] channel 1: note On A#5 velocity: 0

timestamp 35481000 us: [90 53 00] channel 1: note On B5 velocity: 0

timestamp 35481000 us: [90 54 00] channel 1: note On C6 velocity: 0

timestamp 35482000 us: [90 55 00] channel 1: note On C#6 velocity: 0

timestamp 35483000 us: [90 56 00] channel 1: note On D6 velocity: 0

timestamp 35484000 us: [90 57 00] channel 1: note On D#6 velocity: 0

timestamp 35485000 us: [90 58 00] channel 1: note On E6 velocity: 0

timestamp 35486000 us: [90 59 00] channel 1: note On F6 velocity: 0

timestamp 35487000 us: [90 5A 00] channel 1: note On F#6 velocity: 0

timestamp 35488000 us: [90 5B 00] channel 1: note On G6 velocity: 0

timestamp 35489000 us: [90 5C 00] channel 1: note On G#6 velocity: 0

timestamp 35490000 us: [90 5D 00] channel 1: note On A6 velocity: 0

timestamp 35491000 us: [90 5E 00] channel 1: note On A#6 velocity: 0

timestamp 35492000 us: [90 5F 00] channel 1: note On B6 velocity: 0

timestamp 35494000 us: [90 60 00] channel 1: note On C7 velocity: 0

timestamp 35495000 us: [90 61 00] channel 1: note On C#7 velocity: 0

timestamp 35496000 us: [90 62 00] channel 1: note On D7 velocity: 0

timestamp 35497000 us: [90 63 00] channel 1: note On D#7 velocity: 0

timestamp 35498000 us: [90 64 00] channel 1: note On E7 velocity: 0

timestamp 35498000 us: [90 65 00] channel 1: note On F7 velocity: 0

timestamp 35501000 us: [90 66 00] channel 1: note On F#7 velocity: 0

timestamp 35501000 us: [90 67 00] channel 1: note On G7 velocity: 0

timestamp 35502000 us: [90 68 00] channel 1: note On G#7 velocity: 0

timestamp 35503000 us: [90 69 00] channel 1: note On A7 velocity: 0

timestamp 35503000 us: [90 6A 00] channel 1: note On A#7 velocity: 0

timestamp 35504000 us: [90 6B 00] channel 1: note On B7 velocity: 0

timestamp 35505000 us: [90 6C 00] channel 1: note On C8 velocity: 0

timestamp 35505000 us: [90 6D 00] channel 1: note On C#8 velocity: 0

timestamp 35506000 us: [90 6E 00] channel 1: note On D8 velocity: 0

timestamp 35507000 us: [90 6F 00] channel 1: note On D#8 velocity: 0

timestamp 35508000 us: [b0 10 00] channel 1: cc GP Controller 1 value: 0

timestamp 35509000 us: [b0 11 00] channel 1: cc GP Controller 2 value: 0

timestamp 35510000 us: [b0 12 00] channel 1: cc GP Controller 3 value: 0

timestamp 35511000 us: [b0 13 00] channel 1: cc GP Controller 4 value: 0

timestamp 35512000 us: [b0 14 00] channel 1: cc Undefined value: 0

timestamp 35513000 us: [b0 15 00] channel 1: cc Undefined value: 0

timestamp 35514000 us: [b0 16 00] channel 1: cc Undefined value: 0

timestamp 35515000 us: [b0 17 00] channel 1: cc Undefined value: 0

timestamp 35516000 us: [b0 18 00] channel 1: cc Undefined value: 0

timestamp 35517000 us: [b0 19 00] channel 1: cc Undefined value: 0

timestamp 35518000 us: [b0 1A 00] channel 1: cc Undefined value: 0

timestamp 35519000 us: [b0 1B 00] channel 1: cc Undefined value: 0

timestamp 35520000 us: [b0 1C 00] channel 1: cc Undefined value: 0

timestamp 35521000 us: [b0 1D 00] channel 1: cc Undefined value: 0

timestamp 35522000 us: [b0 1E 00] channel 1: cc Undefined value: 0

timestamp 35523000 us: [b0 1F 00] channel 1: cc Undefined value: 0

timestamp 35524000 us: [b0 20 00] channel 1: cc LSB 0 (Bank Select) value: 0

timestamp 35525000 us: [b0 21 00] channel 1: cc LSB 1 (Modulation Wheel) value: 0

timestamp 35526000 us: [b0 22 00] channel 1: cc LSB 2 (Breath Controller) value: 0

timestamp 35527000 us: [b0 23 00] channel 1: cc LSB 3 (Undefined) value: 0

timestamp 35528000 us: [b0 24 00] channel 1: cc LSB 4 (Foot Controller) value: 0

timestamp 35529000 us: [b0 25 00] channel 1: cc LSB 5 (Portamento Time) value: 0

timestamp 35529000 us: [b0 26 00] channel 1: cc LSB 6 (Data Entry) value: 0

timestamp 35530000 us: [b0 27 00] channel 1: cc LSB 7 (Channel Volume) value: 0

timestamp 35531000 us: [b0 28 00] channel 1: cc LSB 8 (Balance) value: 0

timestamp 35532000 us: [b0 29 00] channel 1: cc LSB 9 (Undefined) value: 0

timestamp 35533000 us: [b0 2A 00] channel 1: cc LSB 10 (Pan) value: 0

timestamp 35534000 us: [b0 2B 00] channel 1: cc LSB 11 (Expression Controller) value: 0

timestamp 35536000 us: [b0 2C 00] channel 1: cc LSB 12 (Effect  1) value: 0

timestamp 35537000 us: [b0 2D 00] channel 1: cc LSB 13 (Effect  2) value: 0

timestamp 35538000 us: [b0 2E 00] channel 1: cc LSB 14 (Undefined) value: 0

timestamp 35539000 us: [b0 2F 00] channel 1: cc LSB 15 (Undefined) value: 0

timestamp 35540000 us: [b0 30 00] channel 1: cc LSB 16 (GP ler 1) value: 0

timestamp 35542000 us: [b0 31 00] channel 1: cc LSB 17 (GP ler 2) value: 0

timestamp 35542000 us: [b0 32 00] channel 1: cc LSB 18 (GP ler 3) value: 0

timestamp 35543000 us: [b0 33 00] channel 1: cc LSB 19 (GP ler 4) value: 0

timestamp 35544000 us: [b0 34 00] channel 1: cc LSB 20 (Undefined) value: 0

timestamp 35545000 us: [b0 35 00] channel 1: cc LSB 21 (Undefined) value: 0

timestamp 35545000 us: [b0 36 00] channel 1: cc LSB 22 (Undefined) value: 0

timestamp 35546000 us: [b0 37 00] channel 1: cc LSB 23 (Undefined) value: 0

timestamp 35547000 us: [b0 38 00] channel 1: cc LSB 24 (Undefined) value: 0

timestamp 35548000 us: [b0 39 00] channel 1: cc LSB 25 (Undefined) value: 0

timestamp 35549000 us: [b0 3A 00] channel 1: cc LSB 26 (Undefined) value: 0

timestamp 35550000 us: [b0 3B 00] channel 1: cc LSB 27 (Undefined) value: 0

timestamp 35551000 us: [b0 3C 00] channel 1: cc LSB 28 (Undefined) value: 0

timestamp 35552000 us: [b0 3D 00] channel 1: cc LSB 29 (Undefined) value: 0

timestamp 35553000 us: [b0 3E 00] channel 1: cc LSB 30 (Undefined) value: 0

timestamp 35553000 us: [b0 3F 00] channel 1: cc LSB 31 (Undefined) value: 0

timestamp 35554000 us: [b0 40 00] channel 1: cc Damper Pedal On/Off (Sustain) value: 0

timestamp 35555000 us: [b0 41 00] channel 1: cc Portamento On/Off value: 0

timestamp 35556000 us: [b0 42 00] channel 1: cc Sustenuto On/Off value: 0

timestamp 35557000 us: [b0 43 00] channel 1: cc Soft Pedal On/Off value: 0

timestamp 35558000 us: [b0 44 00] channel 1: cc Legato Footswitch value: 0

timestamp 35559000 us: [b0 45 00] channel 1: cc Hold 2 value: 0

timestamp 35560000 us: [b0 46 00] channel 1: cc Sound Controller 1 value: 0

timestamp 35561000 us: [b0 47 00] channel 1: cc Sound Controller 2 value: 0

timestamp 35562000 us: [b0 48 00] channel 1: cc Sound Controller 3 value: 0

timestamp 35563000 us: [b0 49 00] channel 1: cc Sound Controller 4 value: 0

timestamp 35564000 us: [b0 4A 00] channel 1: cc Sound Controller 5 value: 0

timestamp 35565000 us: [b0 4B 00] channel 1: cc Sound Controller 6 value: 0

timestamp 35566000 us: [b0 4C 00] channel 1: cc Sound Controller 7 value: 0

timestamp 35567000 us: [b0 4D 00] channel 1: cc Sound Controller 8 value: 0

timestamp 35568000 us: [b0 4E 00] channel 1: cc Sound Controller 9 value: 0

timestamp 35569000 us: [b0 4F 00] channel 1: cc Sound Controller 10 value: 0

// END LOG

Link to comment
Share on other sites

No, a wrongly connected encoder cannot cause this behaviour.

MIDIO128 sends all 128 events which are assigned to the digital inputs. So, it seems, that there is a problem with the clock line (in simple words: if the shift registers cannot be clocked, the first pin in the chain will send all events at once)

Either the clock line is not connected properly, or there is a short. This can be measured very easily: put all ICs (PIC, 74HC165) out of the socket, and use your measure to check the contacts (if it provides a "beeper", then use it, otherwise use the ohm-meter function).

Check:

  - Core J8:SC against ground: no contact

  - Core J8:RC against ground: no contact

  - Core J8:SI against ground: no contact

  - Core J8:SC against J8:RC and J8:SC against J8:SI: no contact

  - Core J8:SC to J1:SC of the DIN module: there must be a contact

Best Regards, Thorsten.

Link to comment
Share on other sites

There are some other possible connection errors, which you've propably not tested (e.g. signals against the 5V line).

However, in order to simplify the debugging procedure, I've written a new test program which simplifies this:

http://www.ucapps.de/mios/srio_interconnection_test_v1.zip

from the main.asm header:

[tt]

; A CORE->DIN/DOUT Module Interconnection Test

;

; This application allows you to check the interconnections to the DIN and DOUT module

; with a multimeter. You can control the SR/RC/DO pins by sending a Modulation Wheel

; event to your MIDIbox Core - just connect a keyboard or use

; MIDI-Ox (View->Control Panel)

;

; By default all unselected pins are 0V, except for the CS# pin which is 5V

;

; The Pins are mapped to following Modulation Wheel Values:

;

;    # 0: Pin CORE::J8:DO and DOUT::J1:DO = ca. 5V

;    # 1: Pin CORE::J8:SC, CORE::J9:SC, DOUT::J1:SC, DIN::J1:SC = ca. 5V

;    # 2: Pin CORE::J8:RC, CORE::J9:RC, DOUT::J1:RC, DIN::J1:RC = ca. 5V

;

; The pin names are also visible on LCD (if connected)

;

; If you measure a voltage much less than 4.8V (e.g. < 3V or even 0V), then

; there is either a short circuit or a missing connection between

; the signal lines

;

; If a certain shift register is not working, you could measure the

; SC/RC voltages directly at the pins of the 74HC595/74HC165, please have

; a look into the schematics:

;    http://www.ucapps.de/mbhp/mbhp_doutx4.pdf

;    http://www.ucapps.de/mbhp/mbhp_dinx4.pdf

;

; The J9:DI pin can be tested with the MIDIO128 application,

; once you've ensured that SR/RC are working

; Each digital input of the DINX4 module has to trigger a single MIDI event

[/tt]

Is it significant that the buttons seemed to work at first, but then immediatley stopped working after that?

Maybe a bad soldering joint? (waggly connection)

The new program should help you to identify this.

Best Regards, Thorsten.

Link to comment
Share on other sites

I am extremely grateful for your help in this debug!!!  I can't believe you bothered to post a test app just for me  8)

Using your app I was able to narrow down my troubleshooting and I finally found the problem...I had added an extra capacitor instead of a bridge on the DIN board...YES, adding components at random has the possibility of messing up the circuit!!!!  That was stupid, but then again bugs always seem to be stupid once you fix them :)

Thanks again for all your help.  Your latest DIN/DOUT/CORE test was useful for narrowing down where the problem was happening.

Do you have a collection box (donations) set up for all your hard work???

-- Gideon

Link to comment
Share on other sites

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...
 Share

×
×
  • Create New...