Jump to content

Recommended Posts

Posted

Hi this must be considered quite off-topic but this seems to be the most active midi and pic forum...

The problem: I'm using a 16f84 @ 4mhz and i am trying to do some midi message transfer by bitbanging, but i cant seem to get it to work, my midimonitor keeps displaying multiple messages instead of one single message, ie. timing must be wrong, and according to the pages i found you're supposed to have 32uS delay between bits transferred, one start and one stopbit, levels inverted, 1=idle, 0=bit on etc..

So, anyone out there with some working really simple code in asm, jal or c that sends some midi messages using a 16f84?

The closest source i managed to find was in mplab asm and for 10mhz.. i'd really like a 4mhz one for reference.

Posted

Hi,

you could use the inbuild simulator of MPLAB in order to determine the delay (or number of cycles) between each sent bit. At 4 MHz it must be exactly 32 cycles, not more, not less...

Best Regards, Thorsten.

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