Jump to content

HCPL 2731 optocoupler - MIDI IN frame error


bosone

Recommended Posts

is someone using this optocoupler instead of the standard 6n138?

i could not find the 6n here, so i went for this two channel optocoupler...

it has different wiring, but i think i mounted it correcly...

i hooked midi input to pin 1 and 2 (the resisor go to pin 1 and the diode to pin 2 towards pin 1, as in standard 6n wiring)

i connected a 5.6 K on the pin 6 (V02 out) - this seems useless to me, but i mounted anyway

and the pic to pin 7 (V01 out) with the 1.2 K to +5V

pin 3/4 are open

when i try to upload mios using this optocoupler i get the message "MIDI IN frame error"...    ??? ???

but i uploaded mios application in this core module using another working core module and, when i use the 2731 midi in with MIDIOX in this new module, i  can get a "ping" sysex string back after a request... so it seems that "something" is working, but not correctly!

thanks for any help!

it's the last step to a fully-working AC Sensorizer box!  ;D

Link to comment
Share on other sites

Hi,

to me it sound like an problem with the output signal of the optocoupler. Try an smaller resistor perhaps 1K or less.

A second thing, perhaps your pic is clocked to slow. So it can be the wrong crystal. But with an feasibility of about 95% it should be a problem with the optocoupler.

Greetings

Markus

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